mojira.dev
MCPE-227714

Copper golem statue names are not converted to and from items

The bug

When a named copper golem becomes a statue, its name is supposed to be preserved. When mining it, the name should appear as the custom name of the item. Likewise, renaming a golem statue and placing it should result in a custom name for the golem entity when scraped. This currently does not work.

How to reproduce

Item → golem

  1. Get a copper golem statue

  2. Rename it in an anvil

  3. Place it

  4. Use an axe on it

Golem → item

  1. Spawn a copper golem

  2. Use a name tag on it

  3. Wait for it to turn into a statue

  4. Mine the statue with a pickaxe

Expected result

(Item → golem): The golem entity should have the same name that you gave the item

(Golem → item): The statue item should have the same name that you gave the golem

Observed result

The golem entity and statue items have no name

Notes

The custom name of the golem is actually preserved in the item stack. That is, if you name a golem, wait for it to turn into a statue, mine it, place it, and scrape it, the golem will have its original name. The bug is that the custom name of the item is not considered in this process, in either direction.

Related (fixed) Java issue: MC-300169

Comments 0

No comments.

tryashtar

(Unassigned)

1475121

Confirmed

Multiple

1.21.110.26 Preview

1.21.120.23 Preview, 1.21.120

Retrieved