fleft17

Untitled

Jul 17th, 2014
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. options:
  2. P: &2[&4Apples&2]&r
  3.  
  4.  
  5.  
  6. on leaves decay:
  7. cancel the event
  8. set the block to air
  9. chance of {Apl}%:
  10. drop 1 apple
  11. else:
  12. targeted block is oak leaves:
  13. chance of 5%:
  14. drop 1 oak sapling
  15. targeted block is birch leaves:
  16. chance of 5%:
  17. drop 1 birch sapling
  18. targeted block is 161:0:
  19. chance of 5%:
  20. drop 1 6:4
  21. targeted block is spruce leaves:
  22. chance of 5%:
  23. drop 1 spruce sapling
  24. targeted block is 161:1:
  25. chance of 5%:
  26. drop 1 6:5
  27. targeted block is jungle leaves:
  28. chance of 2.5%:
  29. drop 1 oak sapling
  30.  
  31. on break of leaves:
  32. cancel the event
  33. set the block to air
  34. chance of {Apl}%:
  35. drop 1 apple
  36. else:
  37. targeted block is oak leaves:
  38. chance of 5%:
  39. drop 1 oak sapling
  40. targeted block is birch leaves:
  41. chance of 5%:
  42. drop 1 birch sapling
  43. targeted block is 161:0:
  44. chance of 5%:
  45. drop 1 6:4
  46. targeted block is spruce leaves:
  47. chance of 5%:
  48. drop 1 spruce sapling
  49. targeted block is 161:1:
  50. chance of 5%:
  51. drop 1 6:5
  52. targeted block is jungle leaves:
  53. chance of 2.5%:
  54. drop 1 oak sapling
  55.  
  56.  
  57. command /apples [<text>] [<number>]:
  58. aliases: /applerate, /applerates
  59. permission: skript.op
  60. trigger:
  61. if arg-1 is "set":
  62. if arg-2 is set:
  63. arg-2 is greater than 100:
  64. message "{@P} You can't set apple rates to %arg-2%!"
  65. stop trigger
  66. arg-2 is less than 0:
  67. message "{@P} You can't set apple rates to %arg-2%!"
  68. stop trigger
  69. set {Apl} to arg-2
  70. broadcast "{@P} Rate: %arg-2%%%"
  71. if arg-2 is not set:
  72. message "{@P} /apples set (number)"
  73. if arg-1 is not set:
  74. {Apl} is set:
  75. message "{@P} Apple rates are %{Apl}%%%"
  76. {Apl} is not set:
  77. message "{@P} Apple rates are not set!"
  78. message "{@P} /apples set (number)"
Advertisement
Add Comment
Please, Sign In to add comment