Setting up a location check predicate
So I made a new dimension and want the player to teleport there by sneaking on a certain block that's surrounded by other blocks. And the following predicate doesn't seem to work:
"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" } } } ] }```