Jump to content

[1.16.5] Make mob not flash red and take little knockback


Recommended Posts

Posted (edited)

Hi, I was wondering if anyone could help me. When hit by a certain weapon, I want my custom mob to not flash red and to take less knockback than normal. I'm already cancelling LivingHurtEvent when the damage source is the weapon to make the mob not take damage, but I don't know how to do the other things. If I cancel LivingAttackEvent, it removes the damage, red flash, and knockback, which isn't what I want.

 

Thanks!

Edited by Linky132
I'm actually using LivingHurtEvent
Posted

I'm currently also working on subduing the flash. My current idea is to save the hurt time in a capability befor the red flash happens and setting it to 0 (using LivingRenderEvent.Pre)  and reset the hurttime after the rendering (using LivingRendereEvent.Post). I'll will admit, that this solution is kinda dirty, because I'm desyncronizing the hurttime on purpose.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.