Guest User

fdfadsa

a guest
Mar 19th, 2020
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.10 KB | None | 0 0
  1. options:
  2. maxkoxy: 1
  3. maxrefy: 16
  4. maxperly: 4
  5. maxstrzaly: 24
  6. maxsnieg: 8
  7. on load:
  8. set {maxkoxy} to {@maxkoxy}
  9. set {maxrefy} to {@maxrefy}
  10. set {maxperly} to {@maxperly}
  11. set {maxstrzaly} to {@maxstrzaly}
  12. set {maxsnieg} to {@maxsnieg}
  13.  
  14.  
  15. variables:
  16. {ws:koxy::%player%} = 0
  17. {ws:refy::%player%} = 0
  18. {ws:perly::%player%} = 0
  19. {ws:strzaly::%player%} = 0
  20. {ws:snieg::%player%} = 0
  21.  
  22. on any move:
  23. if player has {maxkoxy} + 1 of golden apple:1:
  24. loop 230 times:
  25. if player has {maxkoxy} + 1 of golden apple:1:
  26. remove 1 golden apple:1 from player
  27. add 1 to {ws:koxy::%player%}
  28. add 1 to {_num1}
  29. send "&6Depozyt: &eMiales zbyt duza ilosc koxow przy sobie! &eDo schowka zostalo przeniesione &a%{_num1}% &6koxow"
  30. if player has {maxrefy} + 1 of golden apple:0:
  31. loop 230 times:
  32. if player has {maxrefy} + 1 of golden apple:0:
  33. remove 1 golden apple:0 from player
  34. add 1 to {ws:refy::%player%}
  35. add 1 to {_num2}
  36. send "&6Depozyt: &eMiales zbyt duza ilosc refow przy sobie! &eDo schowka zostalo przeniesione &a%{_num2}% &6refow"
  37. if player has {maxperly} + 1 of ender pearl:
  38. loop 230 times:
  39. if player has {maxperly} + 1 of ender pearl:
  40. remove 1 ender pearl from player
  41. add 1 to {ws:perly::%player%}
  42. add 1 to {_num3}
  43. send "&6Depozyt: &eMiales zbyt duza ilosc perel przy sobie! &eDo schowka zostalo przeniesione &a%{_num3}% &6perel"
  44. if player has {maxstrzaly} + 1 of arrow:
  45. loop 230 times:
  46. if player has {maxstrzaly} + 1 of attow:
  47. remove 1 arrow from player
  48. add 1 to {ws:strzaly::%player%}
  49. add 1 to {_num4}
  50. send "&6Depozyt: &eMiales zbyt duza ilosc strzal przy sobie! &eDo schowka zostalo przeniesione &a{_num4} &6strzal"
  51. if player has {maxsnieg} + 1 of snowball:
  52. loop 230 times:
  53. if player has {maxsnieg} + 1 of snowball:
  54. remove 1 snowball from player
  55. add 1 to {ws:snieg::%player%}
  56. add 1 to {_num5}
  57. send "&6Depozyt: &eMiales zbyt duza ilosc sniegu przy sobie! &eDo schowka zostalo przeniesione &a{_num4} &6sniegu"
  58.  
  59. command /schowek [<text>]:
  60. trigger:
  61. close player's inventory
  62. open chest with 1 rows named "&&6Depozyt: &a%player%" to player
  63. loop 9 times:
  64. set player's current inventory's slot loop-number -1 to blue glass pane of unbreaking 10 named " "
  65. set player's current inventory's slot 1 to snowball named "&6Sniezki" with lore "||&6Zdeponowane: &a%{ws:snieg::%player%}%||&6Limit: &a%{maxsnieg}||||&6Kliknij &aLPM &6Aby wypłacić jedną sztukę||&6Kliknij &aLPM + SHIFT &6Aby wpłacić do limitu|| "
  66. set player's current inventory's slot 2 to arrow named "&6Strzaly" with lore "||&6Zdeponowane: &a%{ws:strzaly::%player%}%||&6Limit: &a%{maxstrzaly}||||&6Kliknij &aLPM &6Aby wypłacić jedną sztukę||&6Kliknij &aLPM + SHIFT &6Aby wpłacić do limitu|| "
  67. set player's current inventory's slot 4 to golden apple:1 named "&6Koxy" with lore "||&6Zdeponowane: &a%{ws:koxy::%player%}%||&6Limit: &a%{maxkoxy}%||||&6Kliknij &aLPM &6Aby wypłacić jedną sztukę||&6Kliknij &aLPM + SHIFT &6Aby wpłacić do limitu|| "
  68. set player's current inventory's slot 5 to golden apple:0 named "&6Refile" with lore "||&6Zdeponowane: &a%{ws:refy::%player%}%||&6Limit: &a%{maxrefy}%||||&6Kliknij &aLPM &6Aby wypłacić jedną sztukę||&6Kliknij &aLPM + SHIFT &6Aby wpłacić do limitu|| "
  69. set player's current inventory's slot 6 to ender pearl named "&6Perly" with lore "||&6Zdeponowane: &a%{ws:perly::%player%}%||&6Limit: &a%{maxperly}%||||&6Kliknij &aLPM &6Aby wypłacić jedną sztukę||&6Kliknij &aLPM + SHIFT &6Aby wpłacić do limitu|| "
  70. on inventory click:
  71. inventory name of player's current inventory = "&6Depozyt: &a%player%":
  72. cancel event
  73. clicked slot = 4:
  74. player has {maxkoxy} of golden apple:1:
  75. send "&4Błąd: &cMasz juz maksymalna ilosc koxow w eq!"
  76. stop
  77. player can hold 1 golden apple:1:
  78. if clicked type is left mouse button or right mouse button:
  79. player don't have {maxkoxy} of golden apple:1:
  80. {ws:koxy::%player%} > 0:
  81. add 1 golden apple:1 to player
  82. remove 1 from {ws:koxy::%player%}
  83. set action bar of player to "&6Schowek: &eWyplaciles jednego koxa!"
  84. else:
  85. send "&4Błąd: &cNie masz tyle koxow w schowku!"
  86. else:
  87. loop {maxkoxy} times:
  88. player don't have {maxkoxy} of golden apple:1:
  89. {ws:koxy::%player%} > 0:
  90. add 1 golden apple:1 to player
  91. remove 1 from {ws:koxy::%player%}
  92. set action bar of player to "&6Schowek: &eKoxy do limitu zostaly wyplacone!"
  93. else:
  94. send "&4Błąd: &cNie masz tyle koxow w schowku!"
  95. else:
  96. send "&&4Błąd: &cNie masz tyle miejsca w eq!"
  97. clicked slot = 5:
  98. player has {maxrefy} of golden apple:0:
  99. send "&4Błąd: &cMasz juz maksymalna ilosc refow w eq!"
  100. stop
  101. player can hold golden apple:0:
  102. if clicked type is left mouse button or right mouse button:
  103. player don't have {maxrefy} of golden apple:0:
  104. {ws:refy::%player%} > 0:
  105. add 1 golden apple:0 to player
  106. remove 1 from {ws:refy::%player%}
  107. set action bar of player to "&6Schowek: &eWyplaciles jednego refa!"
  108. else:
  109. send "&4Błąd: &cNie masz tyle refow w schowku!"
  110. else:
  111. loop {maxrefy} times:
  112. player don't have {maxrefy} of golden apple:0:
  113. {ws:refy::%player%} > 0:
  114. add 1 golden apple:0 to player
  115. remove 1 from {ws:refy::%player%}
  116. set action bar of player to "&6Schowek: &eRefy do limitu zostaly wyplacone!"
  117. else:
  118. send "&4Błąd: &cNie masz tyle refow w schowku!"
  119. else:
  120. send "&4Błąd: &cNie masz tyle miejsca w eq!"
  121. clicked slot = 6:
  122. player has {maxperly} of ender pearl:
  123. send "&4Błąd: &cMasz juz maksymalna ilosc perel w eq!"
  124. stop
  125. player can hold ender pearl:
  126. if clicked type is left mouse button or right mouse button:
  127. player don't have {maxperly} of ender pearl:
  128. {ws:perly::%player%} > 0:
  129. add 1 ender pearl to player
  130. remove 1 from {ws:refy::%player%}
  131. set action bar of player to "&6Schowek: &eWyplaciles jedna perle!"
  132. else:
  133. send "&4Błąd: &cNie masz tyle perel w schowku!"
  134. else:
  135. loop {maxperly} times:
  136. player don't have {maxperly} of ender pearl:
  137. {ws:perly::%player%} > 0:
  138. add 1 ender pearl to player
  139. remove 1 from {ws:perly::%player%}
  140. set action bar of player to "&6Schowek: &ePerly do limitu zostaly wyplacone!"
  141. else:
  142. send "&4Błąd: &cNie masz tyle perel w schowku!"
  143. else:
  144. send "&4Błąd: &cNie masz tyle miejsca w eq!"
  145. clicked slot = 1:
  146. player has {maxsnieg} of snowball:
  147. send "&4Błąd: &cMasz juz maksymalna ilosc sniezek w eq!"
  148. stop
  149. player can hold snowball:
  150. if clicked type is left mouse button or right mouse button:
  151. player don't have {maxsnieg} of snowball:
  152. {ws:snieg::%player%} > 0:
  153. add 1 snowball to player
  154. remove 1 from {ws:snieg::%player%}
  155. set action bar of player to "&6Schowek: &eWyplaciles jedna sniezke!"
  156. else:
  157. send "&4Błąd: &cNie masz tyle sniezek w schowku!"
  158. else:
  159. loop {maxsnieg} tiems:
  160. player don't have {maxsnieg} of snowball:
  161. {ws:snieg::%player%} > 0:
  162. add 1 snowball to player:
  163. remove 1 from {ws:snieg::%player%}
  164. set action bar of player to "&6Schowek: &eSniezki do limitu zostaly wyplacone!"
  165. else:
  166. send "&4Błąd: &cNie masz tyle sniezek w schowku!"
  167. else:
  168. send "&4Błąd: &cNie masz tyle miejsca w eq!"
  169. clicked slot = 2:
  170. player has {maxstrzaly} of arrow:
  171. send "&4Błąd: &cMasz juz maksymalna ilosc strzal w eq!"
  172. stop
  173. player can hold arrow:
  174. if clicked type is left mouse button or right mouse button:
  175. player don't have {maxstrzaly} of arrow:
  176. {ws:strzaly::%player%} > 0:
  177. add 1 arrow to player
  178. remove 1 from {ws:strzaly::%player%}
  179. set action bar of player to "&6Schowek: &eWyplaciles jedna strzale!"
  180. else:
  181. send "&4Błąd: &cNie masz tyle strzal w schowku!"
  182. else:
  183. loop {maxstrzaly} tiems:
  184. player don't have {maxstrzaly} of arrow:
  185. {ws:strzaly::%player%} > 0:
  186. add 1 arrow to player:
  187. remove 1 from {ws:strzaly::%player%}
  188. set action bar of player to "&6Schowek: &eStrzaly do limitu zostaly wyplacone!"
  189. else:
  190. send "&4Błąd: &cNie masz tyle strzal w schowku!"
  191. else:
  192. send "&4Błąd: &cNie masz tyle miejsca w eq!"
  193.  
  194.  
  195. clicked slot = 1 or 2 or 4 or 5 or 6:
  196. set player's current inventory's slot 1 to snowball named "&6Sniezki" with lore "||&6Zdeponowane: &a%{ws:snieg::%player%}%||&6Limit: &a%{maxsnieg}||||&6Kliknij &aLPM &6Aby wypłacić jedną sztukę||&6Kliknij &aLPM + SHIFT &6Aby wpłacić do limitu|| "
  197. set player's current inventory's slot 2 to arrow named "&6Strzaly" with lore "||&6Zdeponowane: &a%{ws:strzaly::%player%}%||&6Limit: &a%{maxstrzaly}||||&6Kliknij &aLPM &6Aby wypłacić jedną sztukę||&6Kliknij &aLPM + SHIFT &6Aby wpłacić do limitu|| "
  198. set player's current inventory's slot 4 to golden apple:1 named "&6Koxy" with lore "||&6Zdeponowane: &a%{ws:koxy::%player%}%||&6Limit: &a%{maxkoxy}%||||&6Kliknij &aLPM &6Aby wypłacić jedną sztukę||&6Kliknij &aLPM + SHIFT &6Aby wpłacić do limitu|| "
  199. set player's current inventory's slot 5 to golden apple:0 named "&6Refile" with lore "||&6Zdeponowane: &a%{ws:refy::%player%}%||&6Limit: &a%{maxrefy}%||||&6Kliknij &aLPM &6Aby wypłacić jedną sztukę||&6Kliknij &aLPM + SHIFT &6Aby wpłacić do limitu|| "
  200. set player's current inventory's slot 6 to ender pearl named "&6Perly" with lore "||&6Zdeponowane: &a%{ws:perly::%player%}%||&6Limit: &a%{maxperly}%||||&6Kliknij &aLPM &6Aby wypłacić jedną sztukę||&6Kliknij &aLPM + SHIFT &6Aby wpłacić do limitu|| "
Advertisement
Add Comment
Please, Sign In to add comment