Mojira Archive
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
  • 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

Fixed

Felix14_v2

[Mojang] Gegy

2024-04-24, 12:25 PM

2024-05-06, 01:38 PM

2024-05-06, 01:38 PM

6

4

Community Consensus

Important

Platform

Datafixer

command, components, inventory, item

24w10a, 1.20.5

24w19a