mojira.dev

marbrueck

Assigned

No issues.

Reported

View all
MC-305378 Skeletons no longer charge their bows if their CustomName is continuously changed Confirmed

Comments

Wardens also behave strangely if their custom name is permanently changed. For example, they no longer attack players properly, and they also seem unable to correctly identify the source of sounds.

This also applies to Breezes, which neither jump away nor attack the player. Tested in recent Version.

This is the world in which I reproduced the behavior. The data pack is also present and just needs to be activated.

[media]

Here is an excerpt from my datapack code, which adjusts the CustomName every tick, based on their health.

execute if score @s mh.mobhealth matches 1 run data merge entity @s {CustomName:[{"atlas":"minecraft:gui","sprite":"hud/heart/half"}]}
execute if score @s mh.mobhealth matches 2 run data merge entity @s {CustomName:[{"atlas":"minecraft:gui","sprite":"hud/heart/full"}]}
execute if score @s mh.mobhealth matches 3 run data merge entity @s {CustomName:[{"atlas":"minecraft:gui","sprite":"hud/heart/full"},{"atlas":"minecraft:gui","sprite":"hud/heart/half"}]}