Adding armor points to an Item in hand

Started by kapelnik on

Topic category: Help with modding (Java Edition)

Last seen on 13:38, 6. Sep 2024
Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Adding armor points to an Item in hand

I want to have armor points added to me (like when I wear armor)while I hold an item in my hand. How can I do this?

Last seen on 20:47, 14. Sep 2024
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use an item in hand trigger…
Tue, 09/10/2024 - 00:25

Use an item in hand trigger or item in inventory trigger. Then you can use an effect, on tick add 1 tick of resistance effect. For the armour, use the tick events to check for all 4 pieces then set a variable to true when all 4 are on the player. Then add a condition to the on tick effect that only adds effect when variable above is set to true.