Actions
When player accomplishes the conditions, you can execute a diverse list of actions. You can also use variables in the actions list.
Message
Sends a message to the player.
Centered Message
Sends a centered message to the player.
Console Message
Sends a message to the console.
JSON Message
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: https://minecraft.tools/en/json_text.php
Mini Message
Sends a message in the Mini Message format https://docs.advntr.dev/minimessage/index.html
Only works on Paper 1.19.4+.
Console Command
Executes a command from the console.
Player Command
Executes a command from the player.
Player Command as Op
Executes a command from the player as OP. (Not recommended)
Player Send Chat
Sends a message in chat from the player. You can even execute a command that is not registered.
Teleport
Teleports the player. Use this format: "teleport: world;x;y;z;yaw;pitch"
Give Potion Effect
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: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/potion/PotionEffectType.html
Remove Potion Effect
Removes a potion effect from the player.
Cancel Event
Whether event should be cancelled or not. Use this format: "cancel_event: true/false"
Kick
Kicks the players from the server.
Play Sound
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: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html
Use this list instead when using 1.8: https://helpch.at/docs/1.8.8/index.html?org/bukkit/Sound.html
Play Sound Resource Pack
Plays a resource pack sound to the player. The format is the same as playsound
action.
Stop Sound
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: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html
Gamemode
Sets a gamemode for the player. Possible gamemodes: CREATIVE, SURVIVAL, ADVENTURE, SPECTATOR
Send to Server
Sends the player to a bungee server.
Actionbar
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.
Title
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"
Damage
Damages the player a specific amount.
Set On Fire
Sets the player on fire for a certain duration in ticks. (20ticks = 1 second)
Freeze
Freezes the player for a certain duration in ticks. (20ticks = 1 seconds). Only works on 1.17+.
Heal
Heals the player a specific amount.
Set Food Level
Sets the current food level of the player with a specific amount. Should be between 0 and 20.
Close Inventory
Closes the player opened inventory.
Clear Inventory
Clears the player inventory.
Wait
Waits X amount of seconds before executing more actions.
Wait Ticks
Waits X amount of ticks before executing more actions. (20ticks = 1 second)
Remove Item
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.
You can find a list of valid types of items here: For latest versions: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html For 1.8: https://helpch.at/docs/1.8/org/bukkit/Material.html
You can also use the CheckItem expansion of PlaceholderAPI (https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#checkitem) to remove items, following this format:
remove_item: %checkitem_remove_,,<...>%
Remove Item Slot
Removes X amount of items from a certain slot of the player inventory. Use this format:
remove_item_slot: <slot>;<amount>
Valid Slots: HAND, OFF_HAND, HELMET, CHESTPLATE, LEGGINGS, BOOTS You can also use numerical values, check all slots here: https://static.wikia.nocookie.net/minecraft_gamepedia/images/b/b2/Items_slot_number.png/revision/latest/scale-to-width-down/352?cb=20170708121246
Firework
Spawns a firework from the player location. Use this format:
firework: colors:<color1>,<color2> type:<type> fade:<color1>,<color2> power:<power> (optional)location:<x>;<y>;<z>;<world>
The fade property is optional, the rest are necessary. You can add more than 2 colors.
Lightning Strike
Generates a lightning strike effect that does no damage, at certain location. Use this format: lightning_strike: <world>;<x>;<y>;<z>
Particle
Spawns a particle on the player location. Use this format:
particle: effect:<effect_name> offset:<x>;<y>;<z> speed:<speed> amount:<amount> (optional)location:<x>;<y>;<z>;<world>
Particle/Effect Names: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Particle.html Offset: The distribution of dispersion of the particle to spawn.
You can spawn a Redstone particle with colors setting the effect to:
REDSTONE;<red>;<green>;<blue> (1.9-1.20.4)
DUST;<red>;<green>;<blue> (1.20.5+)
Color codes: https://htmlcolorcodes.com/
Only works on 1.9+
Give Item
Gives an item to the player. Use this format: give_item: id:<id>;<property>:<value>;<propertyN>:<valueN>
General properties:
id:<id> (MANDATORY, all ids here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html) 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: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/enchantments/Enchantment.html) flags:<flag1>|<flagN> (All flag names here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/inventory/ItemFlag.html)
Player Head properties:
skull_texture:<skull_texture> (Texture value of the head. Can be found here: https://minecraft-heads.com/custom-heads) skull_owner:<skull_owner> (A player name) skull_id:<skull_id> (Skull Id value of the head. Can be found here: https://minecraft-heads.com/custom-heads) 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: https://mcutils.com/inventory-slots) 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: https://minecraft.wiki/w/Data_component_format/custom_model_data 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:
saved_item:<name> (If instead you want to give an already saved item using /ce item save
command)
Drop Item
Drops an item in a certain location. Use this format: drop_item: location:<x>,<y>,<z>,<world>;id:<id>;<property>:<value>;<propertyN>:<valueN>
General properties:
id:<id> (MANDATORY, all ids here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html) location:<x>,<y>,<z>,<world> (MANDATORY)
All give_items
action properties apply as well!
Set Block
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+.
General properties:
id:<id> (MANDATORY, all ids here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html) location:<x>,<y>,<z>,<world> (MANDATORY)
Optional properties:
Block data
The block data attribute is OPTIONAL and represent some states that the block can have. For example a stairs block could be facing north, south, east, west. A crops block has an age property.
This property has the following format: <property1>=<value1>,<propertyN>=<valueN>
You can check all Block Data properties here: https://minecraft.fandom.com/wiki/Java_Edition_data_values#Block_states
Skull data
skull_texture:<skull_texture> (Texture value of the head. Can be found here: https://minecraft-heads.com/custom-heads) skull_owner:<skull_owner> (A player name)
Summon
Spawns an entity at a certain location. Use this format: summon: location:<x>,<y>,<z>,<world>;entity:<entity>;<property>:<value>;<propertyN>:<valueN>
General properties:
entity:<entity>
(MANDATORY, all entities here: https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/EntityType.html)
location:<x>,<y>,<z>,<world>
(MANDATORY)
Optional properties:
custom_name:<custom_name>
(Custom name to be displayed above the entity)
health:<health>
(Max health of the entity)
amount:<amount>
(Amount of entities to spawn)
Equipment property:
equipment:<helmet>,<chestplate>,<leggings>,<boots>
Equipment of the entity, use a valid material on each slot: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html or 'none' if you don't want an item on the slot.
You can also use a texture value on the <helmet> slot to set a custom head.
You can also use a Saved Item on a slot like this: saved_item:<name>
Call Event
Executes a "call" event. Use this format:
call_event: <event_name>;%variable1%=<value1>;%variableN%=<valueN>
You can pass multiple variables to be used in a "call" event, but they are optional.
Execute Action Group
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%).
If you only want to execute a single action group, not randomly, you can do it by using: execute_action_group: <group1>:100
Last updated