version:latest?
auther: Me
on rightclick:
if name of player's tool contains "&d&lRandom &5&lboss &d&lgenerator":
set {_Boss.spawner} to a random number between 1 and 3
if {_Boss.spawner} is 1:
spawn zombie at player
set name of last spawned entity to "&4Zombie &3Brute"
set the helmet of the last spawned zombie to diamond helmet of protection 3 and unbreaking 15
set the chestplate of the last spawned zombie to diamond chestplate of protection 3 and unbreaking 15
set the leggings of the last spawned zombie to diamond leggings of protection 3 and unbreaking 15
set the boots of the last spawned zombie to diamond boots of protection 3 and unbreaking 15
set the weapon of the last spawned zombie to diamond sword of sharpness 4 and fire aspect 5
broadcast "&fAn &4Zombie &3Brute &f&lHas spawned!!!"
remove 1 ghast spawn egg named &d&lRandom &5&lboss &d&lgenerator from player's inventory
if {_Boss.spawner} is 2:
spawn spider at player
set name of last spawned entity to "&2&lBrood &3&lMother"
set the helmet of the last spawned spider to diamond helmet of protection 2 and unbreaking 15
set the chestplate of the last spawned spider to diamond chestplate of protection 2 and unbreaking 15
set the leggings of the last spawned spider to diamond leggings of protection 2 and unbreaking 15
set the boots of the last spawned spider to diamond boots of protection 2 and unbreaking 15
set the weapon of the last spawned spider to diamond sword of sharpness 3 and knockback 2
apply speed 10000 to the last spawned spider
broadcast "&fAn &2&lBrood&3&lMother &f&lHas spawned!!!"
remove 1 ghast spawn egg named &d&lRandom &5&lboss &d&lgenerator from player's inventory
if {_Boss.spawner} is 3:
spawn iron golem at player
set name of last spawned entity to "&b&lIRON &f&lDEFENDER"
set the helmet of the last spawned iron golem to diamond helmet of protection 4 and unbreaking 15
set the chestplate of the last spawned iron golem to diamond chestplate of protection 4 and unbreaking 15
set the leggings of the last spawned iron golem to diamond leggings of protection 4 and unbreaking 15
set the boots of the last spawned iron golem to diamond boots of protection 4 and unbreaking 15
set the weapon of the last spawned iron golem to diamond sword of sharpness 5 and fire aspect 3
apply speed 100000 to the last spawned iron golem
apply strength 100000 to last spawned iron golem
broadcast "&f&lAn &b&lIRON DEFENDER &f&lHas spawned!!!"
remove ghast egg named "&d&lRandom &5&lboss &d&lgenerator" from player's inventory
I made this skript to have a 1 in 3 chance to spawn a boss but it seems something is wrong with the skript that i dont know how to fix, someone help plz
auther: Me
on rightclick:
if name of player's tool contains "&d&lRandom &5&lboss &d&lgenerator":
set {_Boss.spawner} to a random number between 1 and 3
if {_Boss.spawner} is 1:
spawn zombie at player
set name of last spawned entity to "&4Zombie &3Brute"
set the helmet of the last spawned zombie to diamond helmet of protection 3 and unbreaking 15
set the chestplate of the last spawned zombie to diamond chestplate of protection 3 and unbreaking 15
set the leggings of the last spawned zombie to diamond leggings of protection 3 and unbreaking 15
set the boots of the last spawned zombie to diamond boots of protection 3 and unbreaking 15
set the weapon of the last spawned zombie to diamond sword of sharpness 4 and fire aspect 5
broadcast "&fAn &4Zombie &3Brute &f&lHas spawned!!!"
remove 1 ghast spawn egg named &d&lRandom &5&lboss &d&lgenerator from player's inventory
if {_Boss.spawner} is 2:
spawn spider at player
set name of last spawned entity to "&2&lBrood &3&lMother"
set the helmet of the last spawned spider to diamond helmet of protection 2 and unbreaking 15
set the chestplate of the last spawned spider to diamond chestplate of protection 2 and unbreaking 15
set the leggings of the last spawned spider to diamond leggings of protection 2 and unbreaking 15
set the boots of the last spawned spider to diamond boots of protection 2 and unbreaking 15
set the weapon of the last spawned spider to diamond sword of sharpness 3 and knockback 2
apply speed 10000 to the last spawned spider
broadcast "&fAn &2&lBrood&3&lMother &f&lHas spawned!!!"
remove 1 ghast spawn egg named &d&lRandom &5&lboss &d&lgenerator from player's inventory
if {_Boss.spawner} is 3:
spawn iron golem at player
set name of last spawned entity to "&b&lIRON &f&lDEFENDER"
set the helmet of the last spawned iron golem to diamond helmet of protection 4 and unbreaking 15
set the chestplate of the last spawned iron golem to diamond chestplate of protection 4 and unbreaking 15
set the leggings of the last spawned iron golem to diamond leggings of protection 4 and unbreaking 15
set the boots of the last spawned iron golem to diamond boots of protection 4 and unbreaking 15
set the weapon of the last spawned iron golem to diamond sword of sharpness 5 and fire aspect 3
apply speed 100000 to the last spawned iron golem
apply strength 100000 to last spawned iron golem
broadcast "&f&lAn &b&lIRON DEFENDER &f&lHas spawned!!!"
remove ghast egg named "&d&lRandom &5&lboss &d&lgenerator" from player's inventory
I made this skript to have a 1 in 3 chance to spawn a boss but it seems something is wrong with the skript that i dont know how to fix, someone help plz