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

Picking a empty Decorated Pot in Creative copies wrong NBT-Data

XMLWordPrintable

    • Unconfirmed
    • Creative
    • (Unassigned)

      When the Decorated Pot is copied from the world (as a block with the pick block key (middle click by default) to the hand in creative mode, the pot in the hand will contain the contents that were in it the last time any Decorated Pot was copied with the pick block key from the world.

      How to reproduce:

      1. Place a Decorated Pot and put a few items in it
      2. 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)
      3. 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"}

      This bug is very similar to MC-273960. (Perhaps it was created as a result of the bug fix)

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

              Created:
              Updated:
              Resolved: