"condition": "minecraft:all_of",
"terms": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"type": "minecraft:player",
"flags": {
"is_sneaking": true
}
}
},
{
"condition": "minecraft:location_check",
"offsetX": 0,
"offsetY": -1,
"offsetZ": 0,
"predicate": {
"block": {
"blocks": "minecraft:diamond_block"
}
}
},
{
"condition": "minecraft:location_check",
"offsetX": -1,
"offsetY": -1,
"offsetZ": 0,
"predicate": {
"block": {
"blocks": "minecraft:end_stone"
}
}
},
{
"condition": "minecraft:location_check",
"offsetX": 1,
"offsetY": -1,
"offsetZ": 0,
"predicate": {
"block": {
"blocks": "minecraft:end_stone"
}
}
},
{
"condition": "minecraft:location_check",
"offsetX": 0,
"offsetY": -1,
"offsetZ": -1,
"predicate": {
"block": {
"blocks": "minecraft:end_stone"
}
}
},
{
"condition": "minecraft:location_check",
"offsetX": 0,
"offsetY": -1,
"offsetZ": 1,
"predicate": {
"block": {
"blocks": "minecraft:end_stone"
}
}
}
]
}```
I use it as a condition to run a simple command which works when typed in chat.
I have no clue what's wrong here.