Advertisement
Captainkoala72

Select Cutclean [SK]

Mar 2nd, 2015
593
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.19 KB | None | 0 0
  1. # Skripted by CaptainKoala72 - Feel Free to edit in any way!
  2.  
  3. options:
  4. P: &8[&bCutclean&8] # - Edit your own prefix
  5. Perm: Set.Your.Own # - Set your own permission
  6.  
  7. command /selectcutclean [<integer>] [<text>]:
  8. permission: {@Perm}
  9. aliases: /sc, /selcutclean
  10. trigger:
  11. if arg-2 is not set:
  12. message "{@P} &6/SelectCutclean &7<Amount> <Barebones On:Off>"
  13. else:
  14. if arg-1 is less than 0:
  15. message "{@P} &7You can't set select cutclean to less than 0!"
  16. stop trigger
  17. if arg-1 is more than 0:
  18. set {sc.amt} to arg-1
  19. message "{@P} &7Select Cutclean has been set to %arg-1%!"
  20. set {cutclean} to true
  21. if arg-2 is "on" or "true":
  22. set {bb} to true
  23. message "{@P} &7Barebones is set to 'True'"
  24. if arg-2 is "off" or "false":
  25. set {bb} to false
  26. message "{@P} &7Barebones is set to 'False'"
  27. if arg-1 is 0:
  28. message "{@P} &7You set Select Cutclean to default!"
  29. delete {sc.amt}
  30. delete {bb}
  31.  
  32. on mine of iron ore:
  33. if {sc.amt} is set:
  34. set the block to air
  35. loop {sc.amt} times:
  36. cancel the event
  37. drop 1 iron ingot
  38. spawn 1 experience orb at event-block
  39.  
  40. on mine of coal ore:
  41. if {sc.amt} is set:
  42. set the block to air
  43. loop {sc.amt} times:
  44. cancel the event
  45. drop 1 coal
  46. spawn 1 experience orb at event-block
  47.  
  48. on mine of gold ore:
  49. if {sc.amt} is set:
  50. set the block to air
  51. loop {sc.amt} times:
  52. if {bb} is false:
  53. cancel the event
  54. drop 1 gold ingot
  55. if {bb} is true:
  56. cancel the event
  57. set the block to air
  58. drop 1 iron ingot at the event-block
  59. spawn 1 experience orb at event-block
  60.  
  61. on mine of diamond ore:
  62. if {sc.amt} is set:
  63. set the block to air
  64. loop {sc.amt} times:
  65. if {bb} is false:
  66. cancel the event
  67. drop 1 diamonds
  68. if {bb} is true:
  69. cancel the event
  70. set the block to air
  71. drop 1 iron ingot at the event-block
  72. spawn 1 experience orb at event-block
  73.  
  74. on mine of emerald ore:
  75. if {sc.amt} is set:
  76. set the block to air
  77. loop {sc.amt} times:
  78. if {bb} is false:
  79. cancel the event
  80. drop 1 gold ingot
  81. if {bb} is true:
  82. cancel the event
  83. set the block to air
  84. drop 1 iron ingot at the event-block
  85. spawn 1 experience orb at event-block
  86.  
  87. on death of pig:
  88. if {sc.amt} is set:
  89. clear the drops
  90. loop {sc.amt} times:
  91. drop 1 cooked porkchop
  92.  
  93. on death of cow:
  94. if {sc.amt} is set:
  95. clear the drops
  96. loop {sc.amt} times:
  97. drop 1 steak
  98.  
  99. on death of chicken:
  100. if {sc.amt} is set:
  101. clear the drops
  102. loop {sc.amt} times:
  103. drop 1 cooked chicken named "KFC"
  104.  
  105. on death of sheep:
  106. if {sc.amt} is set:
  107. clear the drops
  108. loop {sc.amt} times:
  109. drop 1 cooked porkchop
  110.  
  111. on death of squid:
  112. if {sc.amt} is set:
  113. clear the drops
  114. loop {sc.amt} times:
  115. drop 1 cooked fish
  116.  
  117. on death of player:
  118. if {bb} is true:
  119. drop 2 string at event-player
  120. drop 1 diamond at event-player
  121. drop 1 diamond pickaxe at event-player
  122. drop 1 golden apple at event-player
  123. drop 32 arrows at event-player
  124.  
  125. on craft of enchantment table:
  126. if {bb} is true:
  127. cancel the event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement