Zombie Pig

A zombie pig

Did you know pigs turned into zombies when the are hit by lightning? Let’s see it happen!

Try the code:

player.onChat("zombiepig", function () {
    mobs.spawn(PIG, pos(5, 0, 0))
    mobs.spawn(LIGHTNING_BOLT, pos(5, 0, 0))
})