How to check below x% hp on boss

Started by Plainside on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to check below x% hp on boss

Im having some issues with this, I want to check the bosses HP for when it goes below a certain threshold. 

However looking through the AI / Procedure options I can't figure it out myself, so is there an easy way to check if the boss falls below x% hp? 

Specifically when below 25% HP a chance to explode on hit happens. 

Dropping below 20% that chance increases, and so on. 

Is there a way to achieve this? Because it happens on 'entityhurt' it has to be a procedure correct? 

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(No subject)
Fri, 02/07/2020 - 14:14

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
on entity tick update (sorry…
Fri, 02/07/2020 - 14:19

on entity tick update (sorry for the spam, i don't know how to edit or delete comments)