Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- Perm: uhc.staff
- P: &f[&bVeinMiner&f]
- C: &b
- H: &f
- on break of gold ore:
- set the event-block to air
- if {veinminer} is true:
- if player is sneaking:
- if {CutClean} is true:
- drop 1 gold ingot at the event-block
- else:
- drop 1 gold ore at the event-block
- loop blocks in radius 3 around event-block:
- set block at the event-block to chest
- set {_chestloc} to location of event-block
- if loop-block is gold ore:
- set the loop-block to air
- if {CutClean} is true:
- add 1 gold ore to the block at {_chestloc}
- drop 3 xp at {_chestloc}
- damage player's tool by 1
- else:
- add 1 gold ore to the block at {_chestloc}
- damage player's tool by 1
- set block at {_chestloc} to air
- on break of diamond ore:
- set the event-block to air
- if {veinminer} is true:
- if player is sneaking:
- drop 1 diamond at the event-block
- loop blocks in radius 3 around event-block:
- set block at the event-block to chest
- set {_chestloc} to location of event-block
- if loop-block is diamond ore:
- set the loop-block to air
- if {CutClean} is true:
- add 1 diamond to the block at {_chestloc}
- drop 5 xp at {_chestloc}
- damage player's tool by 1
- else:
- add 1 diamond to the block at {_chestloc}
- drop 5 xp at {_chestloc}
- damage player's tool by 1
- set block at {_chestloc} to air
- on break of iron ore:
- set the event-block to air
- if {veinminer} is true:
- if player is sneaking:
- if {CutClean} is true:
- drop 1 iron ingot at the event-block
- else:
- drop 1 iron ore at the event-block
- loop blocks in radius 3 around event-block:
- set block at the event-block to chest
- set {_chestloc} to location of event-block
- if loop-block is iron ore:
- set the loop-block to air
- if {CutClean} is true:
- add 1 iron ore to the block at {_chestloc}
- drop 1 xp at {_chestloc}
- damage player's tool by 1
- else:
- add 1 iron ore to the block at {_chestloc}
- drop 1 xp at {_chestloc}
- damage player's tool by 1
- set block at {_chestloc} to air
- on break of coal ore:
- if {veinminer} is true:
- player is sneaking
- loop blocks in radius 3 around event-block:
- if loop-block is coal ore:
- drop 1 coal at loop-block
- spawn 1 experience orb at the loop-block
- set the loop-block to air
- on break of redstone ore:
- if {veinminer} is true:
- player is sneaking
- loop blocks in radius 3 around event-block:
- if loop-block is redstone ore:
- drop 3 redstone at loop-block
- spawn 3 experience orb at the loop-block
- set the loop-block to air
- on break of lapis ore:
- if {veinminer} is true:
- player is sneaking
- loop blocks in radius 3 around event-block:
- if loop-block is lapis ore:
- drop 3 lapis at loop-block
- spawn 3 experience orb at the loop-block
- set the loop-block to air
- command /veinminer <text>:
- permission: {@Perm}
- usage: /veinminer <On:Off>
- trigger:
- if arg-1 is "enable" or "on":
- set {veinminer} to true
- broadcast "{@P}{@C} VeinMiner {@H}Enabled{@C}!"
- if arg-1 is "disable" or "off":
- delete {veinminer}
- broadcast "{@P}{@C} VeinMiner {@H}Disabled{@C}!"
Advertisement
Add Comment
Please, Sign In to add comment