Jump to content

Recommended Posts

Posted

Okay, so, I'm making some armour, but I want it to reduce fire damage.

 

I've got the doArmorTick set up to give me fire resistance when I want it to, but fire resistance makes you immune to fire damage, and I want it to only, say, half the amount of damage that fire does.

 

Would it be a LivingHurtEvent? If so, how would I go about doing it? Any pointers would be helpful.

 

(Yes, I know there's an enchantment that does this, and I've looked at how that works, but, from what I can gather, most of it is done in the Entity class, and I'd rather not use the enchantment)

Posted

Ah, got it, thanks :D

 

Well, sort of. I can manipulate how much damage it does by plus and minus, but I can't do percentages/multipliers/dividers

 

But, I can work that out now that I know the code actually works, so, yeah, thanks :D

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.