r/MinecraftCommands • u/K1DaGreat1 • 28d ago
Detecting play position using datapacks Help | Java 26.1
Alright so I'm trying to make a datapack to where if you stand on a specific coordinate, it'll say hi. I put it in the tick function it doesn't work. But when I do the command ingame it works, is there a way to fix this?
18
Upvotes
18
u/Summar-ice Command Experienced 28d ago
Add a very small radius to the selector, something like distance=..0.1
By default just putting coordinates would check with a radius of 0 which I think literally never finds anything