Skip to main content

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

Block

The arc:block condition type checks if the block involved in the action matches a specific block description.

Parameters

ParameterTypeRequiredDefaultDescription
blockArcBlockStateRequired-The block to check.

Example

The following example checks for a Chest that is facing North. Note that properties are defined within the block object.

data/my_datapack/arc/north_chest.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_interact_block",
"conditions": [
{
"type": "arc:block",
"block": {
"id": "minecraft:chest",
"properties": {
"facing": "north"
}
}
}
],
"rewards": [
{
"type": "arc:command",
"command": "say You opened a North facing chest!"
}
]
}

Compatible Action Types