Predicate that is true if a entity is exactly 16 coordinates away

Hello!

I have a marker at the middle of a chunk and I want to test if the player moved to another chunks middle by measuring how far away they are from the marker.

I have been running this command to test for the distance: /execute if entity @e[type=marker,limit=1,predicate=biosphere:16_blocks_away,name="chunkmarker"]

Using this predicate: { "condition": "minecraft:entity_properties", "entity": "this", "predicate": { "distance": { "horizontal": { "min": 16, "max": 17 } } } } What am I doing wrong?

Continue to help post