mojira.dev
MC-142357

Chests/Furnaces don't keep CustomName tag upon breaking.

Steps to reproduce:
Use a command to generate a chest with a custom name.
In survival mode, break chest. Chest keeps custom name, but places it in the Name tag, not CustomName.

Tested with furnace. Same issue.
Tested with NBT Tags: CustomName - changed into Name instead of CustomName, in snapshot 19w03a

Comments 3

Can't reproduce, name transfers between item and block as expected

Will retest and provide exact steps in a moment.
Fixed, but found another related bug:
/setblock ~ ~ ~ minecraft:chest{CustomName:"{\"text\":\"NewName\"}"} destroy
/data get block <location>
Break chest
Throw chest as item
/data get entity
Doesn't contain custom name.
CustomName is restored on placing (as I found out)
Should I report/edit this issue ticket?

That sounds intended. Items don't have a CustomName tag, they store their name in tag.Display.Name.

Kalvin

(Unassigned)

Unconfirmed

Minecraft 19w02a, Minecraft 19w03a

Retrieved