Ilom_uk

Old Weapons (SK)

Jun 8th, 2018
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. #impromptu coding
  2. options:
  3. P: &d[&cOld Weapons&d]
  4. C: &d
  5. H: &c
  6.  
  7. command /oldweapons [<text>]:
  8. permission: skript.op
  9. permission message: "{@P}{@C} No, you're not doing that..."
  10. usage: /oldweapons [enable/disable]
  11. trigger:
  12. if arg-1 is not set:
  13. if {oldweapons} is true:
  14. send "{@P}{@C} Old Weapons is currently {@H}enabled!"
  15. if {oldweapons} is not set:
  16. send "{@P}{@C} Old Weapons is currently {@H}disabled!"
  17. if arg-1 is "enable" or "on":
  18. if {oldweapons} is not set:
  19. set {oldweapons} to true
  20. broadcast "{@P}{@C} Old Weapons has been {@H}enabled!"
  21. loop all players:
  22. command "/playsound note.pling %loop-player% ~ ~ ~ 1 2 1"
  23. else if {oldweapons} is true:
  24. send "{@P}{@C} Old Weapons is already {@H}enabled!"
  25. if arg-1 is "disable" or "off":
  26. if {oldweapons} is true:
  27. delete {oldweapons}
  28. broadcast "{@P}{@C} Old Weapons has been {@H}disabled!"
  29. loop all players:
  30. command "/playsound note.pling %loop-player% ~ ~ ~ 1 2 1"
  31. else if {oldweapons} is not set:
  32. send "{@P}{@C} Old Weapons is already {@H}disabled!"
  33. if arg-1 is "help":
  34. send "{@P}{@H} Commands for Old Weapons:"
  35. send "{@P}{@H} /oldweapons [enable/disable]"
  36. send "{@P}{@H} /whatisoldweapons"
  37. command "/playsound random.pop %command sender% ~ ~ ~ 1 1 1"
  38.  
  39. command /whatisoldweapons:
  40. trigger:
  41. send "{@P}{@C} Old Weapons is where weapons (and tools) do half a heart less damage per hit, similar to in Minecraft 1.5 and before."
  42. command "/playsound random.pop %command sender% ~ ~ ~ 1 1 1"
  43.  
  44. on damage:
  45. {oldweapons} is true
  46. if tool of the attacker is a sword or a pickaxe or an axe or a shovel:
  47. reduce damage by 0.5
Advertisement
Add Comment
Please, Sign In to add comment