Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-52874

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 14w11b
    • None
    • Java 7 update 29, Windows 7, ASUS laptop, 500 GB hard drive, 4 GB RAM.
    • Unconfirmed

      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.

            Unassigned Unassigned
            93castle Adam Ekstrom
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: