Advertisement
Guest User

Untitled

a guest
Feb 14th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. options:
  2. P: &8[&7ZistonianBattlesign&8]&7
  3.  
  4. command /zb <text>:
  5. usage: /zb <on/off/give>
  6. permission: skript.op
  7. trigger:
  8. if arg-1 is "on" or "enable":
  9. send "{@P} Skript Enabled"
  10. set {zistonianbattlesign} to true
  11. else if arg-1 is "off" or "disable":
  12. send "{@P} Skript Disabled"
  13. delete {zistonianbattlesign}
  14. else if arg-1 is "give":
  15. loop all players:
  16. give 1 sign named "&7Zistonian Battlesign: Level 1" to loop-player
  17. loop all items in the loop-player's inventory:
  18. loop-item is a sign named "&7Zistonian Battlesign: Level 1"
  19. enchant loop-item with knockback 2
  20. send "{@P} Signs Given!"
  21.  
  22. on death of player:
  23. attacker is a player
  24. {zistonianbattlesign} is true
  25. remove sign named "&7Zistonian Battlesign: Level 1" from the drops
  26. remove sign named "&7Zistonian Battlesign: Level 2" from the drops
  27. remove sign named "&7Zistonian Battlesign: Level 3" from the drops
  28. remove sign named "&7Zistonian Battlesign: Level 4" from the drops
  29. if attacker has a sign named "&7Zistonian Battlesign: Level 1":
  30. remove 1 sign named "&7Zistonian Battlesign: Level 1" from attacker's inventory
  31. give 1 sign named "&7Zistonian Battlesign: Level 2" to attacker
  32. loop all items in the attacker's inventory:
  33. loop-item is a sign named "&7Zistonian Battlesign: Level 2"
  34. enchant loop-item with knockback 2 and fire aspect 1
  35. else if attacker has a sign named "&7Zistonian Battlesign: Level 2":
  36. remove 1 sign named "&7Zistonian Battlesign: Level 2" from attacker's inventory
  37. give 1 sign named "&7Zistonian Battlesign: Level 3" to attacker
  38. loop all items in the attacker's inventory:
  39. loop-item is a sign named "&7Zistonian Battlesign: Level 3"
  40. enchant loop-item with sharpness 3 and knockback 2 and fire aspect 1
  41. else if attacker has a sign named "&7Zistonian Battlesign: Level 3":
  42. remove 1 sign named "&7Zistonian Battlesign: Level 3" from attacker's inventory
  43. give 1 sign named "&7Zistonian Battlesign: Level 4" to attacker
  44. loop all items in the attacker's inventory:
  45. loop-item is a sign named "&7Zistonian Battlesign: Level 4"
  46. enchant loop-item with sharpness 5 and looting 3 and knockback 2 and fire aspect 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement