Skip to main content

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.

Types​

saturn:add_experience​

Adds experience points, levels, or both to the player.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:add_experience
pointsIntegernoomittedVanilla experience points; when omitted, the points are not changed.
levelsIntegernoomittedVanilla experience levels; when omitted, the levels are not changed.
Example
{
"type": "saturn:add_experience",
"points": 100
}

saturn:add_resource​

Adds to the current value of the given Saturn resource.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:add_resource
resourceResource IDyes—ID of a registered Saturn resource.
amountNumber provideryes—Amount or value; a number provider may be a number, a formula string or an object with a type.
Example
{
"type": "saturn:add_resource",
"resource": "example:mana",
"amount": 1
}

saturn:add_velocity​

Adds velocity, or replaces it with the given vector.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:add_velocity
xNumberno0.0X coordinate, offset or vector component, depending on this page's behavior.
yNumberno0.0Y coordinate, offset or vector component, depending on this page's behavior.
zNumberno0.0Z coordinate, offset or vector component, depending on this page's behavior.
spaceEnum stringno"world"Vector coordinate space. Available values: world, local, local_horizontal, local_horizontal_normalized, velocity, velocity_normalized, velocity_horizontal, velocity_horizontal_normalized.
setBooleannofalsetrue replaces the velocity with the given vector; false adds to it.
Example
{
"type": "saturn:add_velocity"
}

saturn:apply_effect​

Applies a mob effect with the given duration and amplifier to the entity.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:apply_effect
effectResource IDyes—Mob effect ID.
duration_ticksNumber provideryes—Effect duration, in game ticks.
amplifierNumber providerno0.0Effect amplifier index; 0 means level I.
Example
{
"type": "saturn:apply_effect",
"effect": "minecraft:speed",
"duration_ticks": 200,
"amplifier": 0
}

saturn:area_of_effect​

Applies a bi-entity action within a sphere; shares its implementation with entity region_apply.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:area_of_effect
radiusNumber providerno16Radius in blocks.
bientity_actionBi-entity actionsyes—Nested action of the declared context type.
bientity_conditionBi-entity conditionsnosaturn:alwaysFilter condition of the declared context type.
include_targetBooleannofalseWhether to include the acting entity itself; equivalent to region_apply’s include_actor.
Example
{
"type": "saturn:area_of_effect",
"radius": 8,
"bientity_action": {
"type": "saturn:heal_target",
"amount": 2
}
}

Distances are relative to the query centre. Entity queries use entity positions and exclude spectators. Block radii are floored to a non-negative integer and positions are enumerated lazily. Negative or non-finite radii yield an empty region.

saturn:award_stat​

Increases one or more vanilla statistics for a server player.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:award_stat
statResource ID / object / arrayyes—A custom statistic ID, or a {stat_type, id} object.
amountNumber providerno1Amount for this operation.
Example
{
"type": "saturn:award_stat",
"stat": "minecraft:jump",
"amount": 1
}

A string selects a minecraft:custom statistic, e.g. "minecraft:jump". A typed statistic uses {"stat_type":"minecraft:mined","id":"minecraft:stone"}. Unknown types or entries do not match or execute.

saturn:block_action​

Runs a block action on the block at the entity's position.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:block_action
actionBlock actionyes—The sub-action to run; its kind must match what this field expects.
Example
{
"type": "saturn:block_action",
"action": {
"type": "saturn:no_op"
}
}

saturn:crafting_table​

Opens a crafting menu for a server player without requiring a nearby crafting table.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:crafting_table
Example
{
"type": "saturn:crafting_table"
}

saturn:damage​

Damages the entity on the server with a specified damage type.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:damage
damage_typeResource IDyes—Reference to the vanilla damage type registry.
amountNumber provideryes—Amount for this operation.
Example
{
"type": "saturn:damage",
"damage_type": "minecraft:magic",
"amount": 2
}

Non-positive or non-finite amounts do not deal damage.

saturn:dismount​

Makes the entity leave its current mount.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:dismount
Example
{
"type": "saturn:dismount"
}

saturn:emit_game_event​

Emits a vanilla game event that sculk sensors and similar blocks can receive.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:emit_game_event
eventResource IDyes—Vanilla GameEvent ID.
Example
{
"type": "saturn:emit_game_event",
"event": "minecraft:step"
}

saturn:ender_chest​

Opens the server player’s own ender chest.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:ender_chest
Example
{
"type": "saturn:ender_chest"
}

saturn:equipped_item_action​

Runs an item action on the item stack in the given equipment slot.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:equipped_item_action
slotEnum stringyes—Equipment slot. Available values: mainhand, offhand, feet, legs, chest, head, body, saddle.
actionItem actionyes—The sub-action to run; its kind must match what this field expects.
Example
{
"type": "saturn:equipped_item_action",
"slot": "mainhand",
"action": {
"type": "saturn:no_op"
}
}

saturn:execute_command​

Executes a vanilla command with gamemaster permission (level 2).

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:execute_command
commandStringyes—Vanilla command; a leading / is optional.
Example
{
"type": "saturn:execute_command",
"command": "effect give @s minecraft:speed 10"
}

Server-only, with command feedback suppressed. Entity actions use the entity as @s at the activation position; block actions use the block centre and have no @s entity.

saturn:exhaust​

Adds to the player's food exhaustion.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:exhaust
amountNumberyes—Amount or value; a number provider may be a number, a formula string or an object with a type.
Example
{
"type": "saturn:exhaust",
"amount": 1
}

saturn:extinguish​

Clears the entity's current burning state.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:extinguish
Example
{
"type": "saturn:extinguish"
}

saturn:feed​

Adds food and saturation to the player.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:feed
foodIntegeryes—Food restored.
saturationNumberyes—Saturation parameter restored.
Example
{
"type": "saturn:feed",
"food": 1,
"saturation": 1
}

saturn:gain_air​

Modifies the entity's remaining air.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:gain_air
valueIntegeryes—The value or expression used by this type.
Example
{
"type": "saturn:gain_air",
"value": 1
}

saturn:give_item​

Creates an item stack and hands it to the entity, optionally with a preferred equipment slot.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:give_item
stackItem stack templateyes—The vanilla ItemStackTemplate to create.
item_actionItem actionno{"type":"saturn:no_op"}Item action to run on the item stack.
preferred_slotEnum stringnoomittedPreferred equipment slot; when the stack cannot be placed there, delivery continues according to the implementation. Available values: mainhand, offhand, feet, legs, chest, head, body, saddle.
Example
{
"type": "saturn:give_item",
"stack": {
"id": "minecraft:diamond",
"count": 1
}
}

saturn:grant_ability​

Grants an ability to the entity under the given source ID.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:grant_ability
abilityResource IDyes—Ability ID or tool ability, depending on the field type.
sourceResource IDyes—Input collection, resource path or context parameter; see the usage on this page.
Example
{
"type": "saturn:grant_ability",
"ability": "example:heal",
"source": "example:manual"
}

saturn:grant_advancement​

Awards advancements or named criteria to a server player.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:grant_advancement
advancementResource IDyes—Advancement ID; ignored when selection is everything.
criterionString / string arrayno[]Criterion name or array; omitted or empty means the whole advancement.
selectionEnum stringno"only"only: itself; through: ancestors and descendants; from: descendants; until: ancestors; everything: all advancements. Every non-global mode includes the given advancement.
Example
{
"type": "saturn:grant_advancement",
"advancement": "minecraft:story/root"
}

Only affects server players. everything selects the entire advancement registry; other modes start at the given ID. Missing IDs do nothing. Named criteria are applied to each selected advancement.

saturn:heal​

Restores the entity's health.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:heal
amountNumber provideryes—Amount or value; a number provider may be a number, a formula string or an object with a type.
Example
{
"type": "saturn:heal",
"amount": 1
}

saturn:knockback​

Applies velocity to the entity along the given vector.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:knockback
xNumber provideryes—X coordinate, offset or vector component, depending on this page's behavior.
yNumber provideryes—Y coordinate, offset or vector component, depending on this page's behavior.
zNumber provideryes—Z coordinate, offset or vector component, depending on this page's behavior.
Example
{
"type": "saturn:knockback",
"x": 1,
"y": 1,
"z": 1
}

saturn:modify_ability_storage​

Writes a state of the given kind into the storage of the target ability.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:modify_ability_storage
abilityResource IDyes—Ability ID or tool ability, depending on the field type.
valueState storageyes—The value or expression used by this type.

Only storage kinds that the ability has already declared are modified; when a kind is not declared, a warning is logged and the entry is skipped. Regular ability cooldowns and charges are maintained by the activation flow, so they do not need to be overwritten manually every time.

Example
{
"type": "saturn:modify_ability_storage",
"ability": "example:heal",
"value": {
"type": "saturn:cooldown",
"duration": 40
}
}

saturn:modify_inventory​

Executes an item action and an optional entity action once for each matching non-empty slot, on the server.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:modify_inventory
item_conditionItem conditionsnosaturn:alwaysFilter condition of the declared context type.
item_actionItem actionsyes—Nested action of the declared context type.
entity_actionEntity actionsnosaturn:no_opNested action of the declared context type.
slotInteger / string / mixed arrayno[]Vanilla command slot number or slot name/range; mixed arrays are accepted. An empty array selects the default slots.
limitIntegerno0Maximum matching slots to process; zero or negative means all.
Example
{
"type": "saturn:modify_inventory",
"slot": "weapon.mainhand",
"item_action": {
"type": "saturn:consume_item",
"count": 1
}
}

Defaults to hotbar.*, inventory.*, weapon.*, armor.*, saddle and mob.inventory.*. Only vanilla slots exposed by the entity are visited. The player’s selected hotbar slot and main-hand alias are deduplicated. Origins Power inventories are not read.

Runs once per matching slot: entity_action first, then item_action. The limit counts slots, not individual items.

saturn:passenger_action​

Runs an action on the passengers of the entity, and can walk multiple levels of passengers recursively.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:passenger_action
actionEntity actionno{"type":"saturn:no_op"}The sub-action to run; its kind must match what this field expects.
bientity_actionBi-entity actionno{"type":"saturn:no_op"}Action run between the two sides of the context.
bientity_conditionBi-entity conditionno{"type":"saturn:always"}Condition that filters the two sides of the context.
recursiveBooleannofalseWhether to walk the riding or passenger chain recursively.
Example
{
"type": "saturn:passenger_action"
}

saturn:play_sound​

Plays the given sound event at the entity.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:play_sound
soundResource IDyes—SoundEvent ID.
categoryEnum stringnoomittedSound category. Available values: master, music, records, weather, blocks, hostile, neutral, players, ambient, voice, ui.
volumeNumberno1.0Volume multiplier.
pitchNumberno1.0Pitch angle in degrees when not following the mouse.
Example
{
"type": "saturn:play_sound",
"sound": "minecraft:entity.experience_orb.pickup",
"category": "players"
}

saturn:region_apply​

Applies an action to matching targets in a region, preserving the parent context.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:region_apply
radiusNumber providerno16Radius in blocks.
shapeEnum stringno"cube"cube uses maximum axis distance; star uses Manhattan distance; sphere uses Euclidean distance.
bientity_actionBi-entity actionsyes—Nested action of the declared context type.
bientity_conditionBi-entity conditionsnosaturn:alwaysFilter condition of the declared context type.
include_actorBooleannofalseWhether to include the acting entity itself among the targets.
Example
{
"type": "saturn:region_apply",
"radius": 8,
"shape": "sphere",
"bientity_action": {
"type": "saturn:heal_target",
"amount": 2
}
}

Distances are relative to the query centre. Entity queries use entity positions and exclude spectators. Block radii are floored to a non-negative integer and positions are enumerated lazily. Negative or non-finite radii yield an empty region.

The centre is the activation position; actor is the activating entity and target is each matching entity.

saturn:remove_ability​

Removes the ability granted by the given source; abilities from other sources are not affected.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:remove_ability
abilityResource IDyes—Ability ID or tool ability, depending on the field type.
sourceResource IDyes—Input collection, resource path or context parameter; see the usage on this page.
Example
{
"type": "saturn:remove_ability",
"ability": "example:heal",
"source": "example:manual"
}

saturn:remove_effect​

Removes the given status effect from the entity.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:remove_effect
effectResource IDyes—Status effect ID.
Example
{
"type": "saturn:remove_effect",
"effect": "minecraft:speed"
}

saturn:replace_inventory​

Replaces each matching slot with a freshly created item template on the server; empty slots can match.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:replace_inventory
stackItem ID / item template objectyes—Item template instantiated separately for each matching slot.
item_conditionItem conditionsnosaturn:alwaysFilter condition of the declared context type.
slotInteger / string / mixed arrayno[]Vanilla command slot number or slot name/range; mixed arrays are accepted. An empty array selects the default slots.
Example
{
"type": "saturn:replace_inventory",
"slot": "weapon.mainhand",
"stack": "minecraft:stick"
}

Defaults to hotbar.*, inventory.*, weapon.*, armor.*, saddle and mob.inventory.*. Only vanilla slots exposed by the entity are visited. The player’s selected hotbar slot and main-hand alias are deduplicated. Origins Power inventories are not read.

Omitting item_condition matches every selected slot, including empty ones. Explicitly exclude saturn:empty to replace only existing stacks.

saturn:reset_stat​

Resets one or more vanilla statistics for a server player.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:reset_stat
statResource ID / object / arrayyes—A custom statistic ID, or a {stat_type, id} object.
Example
{
"type": "saturn:reset_stat",
"stat": "minecraft:jump"
}

A string selects a minecraft:custom statistic, e.g. "minecraft:jump". A typed statistic uses {"stat_type":"minecraft:mined","id":"minecraft:stone"}. Unknown types or entries do not match or execute.

saturn:revoke_advancement​

Revokes advancements or named criteria from a server player.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:revoke_advancement
advancementResource IDyes—Advancement ID; ignored when selection is everything.
criterionString / string arrayno[]Criterion name or array; omitted or empty means the whole advancement.
selectionEnum stringno"only"only: itself; through: ancestors and descendants; from: descendants; until: ancestors; everything: all advancements. Every non-global mode includes the given advancement.
Example
{
"type": "saturn:revoke_advancement",
"advancement": "minecraft:story/root"
}

Only affects server players. everything selects the entire advancement registry; other modes start at the given ID. Missing IDs do nothing. Named criteria are applied to each selected advancement.

saturn:riding_action​

Runs an action on what the entity is riding, and can walk the riding chain recursively.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:riding_action
actionEntity actionno{"type":"saturn:no_op"}The sub-action to run; its kind must match what this field expects.
bientity_actionBi-entity actionno{"type":"saturn:no_op"}Action run between the two sides of the context.
bientity_conditionBi-entity conditionno{"type":"saturn:always"}Condition that filters the two sides of the context.
recursiveBooleannofalseWhether to walk the riding or passenger chain recursively.
Example
{
"type": "saturn:riding_action"
}

saturn:selector_action​

Selects entities with a vanilla selector, filters them and executes a bi-entity action on the server.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:selector_action
selectorStringyes—Vanilla entity selector, evaluated with the acting entity and activation position as command context.
bientity_actionBi-entity actionsyes—Nested action of the declared context type.
bientity_conditionBi-entity conditionsnosaturn:alwaysFilter condition of the declared context type.
Example
{
"type": "saturn:selector_action",
"selector": "@e[type=minecraft:zombie,distance=..8]",
"bientity_action": {
"type": "saturn:damage_target",
"damage_type": "minecraft:magic",
"amount": 2
}
}

saturn:self_bientity_action​

Runs a bi-entity action with the same entity as both actor and target.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:self_bientity_action
actionBi-entity actionyes—The sub-action to run; its kind must match what this field expects.
Example
{
"type": "saturn:self_bientity_action",
"action": {
"type": "saturn:no_op"
}
}

saturn:send_message​

Sends a text component to players that match the recipient condition, optionally to the chat bar or the action bar.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:send_message
messageText componentyes—Text component sent to players; strings are treated as translation keys.
channelEnum stringno"chat"Message channel; see the enum notes below for available values. Available values: chat, action_bar.
targetEnum stringno"self"Action target, target ID or target selection; see the type description on this page. Available values: self, other, all.
recipientsEntity conditionno{"type":"saturn:always"}Entity condition checked for each candidate recipient player.

channel accepts chat and action_bar. target=self selects the actor / item holder, other selects the bi-entity target, and all selects the players in the current server dimension. Block actions have no recipients of their own, so they usually use all. recipients is checked separately for every candidate player.

Example
{
"type": "saturn:send_message",
"message": {
"text": "Operation complete"
}
}

saturn:set_fall_distance​

Changes the accumulated fall distance of the entity.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:set_fall_distance
distanceNumberyes—Distance or a vanilla distance predicate.
Example
{
"type": "saturn:set_fall_distance",
"distance": 1
}

saturn:set_no_gravity​

Controls whether the entity ignores gravity.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:set_no_gravity
no_gravityBooleannotrueWhether no-gravity is enabled.
Example
{
"type": "saturn:set_no_gravity"
}

saturn:set_on_fire​

Sets the entity on fire for the given number of ticks.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:set_on_fire
ticksIntegeryes—Number of game ticks; 20 ticks is usually one second.
Example
{
"type": "saturn:set_on_fire",
"ticks": 1
}

saturn:spawn_effect_cloud​

Spawns an area effect cloud with status effects near the entity.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:spawn_effect_cloud
radiusNumberno3.0Radius in blocks; in a resource bar it is in pixels.
radius_on_useNumberno-0.5Radius change after each application of the effect cloud.
wait_timeIntegerno10Number of ticks to wait before the effect cloud starts applying.
effectsArray of enum stringsno[]List of status effects or a vanilla effect predicate.
Example
{
"type": "saturn:spawn_effect_cloud"
}

saturn:spawn_entity​

Spawns an entity at the position provided by the context or at the given coordinates.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:spawn_entity
entity_typeResource IDyes—Entity type ID.
xNumber provideryes—X coordinate, offset or vector component, depending on this page's behavior.
yNumber provideryes—Y coordinate, offset or vector component, depending on this page's behavior.
zNumber provideryes—Z coordinate, offset or vector component, depending on this page's behavior.
Example
{
"type": "saturn:spawn_entity",
"entity_type": "minecraft:arrow",
"x": 1,
"y": 1,
"z": 1
}

saturn:spawn_particles​

Spawns particles near the entity using offset and spread parameters.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:spawn_particles
particleEnum stringyes—Vanilla particle parameter.
bientity_conditionBi-entity conditionno{"type":"saturn:always"}Condition that filters the two sides of the context.
countIntegeryes—Count or count matching pattern. Codec range: 0, 2147483647.
speedNumberno0.0Particle speed.
forceBooleannofalseWhether to force the particles to be sent.
spreadArray of three numbersno[0.5,0.5,0.5]Spread range on the three axes.
offset_xNumberno0.0Offset along the X axis.
offset_yNumberno0.5Offset along the Y axis.
offset_zNumberno0.0Offset along the Z axis.
Example
{
"type": "saturn:spawn_particles",
"particle": {
"type": "minecraft:cloud"
},
"count": 1
}

saturn:spawn_projectile​

Spawns an entity and gives it the given initial velocity.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:spawn_projectile
entity_typeResource IDyes—Entity type ID.
velocity_xNumber provideryes—X component of the initial velocity.
velocity_yNumber provideryes—Y component of the initial velocity.
velocity_zNumber provideryes—Z component of the initial velocity.
Example
{
"type": "saturn:spawn_projectile",
"entity_type": "minecraft:arrow",
"velocity_x": 1,
"velocity_y": 1,
"velocity_z": 1
}

saturn:swing_hand​

Triggers the swing animation of the given hand.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:swing_hand
handEnum stringyes—Hand to use. Available values: main_hand, off_hand.
Example
{
"type": "saturn:swing_hand",
"hand": "main_hand"
}

saturn:teleport​

Changes the position of the entity.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:teleport
xNumber provideryes—X coordinate, offset or vector component, depending on this page's behavior.
yNumber provideryes—Y coordinate, offset or vector component, depending on this page's behavior.
zNumber provideryes—Z coordinate, offset or vector component, depending on this page's behavior.
Example
{
"type": "saturn:teleport",
"x": 1,
"y": 1,
"z": 1
}

Meta types​

These types do not test a concrete value themselves; they combine or delegate other types of the same kind and are embedded in the same fields.

saturn:chance​

Decides whether the action fires based on a given chance.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:chance
actionEntity actionyes—The sub-action to run; its kind must match what this field expects.
chanceNumberyes—Hit chance; 0 never fires, 1 always fires. Codec range: 0.0F, 1.0F.
fail_actionEntity actionno{"type":"saturn:no_op"}Action to run when the chance check fails.
Example
{
"type": "saturn:chance",
"action": {
"type": "saturn:no_op"
},
"chance": 1
}

saturn:choice​

Picks one action at random by weight and runs it.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:choice
actionsArray of weighted entries (value, weight)yes—Array of sub-actions; sequential kinds run in order, weighted kinds pick by value and weight.

Each entry contains value and weight; see Weighted entries. Negative weights are treated as 0; when the total weight is 0, an entry is picked uniformly from the non-empty action list. An empty action list does nothing.

Example
{
"type": "saturn:choice",
"actions": [
{
"value": {
"type": "saturn:no_op"
},
"weight": 1
}
]
}

saturn:for_range​

Executes an action a fixed number of times, up to the configured iteration limit.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:for_range
rangeNumber provideryes—Repetition count, truncated toward zero; negative values execute nothing.
actionEntity actionsyes—Nested action of the declared context type.
max_iterationsIntegerno1024Maximum iterations per invocation; must be at least 1.
Example
{
"type": "saturn:for_range",
"range": 3,
"action": {
"type": "saturn:no_op"
}
}

The count is evaluated once before the loop and capped at max_iterations.

saturn:if_else​

Runs if_action when the condition holds, otherwise runs else_action.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:if_else
conditionEntity conditionyes—The condition to check.
if_actionEntity actionyes—Action to run when the condition holds.
else_actionEntity actionno{"type":"saturn:no_op"}Action to run when the condition does not hold.
Example
{
"type": "saturn:if_else",
"condition": {
"type": "saturn:always"
},
"if_action": {
"type": "saturn:no_op"
}
}

saturn:if_else_list​

Executes the first branch whose condition matches, then stops checking branches.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:if_else_list
actionsBranch arrayyes—Ordered branches; each entry contains condition and action.

Each actions entry:

FieldTypeRequiredDescription
conditionEntityConditionyesCondition selecting this branch.
actionEntityActionyesAction to run; later branches are not checked.
Example
{
"type": "saturn:if_else_list",
"actions": [
{
"condition": {
"type": "saturn:always"
},
"action": {
"type": "saturn:no_op"
}
}
]
}

saturn:js​

Calls a callback registered by KubeJS and passes the params argument.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:js
idStringyes—Identifier of the callback, option or entry.
paramsObjectno{}Parameter object passed to the script or formula.

Registered only when KubeJS is installed. JSON only selects an existing callback; it never executes a JavaScript string inside the JSON directly.

Example
{
"type": "saturn:js",
"id": "example_callback",
"params": {}
}

saturn:no_op​

Does nothing; usable as a placeholder action value.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:no_op
Example
{
"type": "saturn:no_op"
}

saturn:sequence​

Runs several actions of the same kind in array order.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:sequence
actionsArray of actions of the same kindyes—Array of sub-actions; sequential kinds run in order, weighted kinds pick by value and weight.
Example
{
"type": "saturn:sequence",
"actions": []
}

saturn:side​

Executes the nested action only on the selected logical side.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:side
actionEntity actionsyes—Nested action of the declared context type.
sideEnum stringyes—Logical side: client or server.
Example
{
"type": "saturn:side",
"side": "server",
"action": {
"type": "saturn:no_op"
}
}

Uses the level’s logical side. An integrated server is server even inside a client process. This action does not send a packet or execute remotely.

saturn:while​

Repeats an action while its condition matches, with a configurable iteration limit.

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:while
conditionEntity conditionsyes—Filter condition of the declared context type.
actionEntity actionsyes—Nested action of the declared context type.
max_iterationsIntegerno1024Maximum iterations per invocation; must be at least 1.
Example
{
"type": "saturn:while",
"max_iterations": 64,
"condition": {
"type": "saturn:never"
},
"action": {
"type": "saturn:no_op"
}
}

The condition is checked before every iteration. If it is still true after max_iterations, the action throws and stops; actions already executed are not rolled back.