Entity action
Runs an operation on a single entity. Used in entity action fields such as entity_action and a trigger rule's action; action arrays run in order.
| Type | Purpose |
|---|---|
saturn:no_op | Does nothing; usable as a placeholder action value. |
saturn:sequence | Runs several actions of the same kind in array order. |
saturn:chance | Decides whether the action fires based on a given chance. |
saturn:if_else | Runs if_action when the condition holds, otherwise runs else_action. |
saturn:choice | Picks one action at random by weight and runs it. |
saturn:send_message | Sends a text component to players that match the recipient condition, optionally to the chat bar or the action bar. |
saturn:js | Calls a callback registered by KubeJS and passes the params argument. |
saturn:dismount | Makes the entity leave its current mount. |
saturn:extinguish | Clears the entity's current burning state. |
saturn:heal | Restores the entity's health. |
saturn:add_resource | Adds to the current value of the given Saturn resource. |
saturn:grant_ability | Grants an ability to the entity under the given source ID. |
saturn:remove_ability | Removes an ability granted by the given source without affecting other sources. |
saturn:apply_effect | Applies a mob effect with the given duration and amplifier to the entity. |
saturn:teleport | Changes the position of the entity. |
saturn:knockback | Applies velocity to the entity along the given vector. |
saturn:modify_ability_storage | Writes a state of the given kind into the storage of the target ability. |
saturn:spawn_entity | Spawns an entity at the position provided by the context or at the given coordinates. |
saturn:spawn_projectile | Spawns an entity and gives it the given initial velocity. |
saturn:add_experience | Adds experience points, levels, or both to the player. |
saturn:add_velocity | Adds velocity, or replaces it with the given vector. |
saturn:exhaust | Adds to the player's food exhaustion. |
saturn:feed | Adds food and saturation to the player. |
saturn:gain_air | Modifies the entity's remaining air. |
saturn:give_item | Creates an item stack and hands it to the entity, optionally with a preferred equipment slot. |
saturn:play_sound | Plays the given sound at the entity. |
saturn:remove_effect | Removes the given mob effect from the entity. |
saturn:set_fall_distance | Changes the entity's accumulated fall distance. |
saturn:set_no_gravity | Controls whether the entity ignores gravity. |
saturn:set_on_fire | Sets the entity on fire for the given number of ticks. |
saturn:swing_hand | Triggers the swing animation of the given hand. |
saturn:emit_game_event | Emits a vanilla game event that sculk sensors and similar blocks can receive. |
saturn:passenger_action | Runs an action on the entity's passengers, optionally recursing through multiple levels. |
saturn:block_action | Runs a block action on the block at the entity's position. |
saturn:self_bientity_action | Runs a bi-entity action with the same entity as both actor and target. |
saturn:equipped_item_action | Runs an item action on the item stack in the given equipment slot. |
saturn:riding_action | Runs an action on what the entity is riding, optionally recursing through the mount chain. |
saturn:spawn_particles | Spawns particles near the entity with the given offset and spread parameters. |
saturn:spawn_effect_cloud | Spawns an area effect cloud with mob effects near the entity. |