Topic category: Help with Minecraft modding (Java Edition)
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.
So in short, I just need a way to set a procedure to happen in between 2 set health points, not the random ones.
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.