Actions
Last updated
Was this helpful?
Last updated
Was this helpful?
When player accomplishes the conditions, you can execute a diverse list of actions. You can also use variables in the actions list.
Sends a message to the player.
Sends a centered message to the player.
Sends a message to the console.
Sends a JSON message to the player. These messages allows you to add click and hover events. You can generate JSON messages on this link:
Only works on Paper 1.19.4+.
Executes a command from the console.
Executes a command from the player.
Executes a command from the player as OP. (Not recommended)
Sends a message in chat from the player. You can even execute a command that is not registered.
Teleports the player. Use this format: "teleport: world;x;y;z;yaw;pitch"
Removes a potion effect from the player. Use "all" to remove all potion effects.
Whether event should be cancelled or not. Use this format: "cancel_event: true/false"
Kicks the players from the server.
Plays a resource pack sound to the player. The format is the same as playsound
action.
Sets a gamemode for the player. Possible gamemodes: CREATIVE, SURVIVAL, ADVENTURE, SPECTATOR
Sends the player to a bungee server.
Sends an actionbar message to the player. Use this format:
"actionbar: message;duration"
(The duration must be in ticks, 20ticks = 1second) On repetitive events, use a time of 0 for no flickering.
Sends a title and subtitle message to the player. Use this format:
"title: fadeIn;stay;fadeOut;title;subtitle"
(The duration of fadeIn, stay and fadeOut must be in ticks, 20ticks = 1second) If you want just a title, or just subtitle write "none"
Damages the player a specific amount.
Sets the player on fire for a certain duration in ticks. (20ticks = 1 second)
Freezes the player for a certain duration in ticks. (20ticks = 1 seconds). Only works on 1.17+.
Heals the player a specific amount.
Sets the current food level of the player with a specific amount. Should be between 0 and 20.
Closes the player opened inventory.
Clears the player inventory.
Waits X amount of seconds before executing more actions.
Waits X amount of ticks before executing more actions. (20ticks = 1 second)
Removes X amount of items from the player inventory. Use this format:
remove_item: <type>;<amount>;datavalue: <datavalue>;name: <name>;lorecontains: <lore_line>
Datavalue, name and lorecontains attributes are OPTIONAL. Don't use color formatting.
Removes X amount of items from a certain slot of the player inventory. Use this format:
remove_item_slot: <slot>;<amount>
Spawns a firework from the player location. Use this format:
firework: colors:<color1>,<color2> type:<type> fade:<color1>,<color2> <propertyN>:<valueN>
Generates a lightning strike effect that does no damage, at certain location. Use this format: lightning_strike: <world>;<x>;<y>;<z>
Spawns a particle on the player location. Use this format:
particle: effect:<effect_name> offset:<x>;<y>;<z> speed:<speed> amount:<amount> force:<true/false> (optional)location:<x>;<y>;<z>;<world>
Only works on 1.9+
Gives an item to the player. Use this format: give_item: id:<id>;<property>:<value>;<propertyN>:<valueN>
Drops an item in a certain location. Use this format: drop_item: location:<x>,<y>,<z>,<world>;id:<id>;<property>:<value>;<propertyN>:<valueN>
Places a block in a certain location. Use this format: set_block: location:<x>,<y>,<z>,<world>;id:<id>;block_data:<block_data>
. Only works on 1.13+.
Spawns an entity at a certain location. Use this format: summon: location:<x>,<y>,<z>,<world>;entity:<entity>;<property>:<value>;<propertyN>:<valueN>
Executes a "call" event. Use this format:
call_event: <event_name>;%variable1%=<value1>;%variableN%=<valueN>
Executes another action group from the event, randomly. Use this format:
execute_action_group: <group1>:<prob1>;<groupN>:<probN>
where <group>
is the name of a created action group of the event, and <probability>
is the chance of selecting the event (The probabilities don't need to sum 100%).
Sends a message in the Mini Message format
Give a potion effect to the player. Use this format:
"give_potion_effect: effect;duration_in_ticks;level;show_particles"
You can find a list of potion effects here:
Plays a sound to the player. Use this format: "playsound: sound;volume;pitch;(optional, location)<x>,<y>,<z>,<world>"
You can find a list of sounds here:
Use this list instead when using 1.8:
Stops a sound for a player.
Use stopsound: <sound>
for specific sound. Only works on 1.10+.
Use stopsound: all
for stopping all sounds. Only works on 1.17+.
You can find a list of sounds here:
You can find a list of valid types of items here: For latest versions: For 1.8:
You can also use the CheckItem expansion of PlaceholderAPI () to remove items, following this format:
remove_item: %checkitem_remove_,,<...>%
Valid Slots: HAND, OFF_HAND, HELMET, CHESTPLATE, LEGGINGS, BOOTS You can also use numerical values, check all slots here:
colors:<color1>,<color2>,<colorN> (Main colors of the firework. All colors here: . You can specify the name of the color, or a HEX color code in this format: #<color>
)
type:<type> (Type of the firework. All types here: )
fade:<color1>,<color2>,<colorN> (Fade colors of the firework. All colors here: . You can specify the name of the color, or a HEX color code in this format: #<color>
)
Particle/Effect Names: Offset: The distribution of dispersion of the particle to spawn. Force: Whether to force show the particles to the player regardless of the client settings.
DUST;<red>;<green>;<blue> (1.20.5+)
Color codes:
id:<id> (MANDATORY, all ids here: ) amount:<amount> durability:<durability> custom_model_data:<custom_model_data> name:<name> lore:<lore_line1>|<lore_lineN> enchants:<enchant1>-<level1>|<enchantN>-<levelN> (All enchant names here: ) flags:<flag1>|<flagN> (All flag names here: )
skull_texture:<skull_texture> (Texture value of the head. Can be found here: ) skull_owner:<skull_owner> (A player name) skull_id:<skull_id> (Skull Id value of the head. Can be found here: ) Slot properties:
slot:<slot> (If you want to give the item on a certain slot. Valid Slots: HAND, OFF_HAND, HELMET, CHESTPLATE, LEGGINGS, BOOTS. You can also use numerical values, check all slots here: ) slot_replace:<true/false> (Whether you want to replace any items on the selected slot) Custom Model Component Data properties (1.21.4+):
More info here: custom_model_component_data_strings: <string1>|<stringN> custom_model_component_data_flags: <flag1>|<flagN> custom_model_component_data_floats: <float1>|<floatN> custom_model_component_data_colors: <color1>|<colorN> Saved item:
id:<id> (MANDATORY, all ids here: ) location:<x>,<y>,<z>,<world> (MANDATORY)
id:<id> (MANDATORY, all ids here: ) location:<x>,<y>,<z>,<world> (MANDATORY)
You can check all Block Data properties here:
skull_texture:<skull_texture> (Texture value of the head. Can be found here: ) skull_owner:<skull_owner> (A player name)
entity:<entity>
(MANDATORY, all entities here: )
location:<x>,<y>,<z>,<world>
(MANDATORY)
Equipment of the entity, use a valid material on each slot: or 'none' if you don't want an item on the slot.