Started by
ImAHamSandwich
on
Topic category: Help with MCreator software
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
here is the procedure im using for reference
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 :)