Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- P: &8[&7CutClean&8]&r
- command /cutclean [<text>]:
- trigger:
- if arg-1 is "on" or "enable":
- command sender has permission "skript.cutclean":
- if {CutClean.Enabled} is not set:
- set {CutClean.Enabled} to true
- broadcast "{@P} Enabled by &e%command sender%!"
- else:
- message "{@P} Already enabled!" to the command sender
- stop trigger
- else:
- execute console command "/playsound random.break %command sender% ~ ~ ~ 1 1 1"
- message "{@P} You don't have permission for that!" to the command sender
- else if arg-1 is "off" or "disable":
- command sender has permission "skript.cutclean":
- if {CutClean.Enabled} is true:
- delete {CutClean.Enabled}
- broadcast "{@P} Disabled by &e%command sender%!"
- else:
- message "{@P} Already disabled!" to the command sender
- stop trigger
- else:
- execute console command "/playsound random.break %command sender% ~ ~ ~ 1 1 1"
- message "{@P} You don't have permission for that!" to the command sender
- else if arg-1 is "toggle" or "switch":
- if {CutClean.Enabled} is true:
- command sender command "/cutclean off"
- stop trigger
- if {CutClean.Enabled} is not set:
- command sender command "/cutclean on"
- stop trigger
- else if arg-1 is "help" or "?" or "question" or "info" or "information":
- message "" to the command sender
- if command sender has permission "skript.cutclean":
- message "{@P} /cutclean &eon/off/toggle" to the command sender
- message "{@P} Scenario by: &e/u/katmankhaos"
- if command sender is "Fleft":
- message "{@P} Skript: &eYou!" to the command sender
- else:
- message "{@P} Skript: &eFleft" to the command sender
- message "" to the command sender
- message "{@P} In &eCutClean&r, furnaces are not needed" to the command sender
- message "" to the command sender
- else if arg-1 is not set:
- command sender command "/cutclean help"
- else:
- command sender command "/cutclean help"
- on mine:
- if {CutClean.Enabled} is true:
- event-block is gravel:
- chance of 75%:
- drop 1 flint at event-block
- cancel the event
- set event-block to air
- event-block is oak leaves:
- chance of 75%:
- cancel the event
- set event-block to air
- drop 1 apple at event-block
- event-block is iron ore:
- cancel the event
- set event-block to air
- drop 1 iron ingot at event-block
- event-block is gold ore:
- cancel the event
- set event-block to air
- drop 1 gold ingot at event-block
- on death:
- {CutClean.Enabled} is true:
- victim is pig:
- clear drops
- drop ((random integer between 1 and 3) of cooked porkchop) at victim
- victim is cow:
- clear drops
- drop ((random integer between 1 and 3) of steak) at victim
- drop 1 leather at victim
- victim is chicken:
- clear drops
- drop ((random integer between 1 and 3) of cooked chicken) at victim
- drop ((random integer between 1 and 2) of feather) at victim
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement