Skip to main content

Bi-entity action

The context contains an actor (the initiator) and a target. The same ID may have different fields in the entity action and bi-entity action registries; the two kinds are not interchangeable.

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:actor_actionHands the actor of the bi-entity context to an entity action.
saturn:target_actionHands the target of the bi-entity context to an entity action.
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:mountMakes the actor ride the target.
saturn:heal_targetRestores health to the target entity of the bi-entity context.
saturn:transfer_resourceTransfers the given Saturn resource between the actor and the target.
saturn:add_velocityAdds velocity, or replaces it with the given vector.
saturn:teleportChanges the position of the entity.