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

Started by Eridido on Mon, 09/06/2021 - 15:49

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:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
My procedure happend multiple time when i want it to happend once and stop Help!
Mon, 09/06/2021 - 15:49

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 23:00, 23. Oct 2021
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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:08, 23. Oct 2021
Joined Jan 2021
Points:

User statistics:

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