mojira.dev
MC-276517

Picking a empty Decorated Pot in Creative copies NBT-Data

When the Decorated Pot is copied from the world (as a block with the pick block key (middle click by default, without pressing ctrl) to the hand in creative mode, the pot in the hand will contain the items that were in it the Block wich was copied.

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: {components: {"minecraft:container": []}, 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: 3, id: "minecraft:decorated_pot"}

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

Linked issues

Attachments

Comments 5

We do not have enough information to find the cause of this issue.

Please record a video of this happening and attach it to this report.
If you are on Windows, you can use Windows+Alt+R to open a built-in app for recording game footage.
If you are on Mac (Mojave or later), you can use Shift+Command+5 to open a built-in app for recording your screen.
In case you don't have a program to record videos, we recommend using the free recording software OBS.
In case the resulting video file is too large to be uploaded to the bug tracker directly, please upload it elsewhere (e.g. as unlisted video on YouTube) and link to it here.

This issue is being temporarily resolved as Awaiting Response. Once the requested information has been delivered, the report will be reopened automatically.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Okay, I can't recreate it myself right now. Maybe I chose the wrong version of Minecraft to check.

The bug is working again. Maybe it is related to the bug [MC-273960]. I uploaded a video in the correct version of Minecraft with this bug. In the video I use a data pack that simply shows the contents of the pot.

Cannot reproduce:

[media]

The first pot which I copy is using normal middle click contains no items, but the second one I copy using ctrl click does.

I am also not able to reproduce this, neither in 1.21.1 nor in 24w37a. Please check if this issue persists with no data packs enabled.

PrimCargo693208

(Unassigned)

Unconfirmed

(Unassigned)

1.21.1

Retrieved