Adding armor points to an Item in hand

Started by kapelnik on

Topic category: Help with Minecraft modding (Java Edition)

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?

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.