Entity Action Types
Entity actions perform operations on a single entity. Use them inside power types and other actions.
origins:action_on_set
Executes a bi-entity action for each entity in an entity set.
| Field | Type | Default | Description |
|---|---|---|---|
set | Wildcard Identifier | required | Entity set ID |
bientity_action | Bi-entity Action | required | Action between source and each set member |
bientity_condition | Bi-entity Condition | optional | Filter for set members |
limit | Integer | 0 | Max entities to target (0 = unlimited) |
reverse | Boolean | false | If true, iterate in reverse order |
origins:add_velocity
Adds velocity to the entity.
| Field | Type | Default | Description |
|---|---|---|---|
x | Float | 0.0 | Velocity on the X axis |
y | Float | 0.0 | Velocity on the Y axis |
z | Float | 0.0 | Velocity on the Z axis |
space | Space | world | Coordinate space for the velocity |
set | Boolean | false | If true, sets velocity instead of adding |
Example
"entity_action": {
"type": "origins:add_velocity",
"y": 2
}
This example will add an upward velocity to the entity, launching it into the air.
origins:add_xp
Adds experience points or levels.
| Field | Type | Default | Description |
|---|---|---|---|
points | Integer | required | XP points to add |
levels | Integer | required | XP levels to add |
Example
"entity_action": {
"type": "origins:add_xp",
"levels": 2
}
This example will add 2 levels to the player.
origins:apply_effect
Applies a status effect (different internal behavior from add_effect).
| Field | Type | Default | Description |
|---|---|---|---|
effect | ValueOrList of MobEffectInstance | required | Effects to apply |
Example
"entity_action": {
"type": "origins:apply_effect",
"effect": {
"id": "minecraft:speed",
"duration": 400,
"amplifier": 0
}
}
This example will apply a Speed I status effect to the entity that would last for 20 seconds.
origins:area_of_effect
Executes a bi-entity action within a specified radius.
| Field | Type | Default | Description |
|---|---|---|---|
radius | Float | 16.0 | Determines the radius of the area. |
bientity_action | Bi-entity Action | required | Bi-entity action to execute on the actor and entities within the radius. |
bientity_condition | Bi-entity Condition | optional | If specified, only executes the action if this condition is fulfilled. |
include_target | Boolean | false | If true, the actor itself is also included as a target. |
Example
"entity_action": {
"type": "origins:area_of_effect",
"radius": 32,
"bientity_action": {
"type": "origins:target_action",
"action": {
"type": "origins:set_on_fire",
"duration": 5
}
},
"bientity_condition": {
"type": "origins:can_see"
}
}
This example will set entities within a 32 block radius on fire for 5 seconds if the entities that are within the radius can be "seen" by the entity that invoked the action.
origins:award_stat
Increments one or more Minecraft stats. Only works on the server side.
| Field | Type | Default | Description |
|---|---|---|---|
stat | Stat Reference or List | required | Stats to increment |
amount | Integer | 1 | Amount to increment |
Example 1
{
"type": "origins:award_stat",
"stat": [
"minecraft:jump",
"minecraft:sprint_one_cm"
]
}
This example will increment both the minecraft:jump and minecraft:sprint_one_cm stats by 1.
Example 2
{
"type": "origins:award_stat",
"stat": {
"stat_type": "minecraft:mined",
"id": "minecraft:diamond_ore"
},
"amount": 20
}
This example will increment the minecraft:mined:minecraft:diamond_ore stat by 20.
origins:block_action
Executes a block action at the entity's position.
| Field | Type | Default | Description |
|---|---|---|---|
block_action | Block Action | required | Action to execute |
origins:block_action_at
Executes a block action at a specific offset from the entity.
| Field | Type | Default | Description |
|---|---|---|---|
block_action | Block Action | optional | Action to execute |
Example
"entity_action": {
"type": "origins:block_action_at",
"block_action": {
"type": "origins:set_block",
"block": "minecraft:sand"
}
}
This example will execute a Set Block that would set a Sand block at the entity's feet.
origins:change_resource
Changes a resource value by a specified amount.
| Field | Type | Default | Description |
|---|---|---|---|
resource | Wildcard Identifier | required | Resource power ID |
change | Integer or Resource Reference | required | Amount to change (can be negative) |
operation | String | add | Operation: add or set |
Example
"entity_action": {
"type": "origins:change_resource",
"resource": "namespace:example",
"change": 1
}
This example will add 1 to the namespace:example (data/namespace/powers/example.json) power that uses the Resource (Power Type).
origins:variable_change_resource
Changes a resource by an expression result.
| Field | Type | Default | Description |
|---|---|---|---|
resource | Wildcard Identifier | required | Resource power ID |
expression | String | required | Expression evaluated with exp4j |
variables | Variables | optional | Resource values available to the expression |
operation | String | add | add or set |
origins:clear_set
Clears an entity set.
| Field | Type | Default | Description |
|---|---|---|---|
set | Wildcard Identifier | required | Entity set ID |
origins:crafting_table
Opens a crafting table GUI for the entity.
origins:damage
Damages the entity.
| Field | Type | Default | Description |
|---|---|---|---|
damage_type | Identifier | required | Damage type ID |
amount | Float | required | Damage amount |
modifier | Modifier or List | [] | Modifiers applied to the damage |
Example
"entity_action": {
"type": "origins:damage",
"amount": 4,
"damage_type": "minecraft:on_fire"
}
This example will damage the entity for 4 points (2 hearts) of fire damage.
origins:dismount
Forces the entity to dismount from any vehicle it is currently riding.
origins:drop_inventory
Drops the entity's inventory.
| Field | Type | Default | Description |
|---|---|---|---|
power | Identifier | optional | Power whose inventory to drop |
entity_action | Entity Action | optional | Action on dropped items |
item_action | Item Action | optional | Action applied to each dropped item |
item_condition | Item Condition | optional | Filter for items to drop |
slot | List of Integer | optional | Specific slots to drop |
throw_randomly | Boolean | false | Whether items scatter randomly |
retain_ownership | Boolean | true | Whether dropped items retain ownership |
amount | Integer | 0 | Max items to drop (0 = all) |
Example
"entity_action": {
"type": "origins:drop_inventory"
}
This example will drop all the items from the entity's inventory.
origins:emit_game_event
Emits a game event at the entity's location.
| Field | Type | Default | Description |
|---|---|---|---|
action | Identifier | required | Game event ID |
Example
"entity_action": {
"type": "origins:emit_game_event",
"event": "minecraft:ring_bell"
}
This example will emit a minecraft:ring_bell game event, which has a redstone signal output of 6.
origins:ender_chest
Opens the ender chest GUI for the entity.
origins:equipped_item_action
Executes an item action on the entity's equipped item.
| Field | Type | Default | Description |
|---|---|---|---|
slot | Equipment Slot Group | required | Which equipment slot |
action | Item Action | required | Action to execute |
Example
"entity_action": {
"type": "origins:equipped_item_action",
"equipment_slot": "mainhand",
"action": {
"type": "origins:consume",
"amount": 1
}
}
This example will "consume" (remove) 1 item from the item stack in the mainhand equipment slot.
origins:execute_command
Executes a command as the entity.
| Field | Type | Default | Description |
|---|---|---|---|
command | String | required | Command to execute |
Example
"entity_action": {
"type": "origins:execute_command",
"command": "tellraw @a {\"text\": \"Hello world!\", \"color\": \"green\"}"
}
This example will execute a Set Block that would set a Sand block at the entity's feet.
origins:variable_execute_command
Executes a command as the entity after interpolating resource variables. See Variables for interpolation forms.
| Field | Type | Default | Description |
|---|---|---|---|
command | String | required | Command to execute |
variables | Variables | optional | Resource values available to the command |
origins:exhaust
Adds exhaustion to the player.
| Field | Type | Default | Description |
|---|---|---|---|
amount | Float | required | Exhaustion amount |
Example
"entity_action": {
"type": "origins:exhaust",
"amount": 0.4
}
This example will add 1 to the namespace:example (data/namespace/powers/example.json) power that uses the Resource (Power Type).
origins:explode
Creates an explosion at the entity's location.
| Field | Type | Default | Description |
|---|---|---|---|
power | Float | required | Explosion power |
destruction_type | String | break | Block destruction: break, destroy, none |
indestructible | Block Condition | optional | Blocks immune to the explosion |
create_fire | Boolean | false | Whether to create fire |
Example
"entity_action": {
"type": "origins:explode",
"power": 5,
"damage_self": false,
"create_fire": false
}
This example will drop all the items from the entity's inventory.
origins:extinguish
Extinguishes fire on the entity.
origins:feed
Restores hunger and saturation.
| Field | Type | Default | Description |
|---|---|---|---|
food | Integer | required | Food points to restore |
saturation | Float | required | Saturation to restore |
Example
"entity_action": {
"type": "origins:feed",
"food": 4,
"saturation": 2
}
This example will emit a minecraft:ring_bell game event, which has a redstone signal output of 6.
origins:fire_projectile
Fires a projectile from the entity.
| Field | Type | Default | Description |
|---|---|---|---|
entity_type | Identifier | required | Projectile entity type ID |
divergence | Float | 1.0 | Projectile spread/divergence |
speed | Float | 1.0 | Projectile speed multiplier |
count | Integer | 1 | Number of projectiles to fire |
tag | NBT Compound | optional | NBT data tag for the projectile entity |
projectile_action | Entity Action | optional | Action to execute for each fired projectile |
origins:gain_air
Refills the entity's air (oxygen).
| Field | Type | Default | Description |
|---|---|---|---|
value | Integer | required | Air to add |
Example
"entity_action": {
"type": "origins:gain_air",
"value": 20
}
This example will "consume" (remove) 1 item from the item stack in the mainhand equipment slot.
origins:give_item
Gives an item to the entity.
| Field | Type | Default | Description |
|---|---|---|---|
stack | Item Stack | required | Item to give |
item_action | Item Action | optional | Action applied to the item before giving |
preferred_slot | Equipment Slot Group | optional | Preferred inventory slot |
Example
"entity_action": {
"type": "origins:give_item",
"stack": {
"item": "minecraft:egg",
"amount": 3
}
}
This example will restore about 1 second of breath to the entity.
origins:grant_advancement
Grants an advancement to the player.
| Field | Type | Default | Description |
|---|---|---|---|
advancement | Identifier | required | Advancement ID |
Example
"entity_action": {
"type": "origins:grant_advancement",
"advancement": "minecraft:adventure/arbalistic"
}
This example will grant the player the Arbalistic advancement.
origins:grant_power
Grants a power to the entity.
| Field | Type | Default | Description |
|---|---|---|---|
power | Identifier | required | Power ID |
source | Wildcard Identifier | required | Source identifier for the power |
Example
"entity_action": {
"type": "origins:grant_power",
"power": "origins:burn_in_daylight",
"source": "example:power_source"
}
This example will grant the entity the origins:burn_in_daylight power from the example:power_source source.
origins:heal
Heals the entity.
| Field | Type | Default | Description |
|---|---|---|---|
amount | Float | required | Health to restore |
Example
"entity_action": {
"type": "origins:heal",
"amount": 6
}
This example gives the entity 3 Eggs.
origins:modify_attack_cooldown
This action is currently unstable and may not work as intended. Please report if you encounter any issues with it.
Changes a player's current attack-strength cooldown ticker through a Modifier.
| Field | Type | Default | Description |
|---|---|---|---|
modifier | Modifier | required | Modifier applied to the current cooldown ticker |
origins:modify_attack_cooldown
This action is currently unstable and may not work as intended. Please report if you encounter any issues with it.
Changes a player's current attack-strength cooldown ticker through a Modifier. A value of 0 means the attack cooldown has just started; the normal maximum means it is ready.
| Field | Type | Default | Description |
|---|---|---|---|
modifier | Modifier | required | Modifier applied to the current cooldown ticker |
origins:modify_death_ticks
Modifies the entity's death tick counter.
| Field | Type | Default | Description |
|---|---|---|---|
modifier | [Modifier] | required | Modifier applied to death ticks |
Example
"entity_action": {
"type": "origins:modify_death_ticks",
"modifier": {
"operation": "set_total",
"value": 0
}
}
This example will make the corpse of the entity remain in the world forever.
origins:modify_inventory
Modifies items in the entity's inventory.
| Field | Type | Default | Description |
|---|---|---|---|
power | Identifier | optional | Power whose inventory to modify |
entity_action | Entity Action | optional | Action on the entity |
item_action | Item Action | required | Action to apply |
item_condition | Item Condition | optional | Filter for items to modify |
slot | List of Integer | optional | Specific slots to modify |
process_mode | String | STACKS | STACKS or ITEMS |
limit | Integer | 0 | Max items to process (0 = unlimited) |
Example
"entity_action": {
"type": "origins:modify_inventory",
"inventory_type": "power",
"power": "origins:extra_inventory",
"item_action": {
"type": "origins:consume"
}
}
This example will consume each item in the inventory of the origins:extra_inventory power, decreasing their count by 1.
origins:modify_resource
Modifies a resource value.
| Field | Type | Default | Description |
|---|---|---|---|
resource | Wildcard Identifier | required | Resource power ID |
modifier | [Modifier] | required | Modifier applied |
Example
"entity_action": {
"type": "origins:modify_resource",
"modifier": {
"operation": "add_base_early",
"value": 1
},
"resource": "example:1st_resource"
}
This example will add 1 to the example:1st_resource (data/example/powers/1st_resource.json) power.
origins:passenger_action
Executes an action on the entity's passengers.
| Field | Type | Default | Description |
|---|---|---|---|
action | Entity Action | required | Action to execute |
recursive | Boolean | optional | Whether to apply recursively |
Example
"entity_action": {
"type": "origins:passenger_action",
"action": {
"type": "origins:heal",
"amount": 2
},
"recursive": true
}
This example will heal all entities that are currently riding the entity that executed this entity action type.
origins:play_sound
Plays a sound.
| Field | Type | Default | Description |
|---|---|---|---|
sound | Identifier | required | Sound event ID |
category | String | optional | Sound category (e.g. neutral, player, hostile, ambient) |
volume | Float | 1.0 | Sound volume |
pitch | Float | 1.0 | Sound pitch |
Example
"entity_action": {
"type": "origins:play_sound",
"sound": "minecraft:entity.chicken.egg"
}
This example will play the minecraft:entity.chicken.egg sound event that can be heard within a 16 blocks distance. (16 * 1.0 = 16)
origins:random_teleport
Teleports the entity to a random nearby location.
| Field | Type | Default | Description |
|---|---|---|---|
area_width | Float | 8.0 | Width/horizontal radius of the search area |
area_height | Float | 8.0 | Height/vertical radius of the search area |
heightmap | String | optional | Heightmap type for ground placement (MOTION_BLOCKING, WORLD_SURFACE, etc.) |
attempts | Integer | optional | Max teleport attempts |
landing_block_condition | Block Condition | optional | Condition the landing block must meet |
landing_condition | Entity Condition | optional | Condition at the landing position |
landing_offset | Object | {0,0,0} | Offset from the landing position (x/y/z) |
loaded_chunks_only | Boolean | true | Only teleport to loaded chunks |
success_action | Entity Action | optional | Action on successful teleport |
fail_action | Entity Action | optional | Action on failed teleport |
origins:raycast
Performs a raycast and executes actions on hit entities/blocks.
| Field | Type | Default | Description |
|---|---|---|---|
distance | Float | required | Raycast distance |
block | Boolean | true | Whether blocks are checked |
entity | Boolean | true | Whether entities are checked |
shape_type | String | visual | visual or collider |
fluid_handling | String | none | none, source_only, any, or water |
bientity_condition | Bi-entity Condition | optional | Filter for hit entities |
before_action | Entity Action | optional | Action executed before the raycast |
bientity_action | Bi-entity Action | optional | Action on hit entity |
block_action | Block Action | optional | Action on hit block |
hit_action | Entity Action | optional | Action on hit (entity or block) |
miss_action | Entity Action | optional | Action if nothing is hit |
command_at_hit | String | optional | Command executed at hit position |
command_along_ray | String | optional | Command executed along the ray path |
command_step | Float | 1.0 | Step distance for along-ray commands |
command_hit_offset | Float | optional | Offset from hit for command execution |
command_along_ray_only_on_hit | Boolean | true | Only show along-ray particles on hit |
Example
"entity_action": {
"type": "origins:raycast",
"distance": 16,
"block": true,
"entity": true,
"shape_type": "visual",
"fluid_handling": "any",
"bientity_action": {
"type": "origins:target_action",
"action": {
"type": "origins:execute_command",
"command": "say I've been hit!"
}
},
"before_action": {
"type": "origins:execute_command",
"command": "say Before"
},
"hit_action": {
"type": "origins:execute_command",
"command": "say After (hit)"
},
"miss_action": {
"type": "origins:execute_command",
"command": "say After (miss)"
},
"command_at_hit": "particle minecraft:block_marker minecraft:emerald_block ~ ~ ~ 0 0 0 0.0 1 normal @a",
"command_along_ray": "particle minecraft:soul_fire_flame",
"command_step": 1,
"command_along_ray_only_on_hit": true
}
This example will cast a ray that can go through Glass blocks (or any blocks that are transparent and see-through) that will only display the Soul Fire Flame particle if the ray has hit a block/entity.
origins:remove_effect
Removes a status effect.
| Field | Type | Default | Description |
|---|---|---|---|
effect | List of Identifier | optional | Effect IDs to remove (all if not specified) |
Example
"entity_action": {
"type": "origins:clear_effect",
"effect": "minecraft:poison"
}
This example will clear the Poison status effect from the entity.
origins:replace_entity
This action is currently unstable and may not work as intended. Please report if you encounter any issues with it.
Replaces a non-player entity with one of the configured entity types while retaining its serialized data, position, and rotation.
| Field | Type | Default | Description |
|---|---|---|---|
entity_types | List of Entity Type | required | Replacement list |
random | Boolean | false | Choose randomly instead of using the first list entry |
tag | NBT Compound | optional | Data merged into the replacement entity |
origins:replace_entity
This action is currently unstable and may not work as intended. Please report if you encounter any issues with it.
Replaces a non-player entity with a configured entity type while retaining serialized data, position, and rotation.
| Field | Type | Default | Description |
|---|---|---|---|
entity_types | List of Entity Type | required | Replacement list |
random | Boolean | false | Choose randomly instead of the first list entry |
tag | NBT Compound | optional | Data merged into the replacement entity |
origins:replace_inventory
Replaces the entity's inventory contents.
| Field | Type | Default | Description |
|---|---|---|---|
entity_action | Entity Action | optional | Action on the entity |
power | Identifier | optional | Power whose inventory to replace |
item_action | Item Action | required | Action to apply to each item |
item_condition | Item Condition | optional | Filter for items |
slot | List of Integer | optional | Specific slots to replace |
merge_component | Boolean | true | Whether to merge data components |
stack | Item Stack | required | Replacement item |
Example
"entity_action": {
"type": "origins:replace_inventory",
"slot": "weapon.offhand",
"stack": {
"item": "minecraft:barrier"
}
}
This example will replace the item in the entity's offhand with a Barrier item.
origins:reset_stat
Resets (sets to 0) one or more Minecraft statistics for the entity. Only works on the server side.
The stat field accepts either a
single Stat Reference or a list of them.
| Field | Type | Default | Description |
|---|---|---|---|
stat | Stat Reference or List | required | Stats to reset |
Example 1
{
"type": "origins:reset_stat",
"stat": [
"minecraft:deaths",
"minecraft:jump",
"minecraft:walk_one_cm"
]
}
This example will reset the minecraft:deaths, minecraft:jump, and minecraft:walk_one_cm stats to 0 for the entity.
Example 2
{
"type": "origins:reset_stat",
"stat": {
"stat_type": "minecraft:mined",
"id": "minecraft:diamond_ore"
}
}
This example will reset the minecraft:mined:minecraft:diamond_ore stat to 0 for the entity.
origins:revoke_advancement
Revokes an advancement.
| Field | Type | Default | Description |
|---|---|---|---|
advancement | Identifier | required | Advancement ID |
criterion | List of String | [] | Specific criteria to revoke |
selection | String | ONLY | Selection mode: ONLY, SKIP, EVERYTHING |
Example
"entity_action": {
"type": "origins:revoke_advancement",
"advancement": "minecraft:adventure/arbalistic"
}
This example will revoke the Arbalistic advancement from the player, if they have it.
origins:revoke_power
Revokes a power from the entity.
| Field | Type | Default | Description |
|---|---|---|---|
power | Identifier | optional | Power whose power source to revoke from |
source | Wildcard Identifier | required | Source identifier to revoke |
Example
"entity_action": {
"type": "origins:revoke_power",
"power": "origins:elytra",
"source": "origins:elytrian"
}
This example will revoke the origins:elytra power from the origins:elytrian source from the entity.
origins:riding_action
Executes an action on the entity being ridden.
| Field | Type | Default | Description |
|---|---|---|---|
action | Entity Action | required | Action to execute |
recursive | Boolean | optional | Whether to apply recursively |
Example
"entity_action": {
"type": "origins:riding_action",
"action": {
"type": "origins:apply_effect",
"effect": {
"effect": "minecraft:speed",
"duration": 100,
"amplifier": 1
}
}
}
This example will apply a Speed II status effect to the entity that is currently being ridden by the entity that executed the entity action type.
origins:selector_action
Execute action on entities selected by a selector. With a condition to filter the selected entities.
| Field | Type | Default | Description |
|---|---|---|---|
selector | String | required | Entity selector (e.g. @p, @e[type=minecraft:zombie], etc.) |
bientity_action | Bi-entity Action | required | Action to execute |
bientity_condition | Bi-entity Condition | optional | Filter for selected entities |
origins:self_bientity_action
This action is currently unstable and may not work as intended. Please report if you encounter any issues with it.
Executes a bi-entity action with the same entity as both actor and target.
| Field | Type | Default | Description |
|---|---|---|---|
action | Bi-entity Action | required | Action to execute with this entity in both roles |
origins:set_fall_distance
Sets the entity's fall distance (affects fall damage).
| Field | Type | Default | Description |
|---|---|---|---|
fall_distance | Float | required | New fall distance |
Example
"entity_action": {
"type": "origins:set_fall_distance",
"fall_distance": 0
}
This example will reset the entity's fall distance so that the fall damage is now calculated from that point.
origins:set_no_gravity
This action is currently unstable and may not work as intended. Please report if you encounter any issues with it.
Sets whether the entity is affected by gravity.
| Field | Type | Default | Description |
|---|---|---|---|
no_gravity | Boolean | true | Whether gravity is disabled |
origins:set_on_fire
Sets the entity on fire.
| Field | Type | Default | Description |
|---|---|---|---|
tick | Integer | required | Fire duration in ticks |
Example
"entity_action": {
"type": "origins:set_on_fire",
"duration": 5
}
This example will clear the Poison status effect from the entity.
origins:set_origin
This action is currently unstable and may not work as intended. Please report if you encounter any issues with it.
Sets the entity's origin in a layer.
| Field | Type | Default | Description |
|---|---|---|---|
layer | Layer | required | Layer whose origin will be changed |
origin | Origin | required | Origin to assign |
origins:spawn_effect_cloud
Spawns an effect cloud at the entity's position.
| Field | Type | Default | Description |
|---|---|---|---|
effect | List of MobEffectInstance | optional | Effects in the cloud |
radius | Float | 3.0 | Cloud radius |
radius_on_use | Float | 0.5 | Radius increase on use |
wait_time | Integer | optional | Cloud duration |
Example
"entity_action": {
"type": "origins:spawn_effect_cloud",
"radius": 10.0,
"wait_time": 40,
"effect": {
"effect": "minecraft:resistance",
"amplifier": 3,
"duration": 100
}
}
This example will spawn a large Area Effect Cloud, which provides the Resistance IV status effect that will last for 5 seconds at the entity's position.
origins:spawn_entity
Spawns an entity at the entity's position.
| Field | Type | Default | Description |
|---|---|---|---|
entity_type | Identifier | required | Entity type ID |
tag | NBT | optional | Initial NBT data |
entity_action | Entity Action | optional | Action executed on the spawned entity |
bientity_action | Bi-entity Action | optional | Action between spawner and spawned entity |
Example
"entity_action": {
"type": "origins:spawn_entity",
"entity_type": "minecraft:zombie",
"tag": "{NoAI:1b,IsBaby:1}"
}
This example will grant the player the Arbalistic advancement.
origins:spawn_particles
Spawns particles at the entity's position.
| Field | Type | Default | Description |
|---|---|---|---|
particle | Particle Option | required | Particle type and params |
count | Integer | required | Number of particles |
speed | Float | 0.0 | Particle speed |
spread | Object | optional | Spread (x/y/z, default 0.5) |
bientity_condition | Bi-entity Condition | optional | Only show to matching viewers |
force | Boolean | optional | Force particle display |
offset_x | Float | 0.0 | X offset |
offset_y | Float | 0.0 | Y offset |
offset_z | Float | 0.0 | Z offset |
Example
"entity_action": {
"type": "origins:spawn_particles",
"particle": {
"type": "minecraft:block",
"params": "minecraft:redstone_block"
},
"count": 16,
"speed": 0.0,
"force": true,
"spread": {
"x": 3.0,
"y": 0.0,
"z": 3.0
}
}
This example will spawn a particle cuboid that is about 5x0x5 in size that will use the Redstone Block texture.
Spread fields: x, y, z (Float, default 0.0).
origins:swing_hand
Makes the entity swing their hand.
| Field | Type | Default | Description |
|---|---|---|---|
hand | String | required | MAIN_HAND or OFF_HAND |
Example
"entity_action": {
"type": "origins:swing_hand",
"hand": "OFF_HAND"
}
This example will swing the entity's off hand.
origins:toggle
Toggles another power on/off.
| Field | Type | Default | Description |
|---|---|---|---|
power | Wildcard Identifier | required | Power ID to toggle |
Example
"entity_action": {
"type": "origins:toggle",
"power": "origins:phantomize"
}
This example will grant the entity the origins:burn_in_daylight power from the example:power_source source.
origins:trigger_cooldown
Triggers the cooldown of another power.
| Field | Type | Default | Description |
|---|---|---|---|
power | Wildcard Identifier | required | Power ID whose cooldown to trigger |
Example
"entity_action": {
"type": "origins:trigger_cooldown",
"power": "origins:launch_into_air"
}
This example will restore about 3 hearts to the entity.