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

The NBT data stored in the world affects copying a Decorated Pot in creative mode

XMLWordPrintable

    • Community Consensus
    • Creative
    • (Unassigned)

      When the Decorated Pot is copied from the world (as a block) to the hand in creative mode, the pot in the hand will contain the contents that were in it the last time the world was loaded.
      If the contents are changed, the contents of the NBT data for copying the pot will not be affected until the next world load.

      How to reproduce:

      1. Place a Decorated Pot and put a few items in it
      2. Save the world
      3. Load the world
      4. Pick the Decorated Pot in creative mode with the pick block button (middle click by default, you will notice that the pot appears in a different slot)
      5. Run the following Command to check the content:
        /data get entity @s SelectedItem

      Expected Behavior:
      The output is:

      <Player> has the following entity data: {count: 1, id: "minecraft:decorated_pot"}

      Observed Behavior:
      The output is (with 4 potatoes and inventory slot 0 as example):

      <Player> has the following entity data: {components: {"minecraft:container": [{item: {count: 4, id: "minecraft:potato"}, slot: 0}]}, count: 1, id: "minecraft:decorated_pot"}

            Unassigned Unassigned
            PrimCargo693208 PrimCargo693208
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: