The bug
When a rabbit has its RabbitType set to 99 (The Killer Bunny), it gets 8.0 armor as its base armor attribute. However, when it’s set to something else, the armor is not removed. It’s kept permanently.
How to reproduce
Spawn a normal rabbit
Hit it with a stone shovel
-> ✅ It diesSpawn a killer bunny:
/summon rabbit ~ ~ ~ {RabbitType:99}Hit it with a stone shovel
-> ✅ It survives due to having 8 armor pointsSpawn one again
Modify it back to a normal rabbit:
/data merge entity @n[type=rabbit] {RabbitType:0}Hit it with a stone shovel
-> ❌ It survives even though it’s not the killer bunny
Expected behavior
Like the killer bunny’s attack damage, it’s armor should be removed when it switches variants.
Observed behavior
The armor is not removed.
Notes
This could be fixed by setting the base attribute back to 0, but a modifier would be more appropriate here, just like is already used for attack damage. Or this could just be WF since killer bunny is unsupported 🙂
Linked issues
relates to 1
Comments 0
No comments.