Skip to main content

Entity Actions

Actions that run on a single entity.

Action On Entity Set

Runs a bi-entity action on the entities stored in an entity set power.

Add Velocity

Adds velocity to the entity in a direction, or sets its velocity outright.

Add XP

Gives the player experience points or levels, or takes levels away.

Advancement

Grants or revokes an advancement, or specific criteria of one.

Apply Effect

Gives a living entity one or more status effects.

Area Of Effect

Runs a bi-entity action on every entity in an area around the entity.

Attach Rope

Attaches a rope between two endpoints, for grappling hooks, whips and tethers.

Block Action At

Runs a block action at the entity's position.

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 the contents of two slots, or moves one into the other.

Clear Effect

Removes one status effect, or every status effect, from a living entity.

Conjure Equipment

Puts a temporary item straight into an equipment or accessory slot of the entity.

Crafting Table

Opens a 3×3 crafting grid for the player, with no crafting table in the world.

Damage

Deals damage of a given damage type to the entity.

Detach Rope

Cuts ropes the entity owns, either one labelled rope or all of them.

Disguise As

Makes the entity look like another entity, either a mob type or a player.

Dismount

Makes the entity get off whatever it is riding.

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, such as a vibration, at the entity's position.

Ender Chest

Opens the player's Ender Chest screen, as if they had used an Ender Chest.

Equipped Item Action

Runs an item action on the item in one of the entity's equipment slots.

Execute Command

Runs a command as the entity, so @s selects the entity itself.

Exhaust

Adds exhaustion to a player, which drains saturation and then hunger.

Explode

Creates an explosion of a given power at the entity.

Extinguish

Puts out the fire on the entity.

Feed

Fills a player's hunger bar as if they had eaten a food item with the given values.

Fire Projectile

Fires one or more projectiles or other entities from the entity.

Force Key Pressed

Holds a key down on the target as if they had pressed it, on a player, a minion or any other entity.

Freeze

Freezes the entity, as if it were standing in powder snow.

Gain Air

Gives a living entity back some of its breath.

Give

Gives the entity an item stack, or drops it on the ground when its inventory is full.

Grant Advancement

Grants an advancement, or some of its criteria, to the player.

Grant All Powers

Grants every power a named source provides, such as an origin, a skill tree or an apoli:multiple power.

Grant Power

Grants a power to the entity under a power source.

Heal

Restores health to the entity, or takes health away when the amount is negative.

Inventory Action

Goes through the entity's inventory or a power inventory and does one operation on each matching slot: modify, replace or drop.

Modify Death Ticks

Changes how long the entity counts as having been dead.

Modify Entity Data

Changes one piece of an entity's data, such as whether it has gravity.

Modify Inventory

Runs an item action on each matching slot of the entity's inventory, or a power's inventory.

Modify Resource

Changes the value of a resource or cooldown with an attribute modifier.

Modify Stat

Changes the value of a statistic with an attribute modifier.

Passenger Action

Runs an action on the entities riding this 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 spot inside an area around it.

Raycast

Fires a ray from an entity's eyes, or straight at a target entity, and runs actions based on what it hits.

Relative Action

Runs an action on the entity's passenger or vehicle instead.

Release Grab

Ends every grab the entity is part of, whether it is grabbing or being grabbed.

Remove Disguise

Removes the entity's current disguise, if it has one.

Remove Power

Removes a power from the entity, whatever its source.

Replace Inventory

Replaces each matching slot of the entity's inventory, or a power's inventory, with an item stack.

Revoke Advancement

Revokes an advancement, or some of its criteria, from the player.

Revoke All Powers

Revokes every power that came from the named sources.

Revoke Power

Takes a power away from the entity, for one power source only.

Riding Action

Runs an action on the entity this entity is riding.

Rope Pull

Pushes one end of the entity's ropes toward the other end, to launch along a rope, grab with it or reel in.

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

Runs a bi-entity action on the entities a target selector finds.

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 how far the entity counts as having fallen, which decides its fall damage.

Set On Fire

Sets the entity on fire for a number of seconds.

Set Perspective

Switches a player's camera to first person, third person from behind, or third person from the front.

Set Summon Max Life

Changes how long a summon has left to live.

Spawn Effect Cloud

Spawns an area effect cloud, like the one from a lingering potion, at the entity's position.

Spawn Entity

Spawns an entity at the position of the target entity.

Spawn Particles

Spawns a burst of particles on the entity, optionally anchored to a body part.

Start Raid

Starts a raid on the village the entity is in, credited to that entity, or strengthens the raid already there.

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

Turns a power off for a while without removing it.

Swing Hand

Plays the swing animation of one of the entity's hands.

Team

Joins, leaves, creates, edits, empties or deletes a scoreboard team, like 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

Shows text on the player's screen in a vanilla title or actionbar slot, or at one of Apoli's HUD anchors, with fade timing.

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

Switches a toggle power on or off.

Trigger Cooldown

Starts a power's cooldown, as if the power had just been used.

Unfreeze

Clears the entity's freeze counter.

Unsuppress Power

Lifts a suppression from a power, so it works again.