Housing/Actions

Actions are a way to trigger something when something else is performed. Below are some things that can be used to trigger actions.
*Action Pads/Buttons
*NPCs
*Region Enter/Exit
*Events
**Player Join
**Player Quit
**Player Death
**Player Kill
**Player Respawn
**Start Parkour
**Group Change
**PVP State Change
**Fish Caught
**Player Enter Portal
**Player Damage
**Player Block Break
*Commands
*Functions
*Conditional If/Else
== Adding Actions ==
There are 30 total actions that can be triggered, but certain events can only trigger certain actions. Below are the different menus.
Event/Input	Menu
* Action Pad
* Action Button
* NPC Click
* Region Enter
* Region Exit
* Command Run
* Function Run	
* Player Join Event
* Player Death Event
* Player Kill Event
* Player Respawn Event
* Start Parkour Event
* PVP State Change Event
* Player Enter Portal Event
* Player Block Break Event	
* Player Quit Event	
* Group Change Event	
* Fish Caught Event
* Player Damage Event	
* Conditional If
* Conditional Else	
* Random Action	
== All Actions ==
Below is a description of all actions and how to use them.
Actions
Name 	Description 	Maximum Amount of Action
Conditional 	Used to execute action(s) if certain condition(s) are met.
See Player_Housing/Actions#Conditionals
If "Match Any Condition" is enabled, only one condition needs to match for the if actions to activate. If disabled, all must match.	15
Cancel Event 	Can only be used with the "Fish Caught" and "Player Damage" events.
Used to detect if an event happened without affecting the player. 	1
Change Player's Group 	Changes the players group.
If "Demotion Protection" is enabled, the player cannot be set to a group that has a lower priority than what they already have.
This action does not affect the owner of the house.	1
Kill Player 	Instantly kills the player.
This action does not affect players in creative mode. 	1
Full Heal 	Brings the player to full health. 	1
Go to House Spawn 	Teleports the player to the house's spawn. 	1
Display Title 	Displays text at the center of the screen.
* Title: The main text that appears
*Subtitle: Smaller text that appears below the title text
*Fadein: The time in seconds that the title will take to fade in (Range = 0 - 3)
*Stay: The time in seconds that the title will stay visible on the screen (Range = 0 - 10)
*Fadeout: The time in seconds that the title will take to fade out (Range = 0 - 3)	1
Display Action Bar 	Displays text just above the hotbar. 	1
Reset Inventory 	Clears the players inventory. 	1
Set Max Health 	Sets the maximum amount of health the player has in health points (1 HP = 1/2 Heart, 2 HP = 1 Heart, etc.) (Range = 1 - 100). 	1
Parkour Checkpoint 	Teleports the player to the last parkour checkpoint they reached, or to the start of the parkour if they are not currently in the parkour.	1
Give Item 	Gives the player the selected item. The amount given is chosen based on the stack count when selecting the item from your inventory.
If "Allow Multiple" is disabled, the item will not be given to the player if they already have one or more in their inventory.	20
Remove Item 	Removes the selected item from the player. The amount is chosen based on the stack count when selecting the item from your inventory. 	20
Send a Chat Message 	Displays a message in chat. 	5
Apply Potion Effect 	Gives the player a set potion effect. 
*Effect: The potion effect that is applied to the player (22 effects!)
*Duration: The time in seconds that the effect will last for (Range = 1 - 3600)
*Level: The level of the potion effect (Range = 1 - 10)
If "Override Existing Effects" is enabled, the potion effect will be applied even if they already have it at a different level or duration.	22
Clear All Potion Effects	Clears all active potion effects. 	1
Give Experience Levels 	Adds an amount of experience levels to the player (Range = 1 - 2147483647), 	1
Send to Lobby 	Sends the player to one of Hypixel's lobbies. 	1
Change Player Stat 	Adjusts the player's set stat by a specified amount, or sets the stat to an exact number.
*Stat: The stat that will be affected by the action
*Mode: Determines if the stat will be incremented, decremented, or set to a specific number
*Amount: The amount the stat will be adjusted or set to (Range = -2147483647 - 2147483647)	5
Change Global Stat 	Adjusts a global set stat by a specified amount, or sets the stat to an exact number. 
*Stat: The stat that will be affected by the action
*Mode: Determines if the stat will be incremented, decremented, or set to a specific number
*Amount: The amount the stat will be adjusted or set to (Range = -2147483647 - 2147483647)	5
Teleport Player 	Teleports the player to a specified location. 
*House Spawn: Sets the teleport location to the house's spawn
*Current Loction: Sets the teleport location to where the editor is currently at
* Custom Coordinates: Allows the player to set a custom teleport location using absolute coordinates separated by spaces (<x> <y> <z>)	1
Fail Parkour 	Forces the player to fail the parkour with a custom fail message. 	1
Play Sound 	Plays a sound effect.
*Sound: The sound that is played (184 sounds!)
*Pitch: The pitch (Range = 0 - 2) 	1
Set Compass Target 	Sets the location a compass points to.
*House Spawn: Sets the location to the house's spawn
*Current Loction: Sets the location to where the editor is currently at
*Custom Coordinates: Allows the player to set a custom location using absolute coordinates separated by spaces (<x> <y> <z>)	1
Set Gamemode 	Sets the player's gamemode to adventure, survival, or creative. 	1
Change Health 	Adjusts the players health by a specified amount, or sets the health to an exact number.
*Health: The amount the health will be adjusted or set to in health points (1 HP = 1/2 Heart, 2 HP = 1 Heart, etc.) (Range = 1 - 100)
*Mode: Determines if the health will be incremented, decremented, or set to a specific number	1
Set Hunger Level 	Sets the player's hunger bar to a specified amount (Range = 0-20). 	1
Random Action 	Executes a single random action from the selected actions. 	5
Trigger Function 	Triggers the specified function.
If "Trigger For All Players" is enabled, the function will be run for everyone, not just the person who activated the action.	10
Apply Inventory Layout 	Sets the players inventory to the specified inventory layout 	1
Exit 	Can only be used with the "Conditional If/Else" and "Random Action".
Stops executing the remaining actions. 	1
==Conditionals==
Conditionals allow more flexibility in creating custom actions and being creative! It uses the IF, THEN, ELSE format like in coding. Simply put, it follows this pattern:
IF "conditions are met", THEN "execute if actions", ELSE "execute else actions"
There are 8 conditions at the moment.
If "Match Any Condition" is enabled, only one condition needs to match for the if actions to activate. If disabled, all must match.
=== All Conditions ===
Conditions
Name 	Description 	Maximum Amount of Condition
Required Group 	Activates if the player matches the specified group.
If "Include Higher Groups" is enabled, the condition will also activate for groups with an equal to or higher priority to the specified group.	20
Player Stat Requirement	Activates if the player matches the provided comparator for the specified stat.
* Stat: The stat the condition is checking
* Comparator: Less than, Less than or equal, Equal, Greater than or equal, Greater than
* Compare Value: The value the condition is comparing (Range = -2147483647 - 2147483647)	20
Global Stat Requirement	Activates if the global stat matches the provided comparator for the specified global stat.
* Stat: The global stat the condition is checking
* Comparator: Less than, Less than or equal, Equal, Greater than or equal, Greater than
* Compare Value: The value the condition is comparing (Range = -2147483647 - 2147483647)	20
Required Permission 	Activates if the player has the selected permission. 	20
Within Region 	Activates if the player is in the bounds of the selected region.	20
Has Item 	Activates if the player has an item and matches the options set.
* Item: The item the player needs to have
* What To Check: Says if the player needs the same item type or the exact same item (Same name, lore, type, enchantments, etc.)
* Where To Check: Where the item must be (Hand, Armor, Hotbar, Inventory, Anywhere)
* Required Amount: Any amount, Equal or greater amount	20
Doing Parkour 	Activates if the player is currently doing parkour. 	20
Has Potion Effect 	Activates if the player has the selected potion effect. 	22
Category:Housing