Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /cutclean <text>:
- aliases: cc
- permission: skript.op
- trigger:
- if arg 1 is "enable" or "on":
- set {cutclean} to true
- broadcast "&5[&6Arcanum&5] &fCutClean has been &aenabled &rby &b%executor%&r!"
- if arg 1 is "disable" or "off":
- set {cutclean} to false
- broadcast "&5[&6Arcanum&5] &fCutClean has been &cdisabled &rby &b%executor%&r!"
- on mine of iron ore:
- if {cutclean} is true:
- cancel the event
- damage player's tool by 1
- set event-block to air
- spawn 1 experience orb at the player
- if player has space for (1 of iron ingot):
- give player (1 of iron ingot)
- else:
- drop 1 iron ingot at location 0.5 above player
- message "&aYour inventory is full, item dropped on ground"
- on mine of gold ore:
- if {cutclean} is true:
- cancel the event
- damage player's tool by 1
- set event-block to air
- spawn 1 experience orb at the player
- if player has space for (1 of gold ingot):
- give player (1 of gold ingot)
- else:
- drop 1 gold ingot at location 0.5 above player
- message "&aYour inventory is full, item dropped on ground"
- on death:
- if {cutclean} is true:
- if victim is pig:
- clear drops
- drop ((random integer between 1 and 3) of 320) at the pig
- spawn 1 experience orb at the pig
- else if victim is cow:
- clear drops
- drop ((random integer between 1 and 3) of steak) at the cow
- drop ((random integer between 1 and 2) of leather) at the cow
- spawn 1 experience orb at the cow
- else if victim is chicken:
- clear drops
- drop ((random integer between 1 and 3) of cooked chicken) at the chicken
- drop ((random integer between 1 and 2) of feather) at the chicken
- spawn 1 experience orb at the chicken
- else if victim is sheep:
- clear drops
- drop ((random integer between 1 and 3) of cooked mutton) at the sheep
- spawn 1 experience orb at the sheep
- else if victim is rabbit:
- clear drops
- drop ((random integer between 1 and 3) of cooked rabbit) at the rabbit
- drop ((random integer between 1 and 2) of rabbit hide) at the rabbit
- spawn 1 experience orb at the rabbit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement