Advertisement
Guest User

Untitled

a guest
May 16th, 2015
589
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.99 KB | None | 0 0
  1. options:
  2. p: &8[&5Apple Rates&8]&r #Apple Rates
  3. p2: &8[&5Flint Rates&8]&r #Flint Rates
  4. perms: skript.op
  5. oakonly: false #set to true if only oak trees drop apples
  6. nerfshears: false #set to true to nerf so shears wont get you alot of apples
  7.  
  8. command /apples [<text>] [<int>]:
  9. permission: {@perms}
  10. aliases: /applerates, /arates, /appler
  11. usage: /apples [<set:reset>] [<rate (1-100)>]
  12. trigger:
  13. if arg-1 is "reset":
  14. broadcast "{@p} Apple Rates set to Vanilla"
  15. delete {rates::apples}
  16. loop all players:
  17. command "/playsound random.pop %loop-player% ~ ~ ~ 1 0.5 1"
  18. else if arg-1 is "set":
  19. if arg-2 is not set:
  20. send "{@p} You must specify a rate to set it to!" to command sender
  21. command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
  22. stop
  23. else if arg-2 is less than 0:
  24. send "{@p} No number lower than 0!" to command sender
  25. command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
  26. stop
  27. else if arg-2 is greater than 100:
  28. send "{@p} No number higher than 100!" to command sender
  29. command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
  30. stop
  31. set {rates::apples} to arg-2
  32. broadcast "{@p} Apple Rates set to %arg-2%%%"
  33. loop all players:
  34. command "/playsound random.pop %loop-player% ~ ~ ~ 1 0.5 1"
  35. else:
  36. if {rates::apples} is set:
  37. send "{@p2} Current Apple Rates: %{rates::apples}%%%"
  38. else:
  39. send "{@p2} Current Apple Rates: Vanilla"
  40. send "{@p} /apples [<set:reset>] [<rate (1-100)>]"
  41. command "/playsound random.explode %command sender% ~ ~ ~ 1 0.5 1"
  42.  
  43. command /flint [<text>] [<int>]:
  44. permission: {@perms}
  45. aliases: /flintrates, /flintr, /frates
  46. usage: /flintrates [<set:reset>] [<rate (1-100)>]
  47. trigger:
  48. if arg-1 is "reset":
  49. broadcast "{@p2} Flint Rates set to Vanilla"
  50. delete {rates::flint}
  51. loop all players:
  52. command "/playsound random.pop %loop-player% ~ ~ ~ 1 0.5 1"
  53. else if arg-1 is "set":
  54. if arg-2 is not set:
  55. send "{@p2} You must specify a rate to set it to!" to command sender
  56. command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
  57. stop
  58. else if arg-2 is less than 0:
  59. send "{@p2} No number lower than 0!" to command sender
  60. command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
  61. stop
  62. else if arg-2 is greater than 100:
  63. send "{@p} No number higher than 100!" to command sender
  64. command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
  65. stop
  66. set {rates::flint} to arg-2
  67. broadcast "{@p2} Flint Rates set to %arg-2%%%"
  68. loop all players:
  69. command "/playsound random.pop %loop-player% ~ ~ ~ 1 0.5 1"
  70. else:
  71. if {rates::flint} is set:
  72. send "{@p2} Current Flint Rates: %{rates::flint}%%%"
  73. else:
  74. send "{@p2} Current Flint Rates: Vanilla"
  75. send "{@p2} /flint [<set:reset>] [<rate (1-100)>]"
  76. command "/playsound random.break %command sender% ~ ~ ~ 1 0.5 1"
  77.  
  78. on break of gravel:
  79. event-player's gamemode is survival
  80. world is not "pvparena" or "spawn" or "musim"
  81. if {rates::flint} is not set:
  82. stop
  83. cancel the event
  84. set the event-block to air
  85. set {_chance} to a random integer between 1 and 100
  86. if {_chance} is between -1 and {rates::flint}:
  87. drop 1 flint at event-block
  88. else:
  89. drop 1 gravel at event-block
  90.  
  91. on leaves decay:
  92. world is not "pvparena" or "spawn" or "musim"
  93. if {rates::apples} is not set:
  94. stop
  95. cancel the event
  96. set the event-block to air
  97. chance of {rates::apples}%:
  98. drop 1 apple at event-block
  99. if event-block is oak leaves:
  100. chance of 5%
  101. drop 1 oak sapling at event-block
  102. else if event-block is spruce leaves:
  103. chance of 5%
  104. drop 1 spruce sapling at event-block
  105. else if event-block is birch leaves:
  106. chance of 5%
  107. drop 1 birch sapling at event-block
  108. else if event-block is jungle leaves:
  109. chance of 5%
  110. drop 1 jungle sapling at event-block
  111. else if event-block is acacia leaves:
  112. chance of 5%
  113. drop 1 acacia sapling at event-block
  114. else if event-block is dark oak leaves:
  115. chance of 5%
  116. drop 1 dark oak sapling at event-block
  117.  
  118. on break of leaves:
  119. event-player's gamemode is survival
  120. world is not "pvparena" or "spawn" or "musim"
  121. if {rates::apples} is not set:
  122. stop
  123. if event-player is holding shears:
  124. {@nerfshears} is true
  125. stop
  126. if {@oakonly} is true:
  127. event-block is not oak leaves or dark oak leaves
  128. stop
  129. cancel the event
  130. set the event-block to air
  131. chance of {rates::apples}%:
  132. drop 1 apple at event-block
  133. if event-block is oak leaves:
  134. chance of 5%
  135. drop 1 oak sapling at event-block
  136. else if event-block is spruce leaves:
  137. chance of 5%
  138. drop 1 spruce sapling at event-block
  139. else if event-block is birch leaves:
  140. chance of 5%
  141. drop 1 birch sapling at event-block
  142. else if event-block is jungle leaves:
  143. chance of 5%
  144. drop 1 jungle sapling at event-block
  145. else if event-block is acacia leaves:
  146. chance of 5%
  147. drop 1 acacia sapling at event-block
  148. else if event-block is dark oak leaves:
  149. chance of 5%
  150. drop 1 dark oak sapling at event-block
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement