mojira.dev
MC-271094

Entity ID inside EntityTag is ignored when updating a world to 1.20.5

When you update your custom map to 1.20.5, custom spawn eggs break due to incorrectly converted custom entity ID.

Note: In 24w09a exclusively, the EntityTag NBT tag is properly being converted to the minecraft:entity_data component, with the id being retained.

To reproduce

  • Launch Minecraft 1.20.4

  • Create a world

  • Execute

    /give @s minecraft:enderman_spawn_egg{EntityTag:{id:"minecraft:cow",Tags:["i'm-a-cow"]}}
  • Check the item data or try to spawn an entity using it

    [media]
  • Leave the world

  • Launch Minecraft 1.20.5 and open the world in it

  • Check the item data or try to spawn an entity using it

  • See the corrupted ID

    [media]

Linked issues

Attachments

Comments 2

In 24w09a (this version exclusively), the EntityTag NBT tag is properly being converted to the minecraft:entity_data component, with the id being retained.

Felix14_v2

gegy

Community Consensus

Platform

Important

Datafixer

command, components, inventory, item

24w10a, 1.20.5

24w19a

Retrieved