Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Entity Damage Animation is not correctly implemented #34

Open
davidmayr opened this issue Jul 30, 2023 · 1 comment
Open

Entity Damage Animation is not correctly implemented #34

davidmayr opened this issue Jul 30, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@davidmayr
Copy link

Currently, the EntityAnimationPacket is sent out with the TAKE_DAMAGE Animation. This Animation does not exist anymore in 1.20.

The ID of TAKE_DAMAGE (1) is now simply unused (don't remove the please, since it will break the animations after, since all IDs are still the same and minestom is using enum ordinals here. Minecraft internally just uses int constants)

Instead, the HitAnimationPacket should be sent out. I would create a PR for this, but you are required to supply the yaw from which the damage came from, and I would rather let a more experienced minestom developer properly implement this.

@mworzala mworzala added the bug Something isn't working label Aug 1, 2023
@mworzala
Copy link

mworzala commented Aug 1, 2023

I ran into this when doing the 1.20 update but wasn't super happy with the solution I came up with so decided to leave it for people to send from their own combat handling for the moment (though didn't remove the old stuff).

Perhaps I'll take another crack at it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants