Randall123459

CutClean - No Flying Ores - Variable Mob Drops

Jan 5th, 2017
1,141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.89 KB | None | 0 0
  1. options:
  2. Perm: uhc.staff
  3. P: &f[&bCutclean&f]
  4. C: &b
  5. H: &f
  6. VariableDrops: true
  7.  
  8. command /cutclean <text>:
  9. permission: {@Perm}
  10. usage: /Cutclean <On:Off>
  11. trigger:
  12. if arg-1 is "enable" or "on":
  13. set {Cutclean} to true
  14. broadcast "{@P}{@C} Cutclean {@H}Enabled{@C}!"
  15. if arg-1 is "disable" or "off":
  16. delete {Cutclean}
  17. broadcast "{@P}{@C} Cutclean {@H}Disabled{@C}!"
  18.  
  19. on mine of iron ore:
  20. if {CutClean} is true:
  21. if {VeinMiner} is true:
  22. player is not sneaking
  23. cancel event
  24. place iron ingot at event-block
  25. spawn 1 xp at event-block
  26. damage player's tool by 1
  27. else:
  28. cancel event
  29. place iron ingot at event-block
  30. spawn 1 xp at event-block
  31. damage player's tool by 1
  32.  
  33. on mine of gold ore:
  34. if {CutClean} is true:
  35. if {VeinMiner} is true:
  36. player is not sneaking
  37. cancel event
  38. place gold ingot at event-block
  39. spawn 1 xp at event-block
  40. damage player's tool by 1
  41. else:
  42. cancel event
  43. place gold ingot at event-block
  44. spawn 1 xp at event-block
  45. damage player's tool by 1
  46.  
  47. on death of a pig:
  48. if {CutClean} is true:
  49. clear drops
  50. set {_variable} to {@VariableDrops}
  51. if {_variable} is true:
  52. set block at the pig to chest
  53. set {_chestloc} to location at the pig
  54. set {_cookedporkchop} to a random integer between 1 and 2
  55. if {_cookedporkchop} is 1:
  56. add 1 cooked porkchop to the block at {_chestloc}
  57. if {_cookedporkchop} is 2:
  58. add 2 cooked porkchop to the block at {_chestloc}
  59. set the block at {_chestloc} to air
  60. else:
  61. drop 2 cooked porkchop at the pig
  62. drop 1 xp at the pig
  63.  
  64. on death of a cow:
  65. if {CutClean} is true:
  66. clear drops
  67. set {_variable} to {@VariableDrops}
  68. if {_variable} is true:
  69. set block at the cow to chest
  70. set {_chestloc} to location at the cow
  71. set {_steak} to a random integer between 1 and 2
  72. if {_steak} is 1:
  73. add 1 steak to the block at {_chestloc}
  74. if {_steak} is 2:
  75. add 2 steak to the block at {_chestloc}
  76. set the block at {_chestloc} to air
  77. else:
  78. drop 2 steak at the cow
  79. if {_variable} is true:
  80. set block at the cow to chest
  81. set {_chestloc} to location at the cow
  82. set {_leather} to a random integer between 1 and 2
  83. if {_leather} is 1:
  84. add 1 leather to the block at {_chestloc}
  85. if {_leather} is 2:
  86. add 2 leather to the block at {_chestloc}
  87. set the block at {_chestloc} to air
  88. else:
  89. drop 1 leather at the cow
  90. drop 1 xp at the cow
  91.  
  92. on death of a sheep:
  93. clear drops
  94. if {CutClean} is true:
  95. set {_variable} to {@VariableDrops}
  96. if {_variable} is true:
  97. set block at the sheep to chest
  98. set {_chestloc} to location at the sheep
  99. set {_cookedmutton} to a random integer between 1 and 2
  100. if {_cookedmutton} is 1:
  101. add 1 cooked mutton to the block at {_chestloc}
  102. if {_cookedmutton} is 2:
  103. add 2 cooked mutton to the block at {_chestloc}
  104. set the block at {_chestloc} to air
  105. else:
  106. drop 2 cooked mutton at the sheep
  107. drop 1 xp at the sheep
  108. else:
  109. set {_variable} to {@VariableDrops}
  110. if {_variable} is true:
  111. set block at the sheep to chest
  112. set {_chestloc} to location at the sheep
  113. set {_rawmutton} to a random integer between 1 and 2
  114. if {_rawmutton} is 1:
  115. add 1 raw mutton to the block at {_chestloc}
  116. if {_rawmutton} is 2:
  117. add 2 raw mutton to the block at {_chestloc}
  118. set the block at {_chestloc} to air
  119. else:
  120. drop 2 raw mutton at the sheep
  121. drop 1 xp at the sheep
  122. stop
  123.  
  124. on death of a chicken:
  125. {CutClean} is true
  126. clear drops
  127. set {_variable} to {@VariableDrops}
  128. if {_variable} is true:
  129. set block at the chicken to chest
  130. set {_chestloc} to location at the chicken
  131. set {_cookedchicken} to a random integer between 1 and 2
  132. if {_cookedchicken} is 1:
  133. add 1 cooked chicken to the block at {_chestloc}
  134. if {_cookedchicken} is 2:
  135. add 2 cooked chicken to the block at {_chestloc}
  136. set the block at {_chestloc} to air
  137. else:
  138. drop 2 cooked chicken at the chicken
  139. if {_variable} is true:
  140. set block at the chicken to chest
  141. set {_chestloc} to location at the chicken
  142. set {_feather} to a random integer between 1 and 2
  143. if {_feather} is 1:
  144. add 1 feather to the block at {_chestloc}
  145. if {_feather} is 2:
  146. add 2 feather to the block at {_chestloc}
  147. set the block at {_chestloc} to air
  148. else:
  149. drop 2 feather at the chicken
  150. drop 1 xp at the chicken
  151.  
  152. on death of a spider:
  153. {CutClean} is true
  154. clear drops
  155. set {_variable} to {@VariableDrops}
  156. if {_variable} is true:
  157. set block at the spider to chest
  158. set {_chestloc} to location at the spider
  159. set {_string} to a random integer between 1 and 2
  160. if {_string} is 1:
  161. add 1 string to the block at {_chestloc}
  162. if {_string} is 2:
  163. add 2 string to the block at {_chestloc}
  164. set the block at {_chestloc} to air
  165. else:
  166. drop 2 string at the spider
  167. chance of 30%:
  168. drop 1 spider eye at the spider
  169. drop 4 xp at the spider
Advertisement
Add Comment
Please, Sign In to add comment