#Help
1 messages · Page 1 of 1 (latest)
on load:
set {enderdragonSpawned} to enderdragon
kill all enderdragons
set {enderdragonSpawned} to false
every 1 second in world "world_the_end":
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"
on death:
if {enderdragonSpawned} 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
on damage:
if damaged mob is enderdragon:
if display name of last spawned enderdragon is "&c&lBOSS":
give attacker 1 diamond
debug it to see what is causing the error and also why do u set {enderdragonSpawned} to enderdragon on load just to set it to false, would also recommend deleting variables instead of setting them to false and checking if they are set or not
also use another variable to set the name of the enderdragon to as you are setting the {enderdragonSpawned} variable to enderdragon then setting the same variable to false so when it gets set to true, and u do the check on death: it won't work as the variable is set to either true/false and not a string, change 2nd line variable to something else and put that same variable for the on death check variable to check if it is an ender dragon
@oak yacht