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.
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.
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.
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.