mojira.dev
MC-18303

command block argument bug

When the command /tp @a[y=82,r=1] 109 84 -59 is entered into a command block, nothing happens. when it is entered into the chat normally by a player it works. When I try taking out the radius argument it teleports people from anywhere /tp @a[y=82] 109 84 -59. The reason I want this command is to teleport players automatically to a checkpoint when they fall off of parkour down to a certain level. theoretically the command being run by a clock should teleport people to the checkpoint when they fall onto the plane of y=82.

Steps to Reproduce:
1. make a platform to fall onto
2. make another platform to be teleported to
3. put a command block with a clock hooked up to it to teleport people somewhere nearby
4. type in this command with the blanks filled in [tp @a[y=(platform level),r=1] (coordinates of other platform)]
5. stand on the platform.
6. watch as nothing happens.
7. put command into chat and watch as it does work

Attachments

Comments 4

Confirmed snapshot 13w25a
I set a command block to /tp @p[y=57,r=1] ~0 ~-4 ~1 and stood at Y=57. The command works when typed in manually but not with a command block.
Attaching screenshot of redstone device used to trigger command block...where standing on the green wool will put you at Y=57

It isn't possible to form a sphere with a certain radius when the center point isn't known. This is intended. Just use @a[y=82] (+ another command block set to @a[y=81], if needed) or stop them on a plane at that height until the timer triggers the command block.

Anon Ymus: That's not the issue.
Basically, find your current height. Let's say you're at Y=3 on a Superflat world. Type into your console "/tp @p[y=3,r=1] ~3 ~0 ~0" to teleport you 3 blocks. Repeat this step when flying above/blow Y=3 and the game will output a "Player not found".
Now try the same, but instead of manually typing into your console, use a command block with it's command set to "/tp @p[y=3,r=1] ~3 ~0 ~0", the command will not work at all.
It's not detecting a radius, as if I put the range to 3 and walk out 5 blocks to the right on the same y-level, the command will still work if inputted manually.

I have the same problem using almost any command, and any arguement. They worked in the older versions, but this bug impairs players' ability to use commands in the snapshots. I can hardly do anything involving arguments. The only thing I found that works is if I just write the coordinates, followed by the radius, without actually labeling the arguments, like so:

@p[682,10,43,r=1]

And sometimes even that won't work either. Relative coordinates don't work at all. The same result happens every time I try to specify arguments, the last output in the command block is "The entity UUID provided is in an invalid format," even though I have it perfectly written, and I've checked it for accuracy. This happens almost every time, and with almost every command. It makes command block work almost impossible. Please fix this bug soon, Mojang.

Max Kroft

(Unassigned)

Unconfirmed

argument, command, command_block, redstone

Minecraft 1.5.2

Retrieved