Armor Health boost help!

Started by FloKoz_ on

Topic category: Help with modding (Java Edition)

Last seen on 17:02, 2. Jul 2023
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Armor Health boost help!

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 11:58, 19. Apr 2024
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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.