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

Started by Eridido on

Topic category: Help with modding (Java Edition)

Last seen on 16:08, 8. Sep 2021
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

Last seen on 07:36, 20. Apr 2023
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.

Last seen on 23:35, 30. Oct 2023
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