Hello everyone,
I want to make a skript where you have for example a pig spawner. but in stead of it spawning a pig it spawns a zombie with a name etc. How would i do this. I want a pig spawner because pigs can spawn in the daylight and zombies can't. I already had a skript what worked fine but it broke somehow. It is a very stupid skript but i made it when i was doing skripting for a few weeks.
Skript version: 2.5.2
Minecraft version: 1.16.4
[doublepost=1606854967,1606753116][/doublepost]I already figured it out i dont need any help any more i had to put event-entity instead of pig for any one who wants to know
I want to make a skript where you have for example a pig spawner. but in stead of it spawning a pig it spawns a zombie with a name etc. How would i do this. I want a pig spawner because pigs can spawn in the daylight and zombies can't. I already had a skript what worked fine but it broke somehow. It is a very stupid skript but i made it when i was doing skripting for a few weeks.
Code:
on spawn of pig:
send "%Spawn Reason%" to console
if "%Spawn Reason%" is "mob spawner":
set {count} to 2
kill the pig
on death:
if victim is pig:
{count} is 2:
spawn a zombie at victim's location
cancel the drops
on spawn of a zombie:
{count} is 2:
set {count} to 0
set name of the zombie to "&cPirate Tier II"
set helmet of zombie to chain helmet
set chestplate of zombie to iron chestplate
set leggings of zombie to iron leggings
set boots of zombie to chain boots
set zombie's held item to diamond sword of sharpness 30
Minecraft version: 1.16.4
[doublepost=1606854967,1606753116][/doublepost]I already figured it out i dont need any help any more i had to put event-entity instead of pig for any one who wants to know