Skip to main content

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

Change Dimension

The arc:on_change_dimension action type is triggered when a player travels between dimensions.

Action Data

When this action is triggered, the following action data is made available:

Action Data TypeDescription
arc:from_dimensionThe dimension the player is moving from.
arc:to_dimensionThe dimension the player is moving to.
arc:worldRefers to the world/dimension where the action occurs.

Example

The following example gives the player fire resistance when entering the Nether.

data/my_datapack/arc/nether_protection.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_change_dimension",
"conditions": [
{
"type": "arc:dimension",
"dimension": "minecraft:the_nether"
}
],
"rewards": [
{
"type": "arc:effect",
"effect": {
"id": "minecraft:fire_resistance",
"duration": 600
}
}
]
}

Compatible Condition Types

Compatible Reward Types