Skip to main content

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.

FieldTypeDefaultDescription
set Wildcard IdentifierrequiredEntity set ID
time_limitInteger-1Time 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.

FieldTypeDefaultDescription
xFloat0.0X velocity
yFloat0.0Y velocity
zFloat0.0Z velocity
setBooleanfalseIf true, sets velocity instead of adding
spaceStringlocalCoordinate 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

Unstable

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.

FieldTypeDefaultDescription
layerLayerrequiredLayer whose origins are copied
modify_actorBooleanfalseCopy the target's origin to the actor
modify_targetBooleantrueCopy the actor's origin to the target

origins:copy_origin

Unstable

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.

FieldTypeDefaultDescription
layerLayerrequiredLayer whose origins are copied
modify_actorBooleanfalseCopy the target's origin to the actor
modify_targetBooleantrueCopy the actor's origin to the target

origins:copy_origin

Unstable

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.

FieldTypeDefaultDescription
layerLayerrequiredLayer whose origins are read and changed
modify_actorBooleanfalseReplace the actor's origin with the target's origin
modify_targetBooleantrueReplace the target's origin with the actor's origin

origins:damage_target

Damages the target entity.

FieldTypeDefaultDescription
damage_typeIdentifierrequiredDamage type ID
amountFloatrequiredDamage amount
modifierModifier 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.

FieldTypeDefaultDescription
setWildcard IdentifierrequiredEntity set ID

origins:set_in_love

Sets the target entity in love with the actor.

origins:tame

Tames the target entity.

origins:teleport

Unstable

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.

FieldTypeDefaultDescription
teleport_actorBooleanfalseTeleport the actor to the target
teleport_targetBooleantrueTeleport the target to the actor
rotateBooleanfalseCopy the destination entity's rotation