How to add Health Boost when an enchantment is applied?

Started by GDFanXplayer on

Topic category: Help with modding (Java Edition)

Last seen on 12:18, 25. Feb 2021
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to add Health Boost when an enchantment is applied?

So I wanted to make an Enchantment that gives you Health Boost when applied. The effect is there but the extra heats never heal up. What causes this problem and how do I fix it?

Last seen on 19:15, 17. Mar 2021
Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
for this you would do on…
Wed, 02/17/2021 - 15:36

for this you would do on world tick it would check for enchantment on whatever armor in your inventory then if there are more than one level of it do if enchantment = 1 give health boost 1 (for example)