(Solved) Invulnerability Potion

Started by pylonuclear on

Topic category: Help with MCreator software

Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(Solved) Invulnerability Potion
Thu, 10/29/2020 - 00:24 (edited)

I am wanting to make an invulnerability potion.  

I tried making it so that it sets your health to 20 every tick, but that would not account for things like fall damage or one-shot weapons.  I was wondering what I could do to prevent that.  

Any help would be appreciated!

Edited by pylonuclear on Thu, 10/29/2020 - 00:24
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think the best way to…
Tue, 10/06/2020 - 20:09

I think the best way to avoid things like that being one-shot is for the potion to also apply an absurd amount of resistance as well. This way it sets health to 20 every tick, as well as reduces damage from things as much as possible. Perhaps also include Fire Resist, Water Breathing, and some other stuff like that.
Though, I would also recommend having it set player health to player max health (I think there's a procedure block for Max Health). That way it is compatible with things like health boost potions.

Hope this helps.

Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It worked!  Thank you!
Tue, 10/06/2020 - 21:59

It worked!  Thank you!