-
Bug
-
Resolution: Won't Fix
-
None
-
1.20.5 Release Candidate 2
-
Plausible
-
Datafixer
The bug
When a world containing spawn eggs for certain non-mob entities is upgraded from 1.12.2 to the 1.20.5 development versions, they are converted in an unexpected way when translating to the component system. Some spawn eggs become pig spawn eggs with extra components to specify the target entity, whereas others become wither spawn eggs with such components.
How to reproduce
- Load up 1.12.2
- Give yourself a "blank" spawn egg:
/give @s spawn_egg
- Give yourself an end crystal spawn egg:
/give @s spawn_egg 1 0 {EntityTag:{id:"minecraft:ender_crystal"}}
- Give yourself a lightning bolt spawn egg:
/give @s spawn_egg 1 0 {EntityTag:{id:"minecraft:lightning_bolt"}}
- Load this world in 1.20.5
Expected results
All three spawn eggs would upgrade to the same item ID with component distinguishers.
Actual results
Some upgrade to pig spawn eggs and others upgrade to wither spawn eggs.
How to fix
Either make all such spawn eggs become pig spawn eggs or wither spawn eggs.
However, a preferable option would be to introduce a new item ID for these (minecraft:custom_spawn_egg), and upgrade them to that instead. This item ID could have other functionalities, for example the spawn egg colours could be customizable as components.
- relates to
-
MC-257113 Ender dragon, wither, snow golem and iron golem spawn eggs from before 1.13 do not convert properly
- Resolved
-
MC-257688 Spawn eggs from versions prior to 1.13 have extraneous NBT
- Resolved
-
MC-270988 Iron golem and snow golem spawn eggs from before 1.13 do not upgrade to 1.20.5 correctly
- Resolved
-
MC-270989 Some spawn eggs upgraded from before 1.13 to 1.20.5 have redundant components
- Resolved