armor immortal

Started by Agent_3314 on

Topic category: Help with modding (Java Edition)

Last seen on 17:46, 10. Jan 2022
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
armor immortal

how do I make it so that when I wore armor in it I was immortal?

Last seen on 08:14, 28. Nov 2023
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
make a global procedure with…
Wed, 04/07/2021 - 13:01

make a global procedure with an "on player tick update" trigger that checks if the player is wearing the full set of the custom armor. if true, then add a Resistance 5 potion effect to the player. essentially, Resistance lvl. 5 and above makes entities 100% immune to damage. your skin will still turn red and your screen will still move when hurt though, but you won't actually take any damage.

procedure (https://i.imgur.com/oFaS2nO.png)

don't worry about its level being set to 4. because in reality, the actual potion level that'll be given to the entity is always the number you put there, plus 1. because it's obvious that 4+1=5, the player wearing the armor set would be given Resistance 5 in-game.