Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /zombierevenge <text>:
- permission: skript.op
- trigger:
- if arg-1 is "on" or "true" or "enable":
- set {zombierevenge} to true
- broadcast "&8&l[&CModa&8&l]&f Zombie revenge has been &cenabled&7!"
- command sender command "/gamerule keepInventory true"
- else if arg-1 is "off" or "false" or "disable":
- set {zombierevenge} to false
- broadcast "&8&l[&CModa&8&l]&f Zombie revenge has been &cdisabled&7!"
- command sender command "/gamerule keepInventory false"
- on death of player:
- if {zombierevenge} is true:
- loop all items in player's inventory:
- add the loop-item to {inventory.&c%name of victim%'s_Zombie::*}
- add 1 of victim's skull to {inventory.&c%name of victim%'s_Zombie::*}
- add 1 of victim's helmet to {inventory.&c%name of victim%'s_Zombie::*}
- add 1 of victim's chestplate to {inventory.&c%name of victim%'s_Zombie::*}
- add 1 of victim's leggings to {inventory.&c%name of victim%'s_Zombie::*}
- add 1 of victim's boots to {inventory.&c%name of victim%'s_Zombie::*}
- spawn a zombie at location of victim
- set the name of the spawned zombie to "&c%name of victim%'s_Zombie"
- set tool of the spawned zombie to victim's tool
- set helmet of the spawned zombie to victim's skull
- set chestplate of the spawned zombie to victim's chestplate
- set leggings of the spawned zombie to victim's leggings
- set boots of the spawned zombie to victim's boots
- clear drops
- stop
- on death:
- victim is zombie:
- if {zombierevenge} is true:
- clear drops
- loop {inventory.%display name of victim%::*}:
- drop loop-value at the victim
- clear {inventory.%display name of victim%::*}
- stop
- on respawn:
- if {zombierevenge} is true:
- clear the player's inventory
Advertisement
Add Comment
Please, Sign In to add comment