Help With Boss Properties

Started by jran9725 on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help With Boss Properties
Tue, 12/20/2022 - 02:47 (edited)

I would like to make a new boss that summons entities, among other things, when its health gets to a certain amount. I'm having no luck figuring out how to do this. I know I can use the if/do function to check for the boss' health but it only works for <,>, and =. Thre problem with this is that once the boss' health gets lowered beyond the threshold I set, It will endlessly spawn mobs which I dont want. I just want it to spawn mobs until the next phase. I could make several seperate entities that each have their own properties and just spawn them in over time but that would ruin the immersion of having a boss with a notched healthbar. Sorry if this is confusing i'm super tired rn. So in short, I just need a way to set a procedure to happen in between 2 set health points, not the random ones.

 

Edited by jran9725 on Tue, 12/20/2022 - 02:47
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So in short, I just need a…
Tue, 12/20/2022 - 02:36

So in short, I just need a way to set a procedure to happen in between 2 set health points, not the random ones.

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i figured it out. I won't…
Tue, 12/20/2022 - 03:07

i figured it out. I won't delete this in case someone else needs help. You need to have an if statement with the first argument (such as "boss' health below x) and then in the "do" section add another if or a while block with the second argument (like "boss' health above y). then you just put whatever u want to happen in the do part of the second block.