Entity Actions
88 pages in this section.
- Action On Entity Set Executes an action on entities stored within the power that uses the Entity Set.
- Add Velocity Adds or sets velocity towards a specific direction.
- Add XP Adds experience points and levels to the player, or subtracts levels.
- Advancement Grants or revokes an advancement, or specific criteria of one.
- Apply Effect Adds one or more status effects to the living entity.
- Area Of Effect Executes a Bi-Entity Action within a specified radius.
- Attach Rope Attaches a rope between two endpoints.
- Block Action At Executes a Block Action Type at the position of the entity.
- Change Resource Legacy action that changes the value of a Resource or Cooldown.
- Change Selected Slot Changes which hotbar slot the player is holding.
- Change Slot Swaps or moves the contents of two slots.
- Clear Effect Removes one specific type of status effect, or all status effects, from a living entity.
- Conjure Equipment Conjures an item directly into an equipment or accessory slot of the entity.
- Crafting Table Brings up the Crafting Table GUI as if the player has interacted with one.
- Damage Applies damage to an entity.
- Detach Rope Cuts ropes the acting entity owns.
- Disguise As Makes the entity appear as another entity — a mob type, or a player.
- Dismount Dismounts the entity from their vehicle.
- Drop Inventory Drops each matching slot of the entity's inventory (or a power's inventory) onto the ground.
- Emit Game Event Emits a 'game event' at the entity's position.
- Ender Chest Brings up the Ender Chest GUI as if the player has interacted with one.
- Equipped Item Action Executes an Item Action Type on an item stack in a specified equipment slot.
- Execute Command Executes a command with the entity as the source (i.e.
- Exhaust Applies exhaustion to the entity, reducing saturation and hunger.
- Explode Summons an explosion with a specific explosion power.
- Extinguish Extinguishes the fire from the entity, removing the burning effect.
- Feed Feeds the entity, filling up their hunger bar as if they had eaten a food item with the provided values.
- Fire Projectile Fires one or more projectiles or entities.
- Force Key Pressed Holds a key down on the target as if they pressed it — on a player, on a minion, on any entity.
- Freeze Freezes the entity, as if it were standing in powder snow.
- Gain Air Restores breath (bubbles!) to a living entity.
- Give Gives the entity an item stack by inserting it into its inventory or dropping it on the ground if there is no available inventory space.
- Grant Advancement Grants an advancement to the player.
- Grant All Powers Grants every power a named source provides — an origin, a skill tree, or an apoli:multiple power.
- Grant Power Grants a power to the entity from a specified power source.
- Heal Restores a specified amount of health to the entity.
- Inventory Action Walks the entity's inventory or a power inventory and performs one operation per matching slot — the operation field replaces the separate modify_inventory, replace_inventory and drop_inventory actions.
- Modify Death Ticks Modifies how long the entity has been dead for.
- Modify Entity Data Changes a single piece of an entity's data (e.g.
- Modify Inventory Runs an item action on each matching slot of the entity's inventory (or a power's inventory).
- Modify Resource Modifies the value of a Resource or Cooldown via an Attribute Modifier.
- Modify Stat Modifies the value of a certain statistic with Attribute Modifiers.
- Passenger Action Executes an action on the passengers of the entity.
- Play Sound Plays a sound event at the entity's position.
- Print Writes a line to the server log, and optionally to the entity's chat.
- Radial Menu Opens a radial selection menu of actions for the player to choose from.
- Random Teleport Teleports the entity to a random location within the specified area.
- Raycast Fires a ray from an entity's eye position — or straight at a target entity — and executes actions based on what it hits.
- Relative Action Runs an action on the entity's passenger or vehicle instead.
- Release Grab Ends every active Grab the entity is involved in, whether it is the one grabbing or the one being grabbed.
- Remove Disguise Removes the entity's current disguise, if any.
- Remove Power Removes a power from the entity, regardless of its source.
- Replace Inventory Replaces each matching slot of the entity's inventory (or a power's inventory) with a given item stack.
- Revoke Advancement Revokes an advancement from the player.
- Revoke All Powers Revokes every power that came from the named source(s).
- Revoke Power Revokes a power from the entity from a specified power source.
- Riding Action Executes an action on the entity/entities that's being ridden by the entity.
- Rope Pull Shoves an end of the acting entity's ropes toward the other end — the 'launch', 'grab' and 'reel' verb.
- Run Function Runs an apoli:function power by id, with arguments.
- Run Stored Power Fires a power held in an apoli:power_storage as though a key had been pressed.
- Save Location Records the entity's current position under a name it can be teleported back to later.
- Scale Sets, changes or animates one of the entity's stored scales.
- Script Runs a script against one entity.
- Selector Action Executes an action on entities selected by a target selector.
- Self Bientity Action Runs a bi-entity action with the entity as both actor and target.
- Send Action Hands this action off to an apoli:receive_action power on the same entity.
- Set Fall Distance Sets the fall distance of the entity to the specified amount. The fall distance value keeps track of how many blocks the entity has fallen and is used to calculate the amount of fall damage the entity takes. By setting it to 0 while falling, the entity essentially takes fall damage as if it had only fallen from the current position.
- Set On Fire Sets the entity on fire for the specified amount of time in seconds.
- Set Summon Max Life Re-targets a summon's remaining lifetime.
- Spawn Effect Cloud Spawns an area effect cloud (as from a lingering potion) at the position of the entity.
- Spawn Entity Spawns another entity at the position of the target entity.
- Spawn Particles Spawns particles on the body of the entity that has the power for visual effects.
- Store Data Writes the entity's id, position and NBT into a command storage so commands and function macros can read it back.
- Store Power Puts powers into the entity's own apoli:power_storage, or takes them out again.
- Summon Clone Summons a clone that fights for the player who has the power.
- Summon Minion Summons a minion owned by the living entity that has the power.
- Suppress Power Temporarily disables a power without removing it.
- Swing Hand Swings the specified hand.
- Team Joins, leaves, creates, edits, empties or deletes a scoreboard team — the datapack equivalent of the /team command.
- Teleport Teleports the entity to a set of coordinates, optionally in another dimension.
- Teleport To Location Teleports the entity back to a position it saved earlier.
- Teleport To Spawn Teleports the entity to its respawn point, or to the world spawn.
- Text Displays text on the target player's screen at a chosen position — the vanilla title, subtitle and actionbar slots, or one of Apoli's custom HUD anchors —…
- Tick Rate Sets, freezes, steps or resets the tick rate of the entity, of the chunk it stands in, or of its whole dimension.
- Toggle Toggles the state of a power that uses the Toggle (Power Type).
- Trigger Cooldown Sets a Cooldown's remaining ticks to its maximum — i.e.
- Unfreeze Clears the entity's freeze counter.
- Unsuppress Power Re-enables a power previously suppressed.