mojira.dev
MC-91006

Some entities lose their name when placed/broken

The bug

Some items which can be used to place the respective entity in the world do not apply the custom item name to the entity. This means once you destroy the entity and pick it up as item it will not have a custom name anymore.

This was fixed for:

  • minecarts

  • armor stands (23w03a)

  • boat

  • chest_boat (MC-249408)

  • ender_pearl

  • eye_of_ender

  • firework_rocket

Affected items / entities

  • ender_crystal

  • fishing_bobber (from fishing rod)

  • item_frame / glow_item_frame

  • leash_knot

  • painting

Code analysis

Code analysis by @unknown can be found in this comment.

Linked issues

MC-3731 Renamed minecart do not keep its name Resolved MC-5608 Renamed Mine-Carts Lose Name After Usage Resolved MC-12132 Renaming Carts Resolved MC-12809 Boats don't keep their names after breaking! Resolved MC-27410 Enchants on minecart wears off when placing it on rail(s). Resolved

Attachments

Comments 33

Dlawso the Really Lucky Rabbit

This is a dupe of MC-1981. Someone changed the title to make it misleading. Its not just arrows.

As I mentioned this is also partwise broken for MinecartCommandBlocks as their NBT does not contain the CustomName but they still have one after breaking them.

Duplicated by:

Relates to:

Víctor Escribano

It also happens in 1.9

Is this still an issue in the latest snapshot 16w44a? If so please update the affected versions.

This is an automated comment on any open or reopened issue with out-of-date affected versions.

Confirmed for:

  • armor_stand

  • item_frame

  • ender_crystal

  • firework_rocket(keeps data as an item though? as if dropped onto the floor)

  • leash_knot(idk if that's valid/worth looking at but I'm testing them now anyway 😛)

  • oak_boat(haven't tested the others...)

  • eye_of_ender_signal

  • ender_pearl

  • fishing_bobber (from fishing rod)

  • painting

in 18w02a

23 more comments

Can confirm in 1.19.

Can confirm in 1.19.2.

Armor stands were fixed in 23w03a.

Can confirm in 1.20.2 & 23w43b

boats and chest boats keep their name when placed and broken in the latest snapshot (24w12a). Same with Eye of enders, enderpearls, and fireworks rockets also keep their name when thrown / placed. I don't know when these were fixed but they are

I can confirm that end crystals, paintings, item frames / glow item frames, leads / leash knots, fishing rod bobber (fishing rod name),

[Mod] redstonehelper

Nathan Adams

Confirmed

Platform

Normal

Entities

CustomName, armor_stand, boat, display-Name, entity, item, item_frame, mojang_internal_1, painting

Minecraft 1.8.8, Minecraft 15w42a, Minecraft 1.9, Minecraft 16w36a, Minecraft 1.11, ..., 1.20.4, 24w12a, 24w13a, 1.20.6, 24w20a

Retrieved