Advertisement
fleft17

Untitled

Aug 20th, 2014
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1. options:
  2.  
  3. P: &8[&7CutClean&8]&r
  4.  
  5.  
  6. command /cutclean [<text>]:
  7. trigger:
  8. if arg-1 is "on" or "enable":
  9. command sender has permission "skript.cutclean":
  10. if {CutClean.Enabled} is not set:
  11. set {CutClean.Enabled} to true
  12. broadcast "{@P} Enabled by &e%command sender%!"
  13. else:
  14. message "{@P} Already enabled!" to the command sender
  15. stop trigger
  16. else:
  17. execute console command "/playsound random.break %command sender% ~ ~ ~ 1 1 1"
  18. message "{@P} You don't have permission for that!" to the command sender
  19.  
  20. else if arg-1 is "off" or "disable":
  21. command sender has permission "skript.cutclean":
  22. if {CutClean.Enabled} is true:
  23. delete {CutClean.Enabled}
  24. broadcast "{@P} Disabled by &e%command sender%!"
  25. else:
  26. message "{@P} Already disabled!" to the command sender
  27. stop trigger
  28. else:
  29. execute console command "/playsound random.break %command sender% ~ ~ ~ 1 1 1"
  30. message "{@P} You don't have permission for that!" to the command sender
  31.  
  32.  
  33. else if arg-1 is "toggle" or "switch":
  34. if {CutClean.Enabled} is true:
  35. command sender command "/cutclean off"
  36. stop trigger
  37. if {CutClean.Enabled} is not set:
  38. command sender command "/cutclean on"
  39. stop trigger
  40.  
  41. else if arg-1 is "help" or "?" or "question" or "info" or "information":
  42. message "" to the command sender
  43. if command sender has permission "skript.cutclean":
  44. message "{@P} /cutclean &eon/off/toggle" to the command sender
  45. message "{@P} Scenario by: &e/u/katmankhaos"
  46. if command sender is "Fleft":
  47. message "{@P} Skript: &eYou!" to the command sender
  48. else:
  49. message "{@P} Skript: &eFleft" to the command sender
  50. message "" to the command sender
  51. message "{@P} In &eCutClean&r, furnaces are not needed" to the command sender
  52. message "" to the command sender
  53.  
  54. else if arg-1 is not set:
  55. command sender command "/cutclean help"
  56. else:
  57. command sender command "/cutclean help"
  58.  
  59.  
  60. on mine:
  61. if {CutClean.Enabled} is true:
  62. event-block is gravel:
  63. chance of 75%:
  64. drop 1 flint at event-block
  65. cancel the event
  66. set event-block to air
  67.  
  68. event-block is oak leaves:
  69. chance of 75%:
  70. cancel the event
  71. set event-block to air
  72. drop 1 apple at event-block
  73.  
  74. event-block is iron ore:
  75. cancel the event
  76. set event-block to air
  77. drop 1 iron ingot at event-block
  78.  
  79. event-block is gold ore:
  80. cancel the event
  81. set event-block to air
  82. drop 1 gold ingot at event-block
  83.  
  84. on death:
  85. {CutClean.Enabled} is true:
  86. victim is pig:
  87. clear drops
  88. drop ((random integer between 1 and 3) of cooked porkchop) at victim
  89. victim is cow:
  90. clear drops
  91. drop ((random integer between 1 and 3) of steak) at victim
  92. drop 1 leather at victim
  93. victim is chicken:
  94. clear drops
  95. drop ((random integer between 1 and 3) of cooked chicken) at victim
  96. drop ((random integer between 1 and 2) of feather) at victim
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement