Skip to content

Actions

An action performs a single effect in the game. They are used by the action system to define what happens on different events, ex. when a player right-clicks a custom item.

Available actions

Action Type Description
applyPotionEffects Entity Applies potion effects
become Any Changes the entity the rest of this action group runs on
consumeItem Entity Consumes an item from the entity's inventory
ensure Any Checks if one or more conditions are met, if not stops the action group
explode Location Creates an explosion
particle Location Spawns a particle
playSound Entity Plays a sound to a player
sendActionBar Entity Sends players an action bar message
smite Location Strikes lightning at a location
startCooldown Any Starts a cooldown for an entity