Started by
snekdatisorange
on
Topic category: Help with Minecraft modding (Java Edition)
Is there any way to make stages for a boss?
i'm trying to do something like:
stage 1: normal attacks
stage 2: invincible spawns minions that need to be killed to be able to attack
stage 3: slightly stronger attacks
my idea is that it changes mobs for each stage but i also don't think that will work
also is there a way to do a block boss spawner thing
like the wither or golems
It is but I don't how. Also about boss stages I think I know how first you need multiple mobs that look very similar if not the same. Then you need to make a procedure to check the mobs health which I don't know how to do. Then you need to make the mobs behavior different for example one does melee attacks another does ranged and one runs after all mobs. I will finish the tutorial once I get good at procedures.
thats what im thinking for a normal like 2 stage kinda boss that deals more damage on the next stage
im just not sure with the turning invincible and have minions spawn then once they die the boss is vincible
I don't think its possible to make a boss invincible until you kill a mob. But I know a way to make a mob invincible. I will experiment with procedures and try to make an example.
You can have the boss use the new "does entity exist at x y z in cube ...." (in the "World Data" section) in its tick update, and if there isn't any of the minion entity, switch it back. (Make sure to set the cube size to a large number so the player can't just lead the minions a few blocks away.)
For the golem/wither type spawning, just make sure one of the blocks you add (for head or center probably) is custom, and have that block run a procedure either when it is placed, or when "neighbor block changes", checking for whether there are the right blocks in the right spots around it.
There are checkboxes for what damage the entity is immune to.
In addition, if you made two versions of the minion, you could run the same "entity in cube" just set to a higher number, so that if it gets too far from the boss it switches to it's other version, runs back until it registers the boss is within a small cube, then switches back.
(switches back to the old attacking version)
When it enters stage 2, spawn 5 mobs. Set variable bossMobsKilled to 0. When entity dies, is entity the minion, set variable bossMobsKilled to x+1. Then on the boss make the on entity tick update; if variable bossMobsKilled=5, advance to stage 3. The only problem is that the boss minion has to be a unique entity that only appears in that specific fight. When entity dies (boss) set variable bossMobsKilled to 0. To make them switch stages you make it when it gets to certain health remove the mob (don't know the procedure block name) and spawn stage 2 at x/y/z. To make the second stage invincible go to the immunities section and check literally all of them. You won't be able to damage him at all until you do something like the bossMobsKilled variable procedure I described above.