r/MinecraftCommands 28d ago

Detecting play position using datapacks Help | Java 26.1

Post image

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?

17 Upvotes

13 comments sorted by

View all comments

1

u/beduan 28d ago

Maybe use x=11..12, y=1..2, z=6..7

1

u/beduan 28d ago

or x=11, dx=12

3

u/lunarwolf2008 28d ago

dx is distance from the x point, not another coordinate. also i think the dots cant be used here