lilgallon / Bettercolors

⚔️ Minecraft assistance mod built with Forge AND Fabric. For MC 1.8.9, 1.12.2, 1.13.2, 1.14.4, 1.15.2, 1.16.x, 1.17.X, 1.18.X, 1.19.X
Apache License 2.0
39 stars 2 forks source link

Option to make AimAssistance not target dead entities. #101

Open ghost opened 2 years ago

ghost commented 2 years ago

Feature name:

(Option in AimAssist) Don't target dead entities

Behaviour:

After I kill a player/mob, aim assistance should immediately stop following this dead entity. This would be a nice quality of life improvement. Without this option, I find it a little difficult to quickly turn to look somewhere else after I kill someone.

The Minecraft version that you would like it to be implemented on

1.18.1 or 1.18.2 fabric

PS: I love your mod you have done an excellent job.

lilgallon commented 2 years ago

This limitation comes from the fact that the Minecraft client still has the dead entity in its EntityList a short time after it died. Most of the servers send wrong information about health of the players, so I can not guess that an entity died, and ignore it. However I did not investigate a lot for this issue, and there is maybe a workaround for it. I'll take a look into it

ghost commented 2 years ago

Perhaps you can stop tracking the entity once it starts playing the falling to the side death animation? Surely the server sends some kind of information to the players so they can acknowledge that the entity has died for this animation to play.