#Help with mob spawn please!

1 messages · Page 1 of 1 (latest)

inner sapphire
#
on load:
  kill all enderdragons
  set {enderdragonSpawned} to false
  clear {enderdragon}

every 10 seconds:
    if {enderdragonSpawned} is false:
        set {enderdragonSpawned} to true
        spawn {enderdragon} at location(0, 75, 0, world "world_the_end") 
        set display name of last spawned enderdragon to "&c&lBOSS"
    else:
        if {enderdragonSpawned} is not set:
            set {enderdragonSpawned} to false
on death:
  if victim is {enderdragon}:
    give attacker 1 dragon egg named "&d&lDragon's Egg"
    set {enderdragonSpawned} to false
    send "&a&l--------------------------------------" to all players
    send "" to all players
    send "&a%attacker% killed the &c&lBOSS!" to all players
    send "" to all players
    send "&a&l--------------------------------------" to all players

on spawn of enderdragon:
   send "&c&l---------------------------------------" to all players
   send "" to all players
   send "&c&lBoss spawned!" to all players
   send "" to all players
   send "&c&l---------------------------------------" to all players