Skip to main content

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.

TypePurpose
saturn:no_opDoes nothing; usable as a placeholder action value.
saturn:sequenceRuns several actions of the same kind in array order.
saturn:chanceDecides whether the action fires based on a given chance.
saturn:if_elseRuns if_action when the condition holds, otherwise runs else_action.
saturn:choicePicks one action at random by weight and runs it.
saturn:offsetMoves the block context by the given offset before checking or running the child.
saturn:send_messageSends a text component to players that match the recipient condition, optionally to the chat bar or the action bar.
saturn:jsCalls a callback registered by KubeJS and passes the params argument.
saturn:set_blockSets the current position to the given block.
saturn:break_blockBreaks the block at the context position, optionally controlling whether items drop.
saturn:schedule_tickSchedules a delayed tick for the block at the context position.
saturn:bonemealTries to apply bonemeal to the context block.
saturn:light_upTries to set the context position on fire.
saturn:explodeCreates an explosion at the context position, with configurable destruction behavior and protection conditions.
saturn:spawn_entitySpawns an entity at the position given by the context or at the specified coordinates.