your current location:首页 > news>Epic battle allows the entity to fall to the ground can continue to be injured [EF] Epic Fight GAME

Epic battle allows the entity to fall to the ground can continue to be injured [EF] Epic Fight GAME

2024-12-10 17:47:07|Myriagame |source:minecraft skins

Take 18.5.24 as an example. First of all, Mixin enables the AttackResult to the enemy as a Success, so that we can hurt the enemy who fell to the ground. Of course, you can also label SourceTags.finisher by the DamageSource, butMixin is more troublesome.

But at this time, the enemy who hit the hit will immediately bounce.The source code was found that the essence of the bounce was to play the attack animation.So we listen to the DealT_DAMAGE_EVENT_PRE event. If the entity is in the Knockback state, Stuntype is None, so that the attack will not play the assault animation, and will not play up.