mojira.dev
MC-128789

Location selector arguments not working as intended.

I've been attempting to recreate an old TP book of mine that allows people to TP to a set location but to limit usage I use a scoreboard item to keep track of if their usage has beenn restored or not yet.
The problem I've ran into is using the command

scoreboard players set @a[x=882,y=58,z=227] Hearth 0

the game resets the hearth value of all players regardless of their location. Then when I try

scoreboard players set @a[x=882,y=58,z=227,distance=1] Hearth 0

it can find no players even when standing exactly on the listed location. (Even tried x=882.5, y=58, and z=227.5 to be certain before using TP to place me exactly in that location)

Linked issues

Comments 2

distance=1 means exactly one block away. distance=..1 means one block away or closer.

Ah thanks. I had read that that was already inclusive. So that explains that 😛

Steven Valenski

(Unassigned)

Unconfirmed

Minecraft 18w16a

Retrieved