RustyPeanuts98

Untitled

Oct 9th, 2014
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. command /zombierevenge <text>:
  2. permission: skript.op
  3. trigger:
  4. if arg-1 is "on" or "true" or "enable":
  5. set {zombierevenge} to true
  6. broadcast "&8&l[&CModa&8&l]&f Zombie revenge has been &cenabled&7!"
  7. command sender command "/gamerule keepInventory true"
  8.  
  9. else if arg-1 is "off" or "false" or "disable":
  10. set {zombierevenge} to false
  11. broadcast "&8&l[&CModa&8&l]&f Zombie revenge has been &cdisabled&7!"
  12. command sender command "/gamerule keepInventory false"
  13.  
  14. on death of player:
  15. if {zombierevenge} is true:
  16. loop all items in player's inventory:
  17. add the loop-item to {inventory.&c%name of victim%'s_Zombie::*}
  18. add 1 of victim's skull to {inventory.&c%name of victim%'s_Zombie::*}
  19. add 1 of victim's helmet to {inventory.&c%name of victim%'s_Zombie::*}
  20. add 1 of victim's chestplate to {inventory.&c%name of victim%'s_Zombie::*}
  21. add 1 of victim's leggings to {inventory.&c%name of victim%'s_Zombie::*}
  22. add 1 of victim's boots to {inventory.&c%name of victim%'s_Zombie::*}
  23. spawn a zombie at location of victim
  24. set the name of the spawned zombie to "&c%name of victim%'s_Zombie"
  25. set tool of the spawned zombie to victim's tool
  26. set helmet of the spawned zombie to victim's skull
  27. set chestplate of the spawned zombie to victim's chestplate
  28. set leggings of the spawned zombie to victim's leggings
  29. set boots of the spawned zombie to victim's boots
  30. clear drops
  31. stop
  32.  
  33. on death:
  34. victim is zombie:
  35. if {zombierevenge} is true:
  36. clear drops
  37. loop {inventory.%display name of victim%::*}:
  38. drop loop-value at the victim
  39. clear {inventory.%display name of victim%::*}
  40. stop
  41.  
  42.  
  43. on respawn:
  44. if {zombierevenge} is true:
  45. clear the player's inventory
Advertisement
Add Comment
Please, Sign In to add comment