Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on player respawn:
- equip the player with zombie head
- {zombies::*} contains player:
- wait 1 second
- broadcast "<black>----------------------------------------"
- broadcast "<cyan><bold>%player% <red>has respawned as a <green><bold>zombie!"
- broadcast "<black>----------------------------------------"
- else:
- add player to {zombies::*}
- wait 1 second
- broadcast "<black>----------------------------------------"
- broadcast "<cyan><bold>%player% <red>has become a <green><bold>zombie!"
- broadcast "<black>----------------------------------------"
- wait 1 second
- execute console command "scatter RandomSquare no 700 world:0,0 %player%"
- message "<red>You are now a <green>zombie."
- execute console command "/effect %player% clear"
- apply weakness 3 to the player for 99 days
- apply saturation 10 to the player for 99 days
- apply resistance 3 to the player for 99 days
- wait 3 seconds
- equip the player with all leather armour
- dye the player's helmet dark green
- dye the player's shoes dark blue
- dye the player's leggings dark blue
- dye the player's chestplate light cyan
- equip the player with zombie head
- remove wither from the player
- heal the player
- wait 10 seconds
- heal the player
- remove wither from the player
- on mine of wood:
- {zombies::*} contains player:
- cancel the event
- message "<bold>You are a <green><bold>zombie. <white>You are not allowed to break wood."
- on break of plank:
- {zombies::*} contains player:
- cancel the event
- message "<bold>You are a <green><bold>zombie. <white>You are not allowed to break wood."
- on craft of pick:
- {zombies::*} contains player:
- cancel the event
- message "<bold>You are a <green><bold>zombie. <white>You are not allowed to make picks."
- on mine of ore:
- {zombies::*} contains player:
- cancel the event
- message "<bold>You are a <green><bold>zombie. <white>You cannot mine ores."
- on break of dirt:
- {zombies::*} contains player:
- cancel the event
- message "<bold>You are a <green><bold>zombie. <white>You are not allowed to break dirt."
- on break of grass:
- {zombies::*} contains player:
- cancel the event
- message "<bold>You are a <green><bold>zombie. <white>You are not allowed to break grass."
- on break of sand:
- {zombies::*} contains player:
- cancel the event
- message "<bold>You are a <green><bold>zombie. <white>You are not allowed to break sand."
- on damage of a player:
- attacker is zombie:
- if victim is wearing a zombie head:
- cancel the event
- on chat:
- {zombies::*} contains player:
- cancel the event
- every 10 seconds:
- loop all players:
- {zombies::*} contains loop-player:
- loop-player is not wearing zombie head:
- apply wither 99 to loop-player for 99 days
- command /unzombie [<player>]:
- permission:skript.op
- trigger:
- remove argument 1 from {zombies::*}
- message "<green>Player unzombified."
- remove resistance and mining fatigue and saturation and weakness from argument 1
- command /unzombieall:
- permission:skript.op
- trigger:
- clear {zombies::*}
- message "<green>All players unzombified."
- loop all players:
- remove resistance and mining fatigue and saturation and weakness from loop-player
- command /zombie [<player>]:
- permission:skript.op
- trigger:
- add argument 1 to {zombies::*}
- message "<green>Player added to zombies."
- command /zombies:
- permission:skript.op
- trigger:
- broadcast "<green><bold>Zombies: <white>%{zombies::*}%"
Advertisement
Add Comment
Please, Sign In to add comment