Skip to main content

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

Dimension

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

Parameters

ParameterTypeRequiredDefaultDescription
dimensionDimensionRequired-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