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
- VariableDrops: true
- 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}
- broadcast "{@P}{@C} Cutclean {@H}Disabled{@C}!"
- on mine of iron ore:
- if {CutClean} is true:
- if {VeinMiner} is true:
- player is not sneaking
- cancel event
- place iron ingot at event-block
- spawn 1 xp at event-block
- damage player's tool by 1
- else:
- cancel event
- place iron ingot at event-block
- spawn 1 xp at event-block
- damage player's tool by 1
- on mine of gold ore:
- if {CutClean} is true:
- if {VeinMiner} is true:
- player is not sneaking
- cancel event
- place gold ingot at event-block
- spawn 1 xp at event-block
- damage player's tool by 1
- else:
- cancel event
- place gold ingot at event-block
- spawn 1 xp at event-block
- damage player's tool by 1
- on death of a pig:
- if {CutClean} is true:
- clear drops
- set {_variable} to {@VariableDrops}
- if {_variable} is true:
- set block at the pig to chest
- set {_chestloc} to location at the pig
- set {_cookedporkchop} to a random integer between 1 and 2
- if {_cookedporkchop} is 1:
- add 1 cooked porkchop to the block at {_chestloc}
- if {_cookedporkchop} is 2:
- add 2 cooked porkchop to the block at {_chestloc}
- set the block at {_chestloc} to air
- else:
- drop 2 cooked porkchop at the pig
- drop 1 xp at the pig
- on death of a cow:
- if {CutClean} is true:
- clear drops
- set {_variable} to {@VariableDrops}
- if {_variable} is true:
- set block at the cow to chest
- set {_chestloc} to location at the cow
- set {_steak} to a random integer between 1 and 2
- if {_steak} is 1:
- add 1 steak to the block at {_chestloc}
- if {_steak} is 2:
- add 2 steak to the block at {_chestloc}
- set the block at {_chestloc} to air
- else:
- drop 2 steak at the cow
- if {_variable} is true:
- set block at the cow to chest
- set {_chestloc} to location at the cow
- set {_leather} to a random integer between 1 and 2
- if {_leather} is 1:
- add 1 leather to the block at {_chestloc}
- if {_leather} is 2:
- add 2 leather to the block at {_chestloc}
- set the block at {_chestloc} to air
- else:
- drop 1 leather at the cow
- drop 1 xp at the cow
- on death of a sheep:
- clear drops
- if {CutClean} is true:
- set {_variable} to {@VariableDrops}
- if {_variable} is true:
- set block at the sheep to chest
- set {_chestloc} to location at the sheep
- set {_cookedmutton} to a random integer between 1 and 2
- if {_cookedmutton} is 1:
- add 1 cooked mutton to the block at {_chestloc}
- if {_cookedmutton} is 2:
- add 2 cooked mutton to the block at {_chestloc}
- set the block at {_chestloc} to air
- else:
- drop 2 cooked mutton at the sheep
- drop 1 xp at the sheep
- else:
- set {_variable} to {@VariableDrops}
- if {_variable} is true:
- set block at the sheep to chest
- set {_chestloc} to location at the sheep
- set {_rawmutton} to a random integer between 1 and 2
- if {_rawmutton} is 1:
- add 1 raw mutton to the block at {_chestloc}
- if {_rawmutton} is 2:
- add 2 raw mutton to the block at {_chestloc}
- set the block at {_chestloc} to air
- else:
- drop 2 raw mutton at the sheep
- drop 1 xp at the sheep
- stop
- on death of a chicken:
- {CutClean} is true
- clear drops
- set {_variable} to {@VariableDrops}
- if {_variable} is true:
- set block at the chicken to chest
- set {_chestloc} to location at the chicken
- set {_cookedchicken} to a random integer between 1 and 2
- if {_cookedchicken} is 1:
- add 1 cooked chicken to the block at {_chestloc}
- if {_cookedchicken} is 2:
- add 2 cooked chicken to the block at {_chestloc}
- set the block at {_chestloc} to air
- else:
- drop 2 cooked chicken at the chicken
- if {_variable} is true:
- set block at the chicken to chest
- set {_chestloc} to location at the chicken
- set {_feather} to a random integer between 1 and 2
- if {_feather} is 1:
- add 1 feather to the block at {_chestloc}
- if {_feather} is 2:
- add 2 feather to the block at {_chestloc}
- set the block at {_chestloc} to air
- else:
- drop 2 feather at the chicken
- drop 1 xp at the chicken
- on death of a spider:
- {CutClean} is true
- clear drops
- set {_variable} to {@VariableDrops}
- if {_variable} is true:
- set block at the spider to chest
- set {_chestloc} to location at the spider
- set {_string} to a random integer between 1 and 2
- if {_string} is 1:
- add 1 string to the block at {_chestloc}
- if {_string} is 2:
- add 2 string to the block at {_chestloc}
- set the block at {_chestloc} to air
- else:
- drop 2 string at the spider
- chance of 30%:
- drop 1 spider eye at the spider
- drop 4 xp at the spider
Advertisement
Add Comment
Please, Sign In to add comment