mojira.dev
MC-46124

Target selectors grab things in the wrong area without radius.

In snapshot 14w04b:
For some reason, command blocks like the one in the first attached picture, will grab players in the wrong areas (it appears EVERYWHERE) rather than at that center point. Although, when I add a radius of 2, it works. And you can even see that it won't grab other players, as it is reporting the UUID is wrong.

Attachments

Comments 14

Intended. The coordinates provide a center for the search, radius, so how would it work if you don't provide it one? See this for more information.

@Anon Ymus No, that's not how it works. At the point i provided, it should look for someone AT that point. Like there is a radius of 0. And either way, it would be a bug that it finds everyone at every point without a radius given.

Use @a[x,y,z,0] for that effect. I think this is an appropriate behavior given that you aren't providing it the arguments it is supposed to have.

@Anon Ymus I tested the same behavior in 1.7.4, and without setting a radius, it worked correctly. It found me in the block when i set just @p[x,y,z]

radius of 0 will not work, use 65536 instead, it has the same effect. I don't know why such a large number acts exactly like 0 but it does.

4 more comments

Actually, in the snapshots, having a radius of 0 was implemented, so omitting the radius is deprecated.

I'm loading up a creative 1.7.4 world, and I'm at -3,67,13. I type

/say @a[0,0,0]

and the output is

[ezekielelin] ezekielelin

I load up a creative world in 14w04b and teleport to -3,67,13, and type

/say @a[0,0,0]

and the output is

[ezekielelin] ezekielelin

What's different?

@Ezekiel perhaps it was only the @p selector then? But what Anon Ymus said makes more sense. It wasn't listed in the change logs, so i didn't thing it changed.

Not working r=0 was fixed here : MC-44785
[Mojang] Searge (Michael Stoyke):

Using a radius of 65536 was an unintended side effect. We are not changing it back to the broken behavior. Instead I made a proper fix for the next version that will allow r=0 and/or rm=0 to be used to specify exact block positions. It will also center the radius around the blocks center position and not around on of its corners as it was before.

Tim, can you go in 1.7.4 and make sure that not specifying a radius only selects one specific coordinate?

Tim L.

(Unassigned)

Unconfirmed

Minecraft 14w04b

Retrieved