mojira.dev
MC-44521

@a, @e, and any UUID references work incorrectly after a player dies.

Summary:
When a Player or Command Block uses @a, @e, or a UUID, the command returns a successful message but isn't properly executed. Examples:

/give @a minecraft:stone

Chat messages output to indicate items were given, however it drops them near world spawn, or at the spawn point of the player (this is something I haven't properly tested).

/clear @a

Even if the player has items, the command will say there were no items to remove.

/xp 30L @a

Will indicate that has given 30 levels to the players, however no levels will be received.

/gamemode 1 @a

Assumed from survival. Hearts will disappear, etc. and the client will be able to fly, however they will be kicked if they fly for to long.

Reproduction:

1. Open a world
2. Type

/give @a minecraft:stone

and note result.
3. Type

/kill

.
4. Type

/give @a minecraft:stone

and compare result to that of #2.

Linked issues

MC-44691 /give @a does not work in a command block. Resolved MC-44713 @a is still broken in new snapshot Resolved MC-44879 Changing Gamemode bug Resolved MC-45007 Broken /give with command block Resolved MC-45335 Changing gamemode to adventure bug Resolved

Comments 9

While confirming in 14w03b, two facts have become clear: Command Block or not has no effect and /clear is also affected.

To add to this: @e does not work, and the UUID doesn't work. However the username will work.

Thank you for explaining this! I know how I can fix it in the map I am making.
It's a Spleef map, I just need to not kill the players when the fall.

Hans Schülein

/gamemode command does not work either: switching from creative into adventure/survival mode will display the hearts, but the player will not be damaged by anything

This is a valid bug... Needs fixing!

/give, /effect, /clear, /gamemode and /scoreboard are having the problem.

Hans Schülein

It should be noted that @p is possible

Hans Schülein

will it be fist in 14w05?

Manuel Gwosdz

Nathan Adams

Confirmed

clear, give, item

Minecraft 14w02c, Minecraft 14w03b, Minecraft 14w04a, Minecraft 14w04b

Minecraft 14w05a

Retrieved