[Health based heads] Wrong head hitbox
Dermatoid2019 opened this issue ยท 3 comments
Minecraft version
1.18.2
Mod version
2.0.1
Describe the bug
When being picked up by the beam and sucked towards the head, hitting it with a bow is pretty much luck-based as the arrows will fly through the head 90% of the time. The hitbox seems to be a lot deeper than the actual eye / head.
Sometimes hitting it with a sword seems impossible too, as it sucks and kills one somewhere below the head - i think this is because of the same reason.
To Reproduce
Steps to reproduce the behavior:
- Create a phase 4 (or up) wither storm.
- Go into survival mode.
(3. Use "/effect give @s minecraft:resistance 255 255 true" to become invincible but still attackable.) - Let wither storm suck you up using the beam.
- Try hitting the head with a bow or a sword.
Try it a few times as it doesn't happen all the time, but a lot of the time.
I attached a video that shows it. Ignore the wither storm disappearing though, as that is caused by OptiFine.
Hitbox.Broken.mp4
The head injury system is currently luck based, with the intent that player should try to avoid the Wither Storm picking themselves up. There is also a cooldown between injury attempts. The hitboxes are also in the right place, however I'll leave this issue open as a reminder to myself to see if I can come up with a better system to replace the current luck-based one.
I can give you some ideas:
- Making it hit back the arrow with one of the tentacles and shooting a fireball at the player in the beam.
- Turning the head away to prevent a hit in the eye, suddenly dropping the player. (so the player either dies of fall damage or another beam catches it)
- The arrow just being slowed down and eaten (which would make no sense if another arrow can just hit)
I'm pretty sure there's something possible using an enderman's behaviour of preventing a hit by an arrow or a shield's behaviour of sending back an arrow.