1
Custom map
I'm trying to make a small boss battle on my modded server with commands block but every where I look they say the same thing and it doesn't work I want it that when my mini boss dies the real boss spawn but idk how to can someone please tell me how that when my GATEKEEPER dies it summom my FIRE LORD (fire dragon from ice and fire mod
3
Okay, you can just create scoreboard...
scorboard objectives add namespace.gatekeeper.numbers dummy
When you want to turn it on, summon gatekeeper, and run this command:
scoreboard players set ?ToggledTo namespace.gatekeeper.numbers 1
and run this command in loop
execute if score ?ToggledTo namespace.gatekeeper.numbers matches 1 result success score ?GatekeeperGone namespace.gatekeeper.mumbers unless entity @e[type=your_gatekeeper_type]
or
execute if score ?ToggledTo namespace.gatekeeper.numbers matches 1 result success score ?GatekeeperGone namespace.gatekeeper.mumbers unless entity @e[tag=gatekeeper_tag]
then this command
execute if score ?GatekeeperGone namespace.gatekeeper.numbers matches 1 run summon minecraft:pig
and then condition chain command block:
scoreboard players reset ?GatekeeperGone namespace.gatekeeper.numbers
and then condition chain command block:
scoreboard players set ?ToggleTo namespace.gatekeeper.numbers 0
scorboard objectives add namespace.gatekeeper.numbers dummy
When you want to turn it on, summon gatekeeper, and run this command:
scoreboard players set ?ToggledTo namespace.gatekeeper.numbers 1
and run this command in loop
execute if score ?ToggledTo namespace.gatekeeper.numbers matches 1 result success score ?GatekeeperGone namespace.gatekeeper.mumbers unless entity @e[type=your_gatekeeper_type]
or
execute if score ?ToggledTo namespace.gatekeeper.numbers matches 1 result success score ?GatekeeperGone namespace.gatekeeper.mumbers unless entity @e[tag=gatekeeper_tag]
then this command
execute if score ?GatekeeperGone namespace.gatekeeper.numbers matches 1 run summon minecraft:pig
and then condition chain command block:
scoreboard players reset ?GatekeeperGone namespace.gatekeeper.numbers
and then condition chain command block:
scoreboard players set ?ToggleTo namespace.gatekeeper.numbers 0
You could give your miniboss a specialized tag or score, and then run a repeat command block which executes if there is no entity with said tag. F.i. something like "execute unless @e[tag=miniboss]". You could use a comparator, which then would give you a redstone signal if there is no entity with the tag left, meaning if the Miniboss gets killed, another row of commands could be executes according to your needs. This could be used to summon another boss. Using repeaters you can also configure some kind of timer if the boss shouldn't spawn immediately.
I got it to work but in a terrible but I'll take it it anyone has a suggestion I'll take it
