Skip to main content

Not

The arc:not condition type inverts the result of its nested conditions. It is met if none of the specified conditions are met.

Parameters​

ParameterTypeRequiredDefaultDescription
conditionsCondition[]βœ…Required-A list of conditions to check.

Example​

The following example will reward the player with a diamond if they break any block that is not a stone block.

data/my_datapack/arc/diamond_for_not_stone.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_break_block",
"conditions": [
{
"type": "arc:not",
"conditions": [
{
"type": "arc:block",
"block": "minecraft:stone"
}
]
}
],
"rewards": [
{
"type": "arc:item",
"item": {
"id": "minecraft:diamond"
}
}
]
}

Compatible Action Types​