The minecraft:teleport
action type teleports an entity around their position.
The action is unsuccessful if entity does not exist, if the entity is not a living entity or if it fails to find a valid position to teleport to.
Name | Description | Type | Default Value |
---|---|---|---|
distance | The square distance to look for a position. | A positive integer | |
entity | The entity to target. | An action context parameter |
{ "type": "minecraft:teleport", "distance": 16, "entity": "this" }