Advertisement
Guest User

Untitled

a guest
Dec 11th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.62 KB | None | 0 0
  1.  
  2. function RandomChest(i:integer, t:text):
  3. set {_x} to 1
  4. loop {chest.amount.%{_i}%} times:
  5. add 18 planks to {_stuff.list::*}
  6. chance of 50%:
  7. add 1 emerald to {_stuff.list::*}
  8. chance of 30%:
  9. add 1 emerald to {_stuff.list::*}
  10. chance of 20%:
  11. add 1 diamond to {_stuff.list::*}
  12. chance of 100%:
  13. add 1 experience_bottle to {_stuff.list::*}
  14. chance of 70%:
  15. add 4 snowballs to {_stuff.list::*}
  16. chance of 25%:
  17. add 1 ender pearl to {_stuff.list::*}
  18. chance of 45%:
  19. set {_item} to iron sword
  20. add {_item} to {_stuff.list::*}
  21. chance of 30%:
  22. add 1 golden apple to {_stuff.list::*}
  23. chance of 30%:
  24. set {_rand} to a random integer between 20 and 150
  25. set {_item} to golden axe of sharpness 1
  26. set durability of {_item} to {_rand}
  27. add {_item} to {_stuff.list::*}
  28. chance of 20%:
  29. add 1 diamond chestplate to {_stuff.list::*}
  30. chance of 35%:
  31. add 1 iron chestplate to {_stuff.list::*}
  32. chance of 35%:
  33. add 1 iron chestplate of protection 1 to {_stuff.list::*}
  34. chance of 35%:
  35. add 1 iron leggings to {_stuff.list::*}
  36. chance of 50%:
  37. add 1 diamond boots to {_stuff.list::*}
  38. chance of 20%:
  39. add 1 tnt to {_stuff.list::*}
  40. chance of 40%:
  41. add 25 planks:0 to {_stuff.list::*}
  42. chance of 50%:
  43. add 6 snowballs to {_stuff.list::*}
  44. chance of 40%:
  45. add experience_bottle to {_stuff.list::*}
  46. chance of 80%:
  47. add experience_bottle to {_stuff.list::*}
  48. chance of 75%:
  49. add 2 iron ingot to {_stuff.list::*}
  50. loop 2 times:
  51. chance of 50%:
  52. add cobweb to {_stuff.list::*}
  53. chance of 15%:
  54. add fire charge to {_stuff.list::*}
  55. chance of 30%:
  56. set {_item} to stone sword of sharpness 1
  57. add {_item} to {_stuff.list::*}
  58. loop {_stuff.list::*}:
  59. set {_random} to a random integer from 0 to 27
  60. while slot {_random} of block at {chest.%{_x}%.%{_i}%} is empty:
  61. set {_random} to a random integer from 0 to 27
  62. add loop-value-2 to slot {_random} of block at {chest.%{_x}%.%{_i}%}
  63. add 1 to {_x}
  64. delete {_stuff.list::*}
  65.  
  66.  
  67. function RandomMidChest(i:integer, t:text):
  68. set {_x} to 1
  69. loop {chest.amount.%{_i}%} times:
  70. add 13 planks:0 to {_stuff.list::*}
  71. chance of 85%:
  72. add 1 emerald to {_stuff.list::*}
  73. chance of 50%:
  74. add 1 emerald to {_stuff.list::*}
  75. chance of 35%:
  76. add 1 diamond to {_stuff.list::*}
  77. chance of 100%:
  78. add 1 experience_bottle to {_stuff.list::*}
  79. chance of 70%:
  80. add 4 snowballs to {_stuff.list::*}
  81. chance of 40%:
  82. add 1 ender pearl to {_stuff.list::*}
  83. chance of 30%:
  84. set {_item} to iron sword of sharpness 2 and fire aspect 1
  85. add {_item} to {_stuff.list::*}
  86. chance of 40%:
  87. add 1 golden apple to {_stuff.list::*}
  88. chance of 35%:
  89. add 1 diamond chestplate to {_stuff.list::*}
  90. chance of 45%:
  91. add 1 diamond helmet to {_stuff.list::*}
  92. chance of 35%:
  93. add 1 iron boots of protection 1 to {_stuff.list::*}
  94. chance of 25%:
  95. add 1 iron boots of protection 2 to {_stuff.list::*}
  96. chance of 30%:
  97. add 1 diamond helmet of protection 1 to {_stuff.list::*}
  98. chance of 25%:
  99. add 1 diamond sword of sharpness 2 to {_stuff.list::*}
  100. chance of 45%:
  101. add 1 stone sword of sharpness 2 to {_stuff.list::*}
  102. chance of 25%:
  103. add 1 iron leggings of protection 3 to {_stuff.list::*}
  104. chance of 20%:
  105. add tnt to {_stuff.list::*}
  106. chance of 40%:
  107. add 12 planks:0 to {_stuff.list::*}
  108. chance of 25%:
  109. add 37 planks:0 to {_stuff.list::*}
  110. chance of 50%:
  111. add 6 snowballs to {_stuff.list::*}
  112. chance of 80%:
  113. add 1 experience_bottle to {_stuff.list::*}
  114. chance of 55%:
  115. add 2 iron ingot to {_stuff.list::*}
  116. loop 2 times:
  117. chance of 35%:
  118. add cobweb to {_stuff.list::*}
  119. chance of 20%:
  120. add 1 fire charge to {_stuff.list::*}
  121. chance of 30%:
  122. set {_item} to stone sword of knockback 2
  123. add {_item} to {_stuff.list::*}
  124. loop {_stuff.list::*}:
  125. set {_random} to a random integer from 0 to 27
  126. while slot {_random} of block at {midchest.%{_x}%.%{_i}%} is empty:
  127. set {_random} to a random integer from 0 to 27
  128. add loop-value-2 to slot {_random} of block at {midchest.%{_x}%.%{_i}%}
  129. add 1 to {_x}
  130. delete {_stuff.list::*}
  131.  
  132. function RandomChestLittleIslands(i:integer, t:text):
  133. set {_x} to 1
  134. loop {chest.amount.little.islands.%{_i}%} times:
  135. add 27 planks:0 to {_stuff.list::*}
  136. chance of 80%:
  137. add 2 experience_bottle to {_stuff.list::*}
  138. set {_nb} to a random integer between 1 and 4
  139. if {_nb} is 1:
  140. add 34 planks:0 to {_stuff.list::*}
  141. else if {_nb} is 2:
  142. add 39 planks:0 to {_stuff.list::*}
  143. else if {_nb} is 3:
  144. add 43 planks:0 to {_stuff.list::*}
  145. else if {_nb} is 4:
  146. add 52 planks:0 to {_stuff.list::*}
  147. chance of 80%:
  148. add experience_bottle to {_stuff.list::*}
  149. chance of 65%:
  150. add experience_bottle to {_stuff.list::*}
  151. chance of 50%:
  152. add experience_bottle to {_stuff.list::*}
  153. chance of 35%:
  154. add experience_bottle to {_stuff.list::*}
  155. chance of 40%:
  156. set {_item} to stone sword
  157. add {_item} to {_stuff.list::*}
  158. chance of 35%:
  159. set {_item} to stone axe
  160. add {_item} to {_stuff.list::*}
  161. chance of 35%:
  162. set {_item} to iron pickaxe
  163. add {_item} to {_stuff.list::*}
  164. chance of 50%:
  165. set {_item} to wooden sword
  166. add {_item} to {_stuff.list::*}
  167. chance of 30%:
  168. set {_item} to iron sword
  169. add {_item} to {_stuff.list::*}
  170. chance of 20%:
  171. set {_rand} to a random integer between 40 and 200
  172. set {_item} to golden sword of sharpness 1
  173. set durability of {_item} to {_rand}
  174. add {_item} to {_stuff.list::*}
  175. chance of 20%:
  176. set {_rand} to a random integer between 50 and 150
  177. set {_item} to iron helmet
  178. set durability of {_item} to {_rand}
  179. add {_item} to {_stuff.list::*}
  180. chance of 45%:
  181. set {_item} to iron helmet
  182. add {_item} to {_stuff.list::*}
  183. chance of 35%:
  184. set {_item} to golden helmet
  185. add {_item} to {_stuff.list::*}
  186. chance of 70%:
  187. add {arrow.instant_damage} to {_stuff.list::*}
  188. chance of 55%:
  189. add 3 tnt to {_stuff.list::*}
  190. chance of 15%:
  191. add iron sword to {_stuff.list::*}
  192. chance of 15%:
  193. add iron pickage to {_stuff.list::*}
  194. chance of 15%:
  195. add stone pickaxe to {_stuff.list::*}
  196. chance of 20%:
  197. add 1 fishing rod to {_stuff.list::*}
  198. chance of 10%:
  199. add {book.protection2} to {_stuff.list::*}
  200. set {_s::*} to {slots::*}
  201. loop {_stuff.list::*}:
  202. set {_random} to a random integer from 0 to 27
  203. while slot {_random} of block at {chest.little.islands.%{_x}%.%{_i}%} is empty:
  204. set {_random} to a random integer from 0 to 27
  205. add loop-value-2 to slot {_random} of block at {chest.little.islands.%{_x}%.%{_i}%}
  206. add 1 to {_x}
  207. delete {_stuff.list::*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement