Block action
Acts on the world and block position given by the context. It is not a standalone data pack file; embed it in a field that requires a BlockAction.
| 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:offset | Moves the block context by the given offset before checking or running the child. |
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:set_block | Sets the current position to the given block. |
saturn:break_block | Breaks the block at the context position, optionally controlling whether items drop. |
saturn:schedule_tick | Schedules a delayed tick for the block at the context position. |
saturn:bonemeal | Tries to apply bonemeal to the context block. |
saturn:light_up | Tries to set the context position on fire. |
saturn:explode | Creates an explosion at the context position, with configurable destruction behavior and protection conditions. |
saturn:spawn_entity | Spawns an entity at the position given by the context or at the specified coordinates. |