mojira.dev
MC-302323

Incorrect Block Entity nbt for Copper Chest and it's variants

Unlike every other container, Copper Chests and every variant reference the “minecraft:chest” in the Block Entity nbt data “id” field.
This makes it hard to get what Block Entity the player is looking at for datapacks (and probably an issue in many other cases).

Reproduce:
1. Place down any Copper Chest
2. Run command /data get block <copper chest position>
3. Returns nbt data with the id field being minecraft:chest and not minecraft:copper_chest (or any other variant)

Attachments

Comments 2

You might notice in your video that it’s shelf and not oak_shelf. The same block entity can be used for different block types, chests likewise.

Thank you for your report!
After consideration, the issue is being closed as Invalid.

This report does not describe a bug.

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

CyraLX

(Unassigned)

Plausible

(Unassigned)

1.21.9 Release Candidate 1

Retrieved