mojira.dev
MC-52874

/give command successful output is mixed up compared to previously.

When I give myself any item, and the command succeeds in giving it to me, the output in the chat (when /gamerule commandBlockOutput is set to true, or when the command is executed by a player instead of a command block) is scrambled up compared to the format in previous versions. The fields got switched around. The old format for the output, the one that makes sense, was this:

[@]Given [Cobblestone] (ID:4) x 1 to 93castle.

Now, the output is this instead:
[@]Given [Cobblestone] (ID 1) x 93castle to

The field for the block ID has been switched with the quantity of the item given, and the username of the player the item was given to was switched with the word "to" that refers to the username of the player.

Steps to reproduce:
1. If you are using a command block for this, then enter this command into the chat:
/gamerule commandBlockOutput true

If you are using the client's chat to input the command, then don't input the /gamerule change, as that will make no difference when the command is activated from the client's chat.

2. Enter this command:
/give @p minecraft:cobblestone 1 0

3. Notice the scrambled output when the command succeeds. It will look like this:
[@]Given [Cobblestone] (ID 1) x 93castle to

----------------------------------------------------
This appears to happen with the successful giving of ANY item, but I have not tested all the types of items to see if they do. The ones I have tested so far are:
minecraft:writable_book
minecraft:cobblestone
minecraft:command_block

No matter what the ID number of the given item is, the scrambled output wrongly lists the ID as the same number as the quantity because the fields appear to have been switched in the game's sourcecode.

I have not tested to see if this bug occurs in previous snapshots, but I know that it does occur in 14w11b. This bug wasn't present in the past until recently, but it exists at least as of snapshot 14w11b, if not before.

Linked issues

Attachments

Comments 3

Unable to reproduce.

Broken resource pack.
The output string for commands.give.success is Given %s * %d to %s.
The parameters of the translation in your resource pack is messed up.

Thank you! I was able to fix that part of the resource pack, and now it works perfectly!

Adam Ekstrom

(Unassigned)

Unconfirmed

Minecraft 14w11b

Retrieved