Skip to content

Teleport

Teleports / swaps the position of two entities.

Type ID: shappoli:teleport

Fields

Field Type Default Description
teleport_actor Boolean false Whether to teleport the actor entity to the target entity's position.
teleport_target Boolean true Whether to teleport the target entity to the actor entity's position.
rotate Boolean false Whether to also modify the rotation of the entities.

Examples

{
  "type": "shappoli:teleport"
}

This example teleports the target entity to the actor entity's position.

{
  "type": "shappoli:teleport",
  "teleport_actor": true,
  "teleport_target": true,
  "rotate": true
}

This example swaps the positions of two entities, and switches their head rotations.