Bi-entity Action Types
Bi-entity actions involve interactions between two entities (actor and target).
origins:add_to_set
Adds the actor to an entity set, with an optional time limit. After the time limit expires, the actor will be removed from the set. A time limit of -1 means to be in the set permanently until removed by another action.
| Field | Type | Default | Description |
|---|---|---|---|
set | Wildcard Identifier | required | Entity set ID |
time_limit | Integer | -1 | Time limit in ticks to be in the set, after which the actor will be removed from the set |
Example
"bientity_action": {
"type": "origins:add_to_set",
"set": "origins:monsters"
}
This example will add the target entity to the origins:monsters set on actor entity permanently.
origins:add_velocity
Adds velocity to the target.
| Field | Type | Default | Description |
|---|---|---|---|
x | Float | 0.0 | X velocity |
y | Float | 0.0 | Y velocity |
z | Float | 0.0 | Z velocity |
set | Boolean | false | If true, sets velocity instead of adding |
space | String | local | Coordinate space: local or world |
Example
"bientity_action": {
"type": "origins:add_velocity",
"y": 2
}
This example will "pull" the target entity to the actor entity on the Y axis.
origins:copy_origin
This action is currently unstable and may not work as intended. Please report if you encounter any issues with it.
Copies the actor and/or target origin in a layer.
| Field | Type | Default | Description |
|---|---|---|---|
layer | Layer | required | Layer whose origins are copied |
modify_actor | Boolean | false | Copy the target's origin to the actor |
modify_target | Boolean | true | Copy the actor's origin to the target |
origins:copy_origin
This action is currently unstable and may not work as intended. Please report if you encounter any issues with it.
Copies the actor and/or target origin in a layer.
| Field | Type | Default | Description |
|---|---|---|---|
layer | Layer | required | Layer whose origins are copied |
modify_actor | Boolean | false | Copy the target's origin to the actor |
modify_target | Boolean | true | Copy the actor's origin to the target |
origins:copy_origin
This action is currently unstable and may not work as intended. Please report if you encounter any issues with it.
Copies each entity's origin from the other entity in a layer.
| Field | Type | Default | Description |
|---|---|---|---|
layer | Layer | required | Layer whose origins are read and changed |
modify_actor | Boolean | false | Replace the actor's origin with the target's origin |
modify_target | Boolean | true | Replace the target's origin with the actor's origin |
origins:damage_target
Damages the target 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
"bientity_action": {
"type": "origins:damage_target",
"amount": 10,
"damage_type": "minecraft:cramming"
}
This example will deal 5 hearts of cramming damage to the target as if the actor has hit them, and that, if killed, will display a "<targetName> was squashed by <actorName>", where <targetName> is the name of the target and <actorName> is the name of the actor.
origins:mount
Mounts the target entity on the actor.
origins:remove_from_set
Removes the actor from an entity set.
| Field | Type | Default | Description |
|---|---|---|---|
set | Wildcard Identifier | required | Entity set ID |
origins:set_in_love
Sets the target entity in love with the actor.
origins:tame
Tames the target entity.
origins:teleport
This action is currently unstable and may not work as intended. Please report if you encounter any issues with it.
Teleports the actor and/or target to the other entity's original position.
| Field | Type | Default | Description |
|---|---|---|---|
teleport_actor | Boolean | false | Teleport the actor to the target |
teleport_target | Boolean | true | Teleport the target to the actor |
rotate | Boolean | false | Copy the destination entity's rotation |