#Random Boss spawn (previous one automatically killed)
1 messages ยท Page 1 of 1 (latest)
@blissful tapir
I deleted it, it didn't work and I had things there that shouldn't even be there...
Yes please
So you have the spawning of the bosses?
Do you think location? world or?
So you deleted all the code?
You have a command to spawn the boss, which I assume spawns it at the player
Ah alrighg
I recommend moving the code in the command into a function, and then call the function from the command so that you don't have thes same code in two different places
//Your code here
Set {zombiebossisalive} to true```
If {zombiebossisalive} is false:
spawnZombieBoss()```
If victim is zombie named "&2&lZombie Boss":
Set {zombiebossisalive} to false```
With this, there is a possibility that the boss is spawned right before the timer goes off
So I can write a timer
If you want @blissful tapir
well, I think I somehow understand it for a timer, I'll be happy ๐
I'd rather make a backup of the script and try the new method as soon as I have time
You can also do on death: If victim is zombie named "x": Wait 5 hours spawnZombieBoss()
set {_loc} to location(0, 70, 0, world "bossworld")
spawn 1 adult zombie at {_loc}
set display name of last spawned zombie to "&e&lZombie Boss"
set {_e} to last spawned zombie
set helmet of {_e} to diamond helmet
set chestplate of {_e} to diamond chestplate
set leggings of {_e} to diamond leggings
set boots of {_e} to diamond boots
set {_e}'s tool to diamond sword
set {_e}'s max health to 400
heal {_e}
apply speed 1 without particles to {_e} for 999 days
apply resistance 2 without particles to {_e} for 999 days
if victim is zombie named "&e&lZombie Boss":
wait 5 hours
spawnZombieBoss();```
i have two errors with this
function spawnZombieBoss():
command /zombieboss:
permission: op
permission message: nemas prava
trigger:
summon zombie at location at 36.500, -2, 71.500 in world "boss"
set display name of last spawned zombie to "&2&lZombie Boss"
set maximum health of last spawned zombie to 650
set health of last spawned zombie to 650
apply potion of speed of tier 4 to last spawned zombie for 9999 days
apply strength of tier 2 to last spawned zombie for 9999 days
apply glowing of tier 1 to last spawned zombie for 9999 days
wait 1 ticks
set last spawned zombie's held item to iron hoe
equip last spawned zombie with iron helmet of unbreaking 1000
Set {zombiebossisalive} to true
every 5 hours:
If {zombiebossisalive} is false:
spawnZombieBoss()
on death:
If victim is zombie named "&2&lZombie Boss":
Set {zombiebossisalive} to false```
and this piece of code will make it so that when the boss dies another one will spawn? I would like it to spawn randomly (I plan to have 4)
or to spawn in the order zombie boss, skeleton boss, pigman boss, wither skeleton boss and loop this, but if the boss is not killed, it will automatically kill itself and spawn the next one so that 5 bosses do not spawn there
now I have one error
function spawnZombieBoss():
summon zombie at location at 36.500, -2, 71.500 in world "boss"
set display name of last spawned zombie to "&2&lZombie Boss"
set maximum health of last spawned zombie to 650
set health of last spawned zombie to 650
apply potion of speed of tier 4 to last spawned zombie for 9999 days
apply strength of tier 2 to last spawned zombie for 9999 days
apply glowing of tier 1 to last spawned zombie for 9999 days
wait 1 ticks
set last spawned zombie's held item to iron hoe
equip last spawned zombie with iron helmet of unbreaking 1000
Set {zombiebossisalive} to true
every 5 hours:
If {zombiebossisalive} is false:
spawnZombieBoss()
on death:
if victim is zombie named "&e&lZombie Boss":
wait 5 hours
spawnZombieBoss();```
Yah
My bad
You have to split that into two conditions
If victim is zombie:
If display name of victim is "name":
Wait 5 hours
spawnZombieBoss()```
its ok
but there is still an error
Add an a
Like victim is a zombie
I don't have skript installed on my server so I couldn't test anything when I was home
Wdym
that I should do functions on all bosses
or so that the system of automatic killing and spawning does not have to be created, I can create 4 arenas and put bosses in them ๐
Yes create Function for each boss
2/4 done
3/4 done
Im done with this script @odd rain tysm
๐