Actions
When player accomplishes the conditions, you can execute a diverse list of actions. You can also use variables in the actions list.
Some actions can be executed on all living entities if you are using the to_target action tag.
Message
Sends a message to the player.
message: &aGreat %player%! You''ve just received $5000!
# Only if use_minimessage option is enabled in the config
message: <green>Great %player%! You''ve just received $5000!Centered Message
Sends a centered message to the player.
centered_message: &c&lWELCOME TO THE SERVER
# Only if use_minimessage option is enabled in the config
centered_message: <red><b>WELCOME TO THE SERVERWhen use_minimessage is enabled in the config:
This action only supports color MiniMessages tags. (You can't use other tags like <hover> or <click>, if you want to do so, use the message action and center the text manually)
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+.
Ifuse_minimessage is enabled in the config you don't need to use this action, just use the message action instead.
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/entity. Use this format: "teleport: world;x;y;z;yaw;pitch"
Works with all living entities when using the to_target action tag.
Give Potion Effect
Gives a potion effect to the player/entity. Use this format:
"give_potion_effect: effect;duration_in_ticks;level;show_particles;show_icon"
You can find a list of potion effects here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/potion/PotionEffectType.html
Works with all living entities when using the to_target action tag.
Remove Potion Effect
Removes a potion effect from the player/entity. Use "all" to remove all potion effects.
Works with all living entities when using the to_target action tag.
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
Stop Sound Resource Pack
Stops a resource pack sound for a player. Only works on 1.10+.
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/entity a specific amount.
Works with all living entities when using the to_target action tag.
Set On Fire
Sets the player/entity on fire for a certain duration in ticks. (20ticks = 1 second)
Works with all living entities when using the to_target action tag.
Freeze
Freezes the player/entity for a certain duration in ticks. (20ticks = 1 seconds). Only works on 1.17+.
Works with all living entities when using the to_target action tag.
Heal
Heals the player/entity a specific amount.
Works with all living entities when using the to_target action tag.
Set Food Level
Sets the current food level of the player with a specific amount. Should be between 0 and 20.
Throw Directional
Will throw players toward the direction they are looking at, with a certain strength (impulse).
Don't use values greater than 6, the impulse will behave weird, this is a Minecraft limitation.
Works with all living entities when using the to_target action tag.
Throw Coordinate
Similar to Throw Directional. In this case, players will be throwed following the strength defined in each coordinate. Use this format: "throw_coordinate: <strength_x>;<strength_y>;<strength_z>"
Don't use values greater than 6, the impulse will behave weird, this is a Minecraft limitation.
Works with all living entities when using the to_target action tag.
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 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>
Firework
Spawns a firework from the player/entity location. Use this format:
firework: colors:<color1>,<color2> type:<type> fade:<color1>,<color2> <propertyN>:<valueN>
Works with all living entities when using the to_target action tag.
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/entity location. Use this format:
particle: effect:<effect_name> offset:<x>;<y>;<z> speed:<speed> amount:<amount> force:<true/false>
Only works on 1.9+
Works with all living entities when using the to_target action tag.
Give Item
Gives an item to the player. Use this format: give_item: id:<id>;<property>:<value>;<propertyN>:<valueN>
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>
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+.
Summon
Spawns an entity at a certain location. Use this format: summon: location:<x>,<y>,<z>,<world>;entity:<entity>;<property>:<value>;<propertyN>:<valueN>
Call Event
Executes a "call" event. Use this format:
call_event: <event_name>;%variable1%=<value1>;%variableN%=<valueN>
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%).
Last updated
Was this helpful?