Guest User

Untitled

a guest
Aug 8th, 2016
744
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1. options:
  2. P: &7[&eUHC&7]
  3.  
  4. command /veinminer <text>:
  5. permission: skript.op
  6. trigger:
  7. if arg 1 is "enable":
  8. set {veinminer} to true
  9. message "{@P} &bVein Miner &2Enabled&7!"
  10. stop
  11. if arg 1 is "disable":
  12. set {veinminer} to false
  13. message "{@P} &bVein Miner &cDisabled&7!"
  14. stop
  15. message "{@P}/veinminer <enable/disable>"
  16.  
  17.  
  18. on mine of coal ore:
  19. if {veinminer} is true:
  20. player is sneaking
  21. loop blocks in radius 2 around event-block:
  22. loop-block is equal to coal ore
  23. set loop-block to air
  24. damage player's tool by 1
  25. if player has space for (1 of coal):
  26. give player (1 of coal)
  27. else:
  28. drop (1 of coal) at (location 0.5 above player)
  29. drop 1 xp at player
  30.  
  31. on mine of iron ore:
  32. if {veinminer} is true:
  33. player is sneaking
  34. loop blocks in radius 2 around event-block:
  35. loop-block is equal to iron ore
  36. set loop-block to air
  37. damage player's tool by 1
  38. if player has space for (1 of iron ore):
  39. give player (1 of iron ore)
  40. else:
  41. drop (1 of iron ore) at (location 0.5 above player)
  42.  
  43. on mine of gold ore:
  44. if {veinminer} is true:
  45. player is sneaking
  46. loop blocks in radius 2 around event-block:
  47. loop-block is equal to gold ore
  48. set loop-block to air
  49. damage player's tool by 1
  50. if player has space for (1 of gold ore):
  51. give player (1 of gold ore)
  52. else:
  53. drop (1 of gold ore) at (location 0.5 above player)
  54.  
  55. on mine of lapis lazuli ore:
  56. if {veinminer} is true:
  57. player is sneaking
  58. loop blocks in radius 2 around event-block:
  59. loop-block is equal to lapis lazuli ore
  60. set loop-block to air
  61. damage player's tool by 1
  62. if player has space for (6 of lapis lazuli):
  63. give player (6 of lapis lazuli)
  64. else:
  65. drop (6 of lapis lazuli) at (location 0.5 above player)
  66. drop 1 xp at player
  67.  
  68. on mine of redstone ore:
  69. if {veinminer} is true:
  70. player is sneaking
  71. loop blocks in radius 2 around event-block:
  72. loop-block is equal to redstone ore
  73. set loop-block to air
  74. damage player's tool by 1
  75. if player has space for (4 of redstone):
  76. give player (4 of redstone)
  77. else:
  78. drop (4 of redstone) at (location 0.5 above player)
  79. drop 1 xp at player
  80.  
  81. on mine of diamond ore:
  82. if {veinminer} is true:
  83. player is sneaking
  84. loop blocks in radius 2 around event-block:
  85. loop-block is equal to diamond ore
  86. set loop-block to air
  87. damage player's tool by 1
  88. if player has space for (1 of diamond):
  89. give player (1 of diamond)
  90. else:
  91. drop (1 of diamond) at (location 0.5 above player)
  92. drop 1 xp at player
  93.  
  94. on mine of emerald ore:
  95. if {veinminer} is true:
  96. player is sneaking
  97. loop blocks in radius 2 around event-block:
  98. loop-block is equal to emerald ore
  99. set loop-block to air
  100. damage player's tool by 1
  101. if player has space for (1 of emerald):
  102. give player (1 of emerald)
  103. else:
  104. drop (1 of emerald) at (location 0.5 above player)
  105. drop 1 xp at player
Add Comment
Please, Sign In to add comment