Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- Perm: uhc.staff
- P: &f[&bCutclean&f]
- C: &b
- H: &f
- command /cutclean <text>:
- permission: {@Perm}
- usage: /Cutclean <On:Off>
- trigger:
- if arg-1 is "enable" or "on":
- set {Cutclean} to true
- broadcast "{@P}{@C} Cutclean {@H}Enabled{@C}!"
- if arg-1 is "disable" or "off":
- delete {Cutclean}
- delete {_chest}
- delete {_chestloc}
- broadcast "{@P}{@C} Cutclean {@H}Disabled{@C}!"
- on mine:
- if {Cutclean} is true:
- if block is iron ore:
- set the block at the block to chest
- set {_chest} to block
- set {_chestloc} to location of block
- if {VeinMiner} is set:
- player is not sneaking
- add 1 iron ingot to {_chest}
- set block at {_chestloc} to air
- spawn 1 experience orb at the block
- else:
- add 1 iron ingot to {_chest}
- set block at {_chestloc} to air
- spawn 1 experience orb at the block
- if block is gold ore:
- set the block at the block to chest
- set {_chest} to block
- set {_chestloc} to location of block
- if {VeinMiner} is set:
- player is not sneaking
- add 1 gold ingot to {_chest}
- set block at {_chestloc} to air
- spawn 1 experience orb at the block
- else:
- add 1 gold ingot to {_chest}
- set block at {_chestloc} to air
- spawn 1 experience orb at the block
- on death:
- if {Cutclean} is true:
- if victim is pig:
- clear drops
- drop 2 cooked porkchop at the pig
- if victim is cow:
- clear drops
- drop 2 steak at the cow
- drop 1 leather at the cow
- if victim is chicken:
- clear drops
- drop 1 cooked chicken at the chicken
- drop 2 feather at the chicken
- if victim is sheep:
- clear drops
- drop 2 424 at the sheep
- drop 1 white wool at the sheep
Advertisement
Add Comment
Please, Sign In to add comment