Advertisement
Guest User

Horse nerfs

a guest
Jan 24th, 2015
1,276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.69 KB | None | 0 0
  1. Options:
  2. P: &3[&6Horse Nerfs&3] &f
  3. L: 4
  4. M: 7
  5.  
  6. Variables:
  7. {horse::riding}=true
  8. {horse::healing}=true
  9. {horse::spawns}=true
  10. {horse::healthnerf}=false
  11.  
  12. command /horses <text>:
  13. permission: skript.op
  14. usage : <enable/disable/features>
  15. trigger:
  16. if arg 1 is "enable" or "true" or "on":
  17. set {horse::spawns} to true
  18. broadcast "{@P}Horse Spawns enabled!"
  19. else if arg 1 is "disable" or "false" or "off":
  20. set {horse::spawns} to false
  21. broadcast "{@P}Horse Spawns disabled!"
  22. loop all horses:
  23. kill loop-horse
  24.  
  25. if arg 1 is "features" or "nerfs" or "info":
  26. message "{@P}Horse Spawns are %{horse::spawns}%"
  27. message "{@P}Horse Riding is %{horse::riding}%"
  28. message "{@P}Horse healing is %{horse::healing}%"
  29. message "{@P}Horse Health nerfs is %{horse::healthnerf}%"
  30.  
  31. if arg 1 is "reset":
  32. set {horse::riding} to true
  33. set {horse::healing} to true
  34. set {horse::spawns} to true
  35. set {horse::healthnerf} to false
  36. broadcast "{@P}Horse Nerfs disabled!"
  37.  
  38.  
  39.  
  40. on spawn of horse:
  41. if {horse::spawns} is false:
  42. cancel the event
  43.  
  44. command /horse <text> <text>:
  45. permission: skript.op
  46. usage : <healing/riding/healthnerf/feature on/off/list>
  47. trigger:
  48. if arg 1 is "healing":
  49. if arg 2 is "enable" or "true" or "on":
  50. set {horse::healing} to true
  51. broadcast "{@P}Horse Healing enabled!"
  52. else if arg 2 is "disable" or "false" or "off":
  53. set {horse::healing} to false
  54. broadcast "{@P}Horse Healing disabled!"
  55.  
  56. else if arg 1 is "riding" or "mounting":
  57. if arg 2 is "enable" or "true" or "on":
  58. set {horse::riding} to true
  59. broadcast "{@P}Horse Riding enabled!"
  60. else if arg 2 is "disable" or "false" or "off":
  61. set {horse::riding} to false
  62. broadcast "{@P}Horse Riding disabled!"
  63.  
  64. else if arg 1 is "health" or "healthnerf":
  65. if arg 2 is "enable" or "true" or "on":
  66. set {horse::healthnerf} to true
  67. broadcast "Horse's Health nerfed!"
  68. loop all horses:
  69. set {_health} to a random integer between {@L} and {@M}
  70. set the loop-horse's max health to {_health}
  71. set the loop-horse's health to {_health}
  72. else if arg 2 is "disable" or "false" or "off":
  73. set {horse::healthnerf} to false
  74. broadcast "{@P}Horse's Healths not nefed!"
  75.  
  76. else if arg 1 is "features" or "nerfs" or "info":
  77. if arg 2 is "list":
  78. message "{@P}Horse Spawns are %{horse::spawns}%"
  79. message "{@P}Horse Riding is %{horse::riding}%"
  80. message "{@P}Horse healing is %{horse::healing}%"
  81. message "{@P}Horse Health nerfs is %{horse::healthnerf}%"
  82.  
  83. else if arg 1 is "features" or "nerfs":
  84. if arg 2 is "reset":
  85. set {horse::riding} to true
  86. set {horse::healing} to true
  87. set {horse::spawns} to true
  88. set {horse::healthnerf} to false
  89. broadcast "{@P}Horse Nerfs disabled!"
  90.  
  91. else if arg 1 is "spawn" or "spawns":
  92. if arg 2 is "enable" or "true" or "on":
  93. set {horse::spawns} to true
  94. broadcast "{@P}Horse Spawns enabled!"
  95. else if arg 2 is "disable" or "false" or "off":
  96. set {horse::spawns} to false
  97. broadcast "{@P}Horse Spawns disabled!"
  98. loop all horses:
  99. kill loop-horse
  100.  
  101.  
  102. on right click on horse with sugar or apple or bread or carrot or golden carrot:
  103. if {horse::healing} is false:
  104. cancel the event
  105. message "{@P}Horse Healing is disabled!" to event-player
  106.  
  107. on right click on horse:
  108. if {horse::riding} is false:
  109. cancel the event
  110. message "{@P}Horse riding is disabled!" to event-player
  111.  
  112. on spawn of horse:
  113. if {horse::healthnerf} is true:
  114. set {_health} to a random integer between {@L} and {@M}
  115. set the horse's max health to {_health}
  116. set the horse's health to {_health}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement