on armor equip: level of protection of event-item >= 50 if level of protection of event-item is between 50 and 99: set {_t} to 1 else if level of protection of event-item >= 100: set {_t} to 2 else if level of protection of event-item >= 150: set {_t} to 3 if event-item's type is helmet: apply jump boost of tier {_t} to player for 999 days else if event-item's type is chestplate: apply resistance of tier {_t} to player for 999 days else if event-item's type is leggings: apply regeneration of tier {_t} to player for 999 days else if event-item's type is boots: apply speed of tier {_t} to player for 999 days on armor unequip: level of protection of event-item >= 50 if event-item's type is helmet: remove jump boost from player else if event-item's type is chestplate: remove resistance from player else if event-item's type is leggings: remove regeneration from player else if event-item's type is boots: remove speed from player command /set100: trigger: give diamond chestplate of protection 100 to player give diamond leggings of protection 100 to player give diamond boots of protection 100 to player give diamond helmet of protection 100 to player command /set50: trigger: give diamond chestplate of protection 50 to player give diamond leggings of protection 50 to player give diamond boots of protection 50 to player give diamond helmet of protection 50 to player command /set150: trigger: give diamond chestplate of protection 150 to player give diamond leggings of protection 150 to player give diamond boots of protection 150 to player give diamond helmet of protection 150 to player