Jump to content

[Solved][1.7.2] Canceling drowning damage with no damage animation


RadioactiveStud

Recommended Posts

Okay, so. I have an event when I wear a full set of armor, drowning damage is canceled. (Like so)

This works, but the red hurt effect and screen movement is still there when the damage is canceled. How do I stop that (or is there another method I should use).

I know how to stop fire damage and falling damage from letting that happen, but not this.

Lead DivineRPG Developer

Link to comment
Share on other sites

Use the LivingAttackEvent - it's called anytime a living entity is "attacked", i.e. about to suffer damage - and check if 1) the entity being attacked is a player, 2) the damage source is drowning, and 3) player is wearing your gear, then cancel the event.

Ahh, I was doing all of that, except I was using LivingHurtEvent.

Thank You sir.

Lead DivineRPG Developer

Link to comment
Share on other sites

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.