Armor Health boost help!

Started by FloKoz_ on Sun, 04/11/2021 - 17:27

Topic category: Help with modding (Java Edition)

Last seen on 17:19, 6. May 2021
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Armor Health boost help!
Sun, 04/11/2021 - 17:27

Hi, sorry for bad english, im from France.

I want to recreate the Netherite armor, that includes the Health Boost, but i have problem, i dont know how to make that the effect apply one time.

im not expert at creating with Mcreator, but i know that using the global trigger "on player tick update" will make that the effect apply every tick, turning the health back to 10, making imposible to regenerate the "extra hearts" that the Health Boost give you

Pls help :/

Last seen on 23:33, 5. May 2021
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Probably have to use some…
Mon, 04/12/2021 - 21:28

Probably have to use some kind of True/False statement so that it activates when true, and then immediately change it to false.

Example IF slot 0,1,2,3 has Armor

                 Set True/False to TRUE              

                    IF True/False = TRUE

                      Apply Health Boost Effect

                      Set True/False to FALSE

Also you would have to make a Timer so that it knows to apply the effect again.