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

String in Potion tag does not get the prefix "minecraft:"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Works As Intended
    • Affects Version/s: Minecraft 15w42a, Minecraft 15w45a
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed

      Description

      The bug

      When you give yourself a potion containing the Potion tag, but not use the prefix minecraft: the game will not add it by itself.

      This is different to for example entity items which get this prefix.
      However it is not comparable to tags like BlockEntityTag as there the nbt data inside it is only accessed when the block is placed.

      How to reproduce

      1. Use the following command:
        /summon Item ~2 ~ ~ {Item:{id:"stone",Count:1}}
        
      2. Using the /entitydata command you will see that the value of the id tag is now "minecraft:stone"
        This is (probably) intended as the item was accessed for rendering
      1. Use the following command:
        /give @p potion 1 0 {Potion:"swiftness"}
        
      2. Using the /entitydata command you will see that the value of the Potion tag is still "swiftness"
        This is (maybe) not intended as the Potion tag was accessed for rendering and for displaying the item name
      1. Use the following command:
        /summon Item ~2 ~ ~ {Item:{id:"minecraft:chest",Count:1b,tag:{BlockEntityTag:{Items:[{id:stone}]}}}}
        
      2. Using the /entitydata command you will see that the value of the id tag (inside the Items tag) is still "stone"
        This is intended as the item (in the Items tag) was not directly accessed as an item

        Attachments

          Activity

            People

            • Assignee:
              grum [Mojang] Grum (Erik Broes)
              Reporter:
              marcono1234 [Mod] Marcono1234
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                CHK: