Skip to main content

Get 25% OFF on your first order with BisectHosting using code "DAQEM"!

Teleport Player

The arc:teleport_player reward type teleports the player randomly within a specified radius.

Parameters​

ParameterTypeRequiredDefaultDescription
radiusintβœ…Required-No default valueRadius to teleport within.

Example​

The following example randomly teleports the player when they eat a Chorus Fruit.

data/my_datapack/arc/chorus_teleport.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_eat",
"conditions": [
{
"type": "arc:item",
"item": "minecraft:chorus_fruit"
}
],
"rewards": [
{
"type": "arc:teleport_player",
"radius": 16
}
]
}

Compatible Action Types​