Advertisement
fleft17

Untitled

Jul 22nd, 2014
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.87 KB | None | 0 0
  1. options:
  2.  
  3. P: &8[&bFavonius&8]&r
  4.  
  5. command /xOres <text> [<integer>]:
  6. permission: skript.xOres
  7. trigger:
  8. if arg-1 is "on" or "enable":
  9. if arg-2 is not set:
  10. message "{@P} Please specify how many ores should drop!"
  11.  
  12. if arg-2 is set:
  13. set {xOres} to true
  14. set {xOres.drop} to arg-2
  15.  
  16. if arg-1 is "off" or "off":
  17. set {xOres} to false
  18.  
  19.  
  20.  
  21. on mine of iron ore:
  22. if {xOres} is true:
  23. cancel the event
  24. set the block to air
  25. if {xOres.drop} is not set:
  26. loop 5 times:
  27. broadcast "{@P} An admin has not set the ore drops!"
  28. wait 0.1 seconds
  29.  
  30. if {xOres.drop} is set:
  31. loop {xOres.drop} times:
  32. drop 1 iron ingot at the event-block
  33. spawn 1 experience orb at event-block
  34.  
  35. on mine of gold ore:
  36. if {xOres} is true:
  37. cancel the event
  38. set the block to air
  39. if {xOres.drop} is not set:
  40. loop 5 times:
  41. broadcast "{@P} An admin has not set the ore drops!"
  42. wait 0.1 seconds
  43.  
  44. if {xOres.drop} is set:
  45. loop {xOres.drop} times:
  46. drop 1 gold ingot at the event-block
  47. spawn 1 experience orb at event-block
  48.  
  49.  
  50.  
  51. on mine of diamond ore:
  52. if {xOres} is true:
  53. cancel the event
  54. set the block to air
  55. if {xOres.drop} is not set:
  56. loop 5 times:
  57. broadcast "{@P} An admin has not set the ore drops!"
  58. wait 0.1 seconds
  59.  
  60. if {xOres.drop} is set:
  61. loop {xOres.drop} times:
  62. drop 1 diamond at the event-block
  63. spawn 1 experience orb at event-block
  64.  
  65.  
  66. on mine of coal ore:
  67. if {xOres} is true:
  68. cancel the event
  69. set the block to air
  70. if {xOres.drop} is not set:
  71. loop 5 times:
  72. broadcast "{@P} An admin has not set the ore drops!"
  73. wait 0.1 seconds
  74.  
  75. if {xOres.drop} is set:
  76. loop {xOres.drop} times:
  77. drop 1 coal at the event-block
  78. spawn 1 experience orb at event-block
  79.  
  80.  
  81. on mine of redstone ore:
  82. if {xOres} is true:
  83. cancel the event
  84. set the block to air
  85. if {xOres.drop} is not set:
  86. loop 5 times:
  87. broadcast "{@P} An admin has not set the ore drops!"
  88. wait 0.1 seconds
  89.  
  90. if {xOres.drop} is set:
  91. loop {xOres.drop} times:
  92. drop 4 redstone at the event-block
  93. spawn 1 experience orb at event-block
  94.  
  95. on mine of lapis ore:
  96. if {xOres} is true:
  97. cancel the event
  98. set the block to air
  99. if {xOres.drop} is not set:
  100. loop 5 times:
  101. broadcast "{@P} An admin has not set the ore drops!"
  102. wait 0.1 seconds
  103.  
  104. if {xOres.drop} is set:
  105. loop {xOres.drop} times:
  106. drop 4 lapis lazuli at the event-block
  107. spawn 1 experience orb at event-block
  108.  
  109.  
  110. on mine of emerald ore:
  111. if {xOres} is true:
  112. cancel the event
  113. set the block to air
  114. if {xOres.drop} is not set:
  115. loop 5 times:
  116. broadcast "{@P} An admin has not set the ore drops!"
  117. wait 0.1 seconds
  118.  
  119. if {xOres.drop} is set:
  120. loop {xOres.drop} times:
  121. drop 1 emerald at the event-block
  122. spawn 1 experience orb at event-block
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement