Check when an armor piece is equpped [SOLVED]

Started by ImAHamSandwich on

Topic category: Help with MCreator software

Last seen on 10:13, 28. Mar 2024
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Check when an armor piece is equpped [SOLVED]
Fri, 07/22/2022 - 04:55 (edited)

Im trying to add an enchantment that will give he player extra health when a piece of armor with the enchant is equipped. My current solution applies the effect but does so every tick making it so that the player cant regen the hearts. I'd really appreciate it if someone could help me with this or give me another solution to my issue.

Edited by ImAHamSandwich on Fri, 07/22/2022 - 04:55
Last seen on 10:13, 28. Mar 2024
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
here is the procedure im…
Fri, 07/22/2022 - 04:32

current procedure

here is the procedure im using for reference

 

Last seen on 10:13, 28. Mar 2024
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Solution is to check if the…
Fri, 07/22/2022 - 04:58

Solution is to check if the level of vitality (the custom enchant) is not equal to the current level of health boost minus 1

the minus 1 is there because potion effects go from 0 to 1 to 2 etc. (level 0 being 1 in game)

screenshot of new procedure for those in need :)

 

solution