My procedure happend multiple time when i want it to happend once and stop Help!

Started by Eridido on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
My procedure happend multiple time when i want it to happend once and stop Help!

I made a procedure that make my custom mob regen all of its hp when at 40 hp on 400 but i want it to happend once so the mob can be killed but i dont know how to do it. do you have any idea how i can fix that? Thanks

Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hi Eridido, could you show a…
Wed, 09/08/2021 - 14:06

Hi Eridido,

could you show a screenshot of the procedure? You can use imgur and paste the link in a comment.

Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Simple, make a ntb variable…
Thu, 10/14/2021 - 11:20

Simple, make a ntb variable that start in "false" and, when the Mob heals, Made the variable "true"

The procedure look like this:

If NTB variable = false do

If get Entity Target current Health ≤ 40 do

Set Health of Entity Target to 400

Set NTB variable to true