More max mana with armor

Started by Okruch25 on Thu, 12/29/2022 - 10:03

Topic category: Help with modding (Java Edition)

Last seen on 21:35, 30. Jan 2023
Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
More max mana with armor
Thu, 12/29/2022 - 10:03

I need to make magic armors for my mod.
They should give more max mana when equipped, so I need procedure that give more max mana when armor piece is equipped and change mana back to normal when armor is unequipped.

There will be at least 5 magic armor sets and I don't want to make whole sets giving more max mana, every piece of armor should work separately.

(I made mana with variables)

 

So for example for one of hats procedure should:

give +2 max mana if armor piece is equipped

give -2 max mana if armor piece is unequipped