Skip to main content

Dimension

The arc:dimension condition type checks if the player is in a specific dimension.

Parameters​

ParameterTypeRequiredDefaultDescription
dimensionDimensionβœ…Required-The dimension to check.

Example​

The following example gives the player a netherrack item every time they break a block in The Nether.

data/my_datapack/arc/nether_break_reward.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_break_block",
"conditions": [
{
"type": "arc:dimension",
"dimension": "minecraft:the_nether"
}
],
"rewards": [
{
"type": "arc:item",
"item": { "id": "minecraft:netherrack" }
}
]
}

Compatible Action Types​