Boss spawned by egg

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

austxnsheep

Member
Feb 18, 2021
1
0
1
20
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
 

Attachments

  • Error.jpg
    Error.jpg
    96.6 KB · Views: 104
Status
Not open for further replies.