Boss mechanic bellow 50% health

Started by amdre on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined Jan 2023
Points:
318

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
Boss mechanic bellow 50% health

Trying to make a boss do 1 action when he gets bellow 50%HP. "the trigger is when entity gets hurt in the mob triggers"

Active 4 months ago
Joined Jan 2021
Points:
738

User statistics:

  • Modifications: 2
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 198
A simple way to do it is to…
Tue, 01/17/2023 - 02:47

A simple way to do it is to add a hidden potion effect on tick update when below 50% hp after like a 2 tick delay when they go below that amount, then check if the entity has that hidden effect or not.

Active 2 years ago
Joined Jan 2023
Points:
318

User statistics:

  • Modifications: 0
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 7
Ty mate but I actually make…
Tue, 01/17/2023 - 23:13

Ty mate but I actually make it after 2 days of trying, with a global variable, i call for another procedure turn the variable between true and false so when he reach half of health the action only will ocour once. :D

Active 4 months ago
Joined Jan 2021
Points:
738

User statistics:

  • Modifications: 2
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 198
Yea that works too, the…
Wed, 01/18/2023 - 11:03

Yea that works too, the potion effect is usually a last resort, well good luck with your mod!

Active 3 months ago
Joined Apr 2023
Points:
289

User statistics:

  • Modifications: 0
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 22
I kinda wanna know how to do…
Thu, 08/24/2023 - 17:44

I kinda wanna know how to do this for my boss I would love to see how you have done it