Including the is_hurt_color
field within slime.render_controllers.json
causes a game crash when a Slime is damaged. The bug is reproducible in 1.21.90.20 Preview but not in 1.21.73 Hotfix. It is unknown whether the bug is reproducible in 1.21.80. This impact resource packs that change the hurt color of Slime mobs, or mobs in general.
As per the comments, other mobs are also affected, such as:
Breeze
Iron Golem
Villager
Pig
Creaking
Steps to reproduce the issue:
Download the provided resource pack in Minecraft Preview
Apply it in Global Resources
Enter a World
Spawn a Slime
Attack the Slime
Expected result:
The Slime is damaged and the game continues to function.
Actual result:
The game crashes.
Linked issues
is duplicated by 1
Attachments
Comments 3
Can confirm. I was able to discover the source of the issue too. Here is a list of entities I found to be affected (not exhaustive by any means):
Slime
Breeze
Iron Golem
Villager
Pig
Creaking
The common thread between all these entities is that they use multiple render controllers. Please update the report to specify that entities using multiple render controllers and the “is_hurt_color” field crash the game.
This also affects some other mobs. I do not have a full list as of yet, but here are a few:
Iron golem
Breeze
My guess is that any entity using a “blend” material (semitransparent pixels) will cause a game crash. This also means that the “on_fire_color” could be affected too.