Randall123459

VeinMiner

Jan 5th, 2017
776
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.20 KB | None | 0 0
  1. options:
  2. Perm: uhc.staff
  3. P: &f[&bVeinMiner&f]
  4. C: &b
  5. H: &f
  6.  
  7. on break of gold ore:
  8. set the event-block to air
  9. if {veinminer} is true:
  10. if player is sneaking:
  11. if {CutClean} is true:
  12. drop 1 gold ingot at the event-block
  13. else:
  14. drop 1 gold ore at the event-block
  15. loop blocks in radius 3 around event-block:
  16. set block at the event-block to chest
  17. set {_chestloc} to location of event-block
  18. if loop-block is gold ore:
  19. set the loop-block to air
  20. if {CutClean} is true:
  21. add 1 gold ore to the block at {_chestloc}
  22. drop 3 xp at {_chestloc}
  23. damage player's tool by 1
  24. else:
  25. add 1 gold ore to the block at {_chestloc}
  26. damage player's tool by 1
  27. set block at {_chestloc} to air
  28.  
  29. on break of diamond ore:
  30. set the event-block to air
  31. if {veinminer} is true:
  32. if player is sneaking:
  33. drop 1 diamond at the event-block
  34. loop blocks in radius 3 around event-block:
  35. set block at the event-block to chest
  36. set {_chestloc} to location of event-block
  37. if loop-block is diamond ore:
  38. set the loop-block to air
  39. if {CutClean} is true:
  40. add 1 diamond to the block at {_chestloc}
  41. drop 5 xp at {_chestloc}
  42. damage player's tool by 1
  43. else:
  44. add 1 diamond to the block at {_chestloc}
  45. drop 5 xp at {_chestloc}
  46. damage player's tool by 1
  47. set block at {_chestloc} to air
  48.  
  49. on break of iron ore:
  50. set the event-block to air
  51. if {veinminer} is true:
  52. if player is sneaking:
  53. if {CutClean} is true:
  54. drop 1 iron ingot at the event-block
  55. else:
  56. drop 1 iron ore at the event-block
  57. loop blocks in radius 3 around event-block:
  58. set block at the event-block to chest
  59. set {_chestloc} to location of event-block
  60. if loop-block is iron ore:
  61. set the loop-block to air
  62. if {CutClean} is true:
  63. add 1 iron ore to the block at {_chestloc}
  64. drop 1 xp at {_chestloc}
  65. damage player's tool by 1
  66. else:
  67. add 1 iron ore to the block at {_chestloc}
  68. drop 1 xp at {_chestloc}
  69. damage player's tool by 1
  70. set block at {_chestloc} to air
  71.  
  72. on break of coal ore:
  73. if {veinminer} is true:
  74. player is sneaking
  75. loop blocks in radius 3 around event-block:
  76. if loop-block is coal ore:
  77. drop 1 coal at loop-block
  78. spawn 1 experience orb at the loop-block
  79. set the loop-block to air
  80.  
  81. on break of redstone ore:
  82. if {veinminer} is true:
  83. player is sneaking
  84. loop blocks in radius 3 around event-block:
  85. if loop-block is redstone ore:
  86. drop 3 redstone at loop-block
  87. spawn 3 experience orb at the loop-block
  88. set the loop-block to air
  89.  
  90. on break of lapis ore:
  91. if {veinminer} is true:
  92. player is sneaking
  93. loop blocks in radius 3 around event-block:
  94. if loop-block is lapis ore:
  95. drop 3 lapis at loop-block
  96. spawn 3 experience orb at the loop-block
  97. set the loop-block to air
  98.  
  99. command /veinminer <text>:
  100. permission: {@Perm}
  101. usage: /veinminer <On:Off>
  102. trigger:
  103. if arg-1 is "enable" or "on":
  104. set {veinminer} to true
  105. broadcast "{@P}{@C} VeinMiner {@H}Enabled{@C}!"
  106. if arg-1 is "disable" or "off":
  107. delete {veinminer}
  108. broadcast "{@P}{@C} VeinMiner {@H}Disabled{@C}!"
Advertisement
Add Comment
Please, Sign In to add comment