Placeholders are special text fields that will be replaced by their correspondence, which are calculated dynamically.
For example, placeholder
%player% will be replaced with
player's name. You can use it in the MESSAGE action:
Here is list of placeholders (all placeholders starts and ends with symbol "%"):
|Server time. You can use additional parameter to define time format.|
Time formater parameters defined here
|In-game time in player's world. If there's no player defined at activator will show ingame time of first world.|
|Player current locations|
|Player eye (head) location|
|Location of view-point|
|Player's "display" name|
|Last death location|
|Target player name. Used in some activators.|
|Player's account value|
|Random number or one of provided random strings.|
You can also use variables inside this placeholder:
· Basic math operators (^ * × · / ÷ % + -).
· Explicit precedence with parenthesis.
· Implicit multiplication of bracketed subexpressions.
· Correct right-associativity of exponentials (power operator).
· Direct support for hexadecimal numbers prefixed by 0x.
|Text representation of item that player holds in hand.|
|Text representation of item located in provided slot. |
|This placeholder is prevent of changing content of the nested placeholder. It will return nested placeholder instead of the value.|
Any variable could be used as placeholder.
You just need to use construction:
%var:<VariableId>% for global variables and
%varp:<VariableId>% for personal variables. You can also point to variable of any players using placeholder:
Some activators, actions or flags provides additional local (temporary) placeholders, that could be used only during execution of the activator.
In addition all flags are... also could be used as placeholders. Just add "_flag" to flag's name and you'll get a flag-placeholder. For example, placeholder %time_flag% will replaced with values of flag
TIME if this flag is used in activator.
If you need to get flag check result you must use placeholder
<flag_name>_flag_val, that will return true or false.
If you use plugin PlaceholderAPI on your server you can use placeholders provided by this plugin in any activators, actions or flags.
There are some placeholder that could be used only in command line when you add new actions, flags or activators. This kind of placeholders created to made editing process easy.
For example, you can type command
/react add activator action TP %here% instead of typing full location including world name and coordinates.
|Placeholder||Usage (placeholder and aliases)||Description|
|Player location||This placeholder will be replaced with full player location (including pitch and yaw)|
|Player eye (or head) location||This placeholder will be replaced with location of player head (including view direction - pitch and yaw)|
|Target block location||Location of block that is pointed by cursor.|
|Selected block location||Location of block that was selected using |
You must point your cursor to required block, type command