Guest User

Untitled

a guest
Aug 10th, 2021
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.91 KB | None | 0 0
  1. options:
  2. #Config and Language
  3. inv-name: " &6&l»&e»&7Slots&e«&6&l«"
  4. slot1: &6Slot 1
  5. slot2: &6Slot 2
  6. slot3: &6Slot 3
  7. slot4: &6Slot 4
  8. slot5: &6Slot 5
  9. slot6: &6Slot 6
  10. slot7: &6Slot 7
  11. slot8: &6Slot 8
  12. slot9: &6Slot 9
  13. slot-full: &cThis slot is full!
  14. no-pick: &cYou don't have a pickaxe to move
  15. open-gui-sound: BLOCK_CHEST_OPEN
  16. volume1: 5
  17. pitch1: 1
  18. sel-slot-sound: UI_BUTTON_CLICK
  19. pitch2: 1
  20. volume2: 1
  21. error-sound: BLOCK_ANVIL_LAND
  22. volume3: 1
  23. pitch3: 1
  24.  
  25.  
  26.  
  27.  
  28.  
  29. command /slots:
  30. trigger:
  31. open chest with 1 row named {@inv-name} to player
  32. play sound "{@open-gui-sound}" with volume {@volume1} with pitch {@pitch1} at player for player
  33. set slot 0 of player's current inventory to nether star named "{@slot1}"
  34. set slot 1 of player's current inventory to nether star named "{@slot2}"
  35. set slot 2 of player's current inventory to nether star named "{@slot3}"
  36. set slot 3 of player's current inventory to nether star named "{@slot4}"
  37. set slot 4 of player's current inventory to nether star named "{@slot5}"
  38. set slot 5 of player's current inventory to nether star named "{@slot6}"
  39. set slot 6 of player's current inventory to nether star named "{@slot7}"
  40. set slot 7 of player's current inventory to nether star named "{@slot8}"
  41. set slot 8 of player's current inventory to nether star named "{@slot9}"
  42.  
  43. on inventory click:
  44. if inventory name of current inventory of player is {@inv-name}:
  45. if name of event-item is "{@slot1}":
  46. if slot 0 of player is not air:
  47. if player have diamond pickaxe:
  48. cancel event
  49. send "{@slot-full}" to player
  50. play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
  51. if slot 0 of player is air:
  52. loop all items in player's inventory:
  53. if loop-item is diamond pickaxe:
  54. set {picck} to loop-item
  55. remove {picck} from player's inventory
  56. set slot 0 of player to {picck}
  57. play sound "{@sel-slot-sound}" with volume {@volume2} with pitch {@pitch2} at player for player
  58. cancel event
  59. if player doesn't have diamond pickaxe:
  60. cancel event
  61. send "{@no-pick}" to player
  62. play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
  63.  
  64. if inventory name of current inventory of player is {@inv-name}:
  65. if name of event-item is "{@slot2}":
  66. if slot 1 of player is not air:
  67. if player have diamond pickaxe:
  68. cancel event
  69. send "{@slot-full}" to player
  70. play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
  71. if slot 1 of player is air:
  72. loop all items in player's inventory:
  73. if loop-item is diamond pickaxe:
  74. set {picck} to loop-item
  75. remove {picck} from player's inventory
  76. set slot 1 of player to {picck}
  77. play sound "{@sel-slot-sound}" with volume {@volume2} with pitch {@pitch2} at player for player
  78. cancel event
  79. if player doesn't have diamond pickaxe:
  80. cancel event
  81. send "{@no-pick}" to player
  82. play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
  83.  
  84. if inventory name of current inventory of player is {@inv-name}:
  85. if name of event-item is "{@slot3}":
  86. if slot 2 of player is not air:
  87. if player have diamond pickaxe:
  88. cancel event
  89. send "{@slot-full}" to player
  90. play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
  91. if slot 2 of player is air:
  92. loop all items in player's inventory:
  93. if loop-item is diamond pickaxe:
  94. set {picck} to loop-item
  95. remove {picck} from player's inventory
  96. set slot 2 of player to {picck}
  97. play sound "{@sel-slot-sound}" with volume {@volume2} with pitch {@pitch2} at player for player
  98. cancel event
  99. if player doesn't have diamond pickaxe:
  100. cancel event
  101. send "{@no-pick}" to player
  102. play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
  103.  
  104. if inventory name of current inventory of player is {@inv-name}:
  105. if name of event-item is "{@slot4}":
  106. if slot 3 of player is not air:
  107. if player have diamond pickaxe:
  108. cancel event
  109. send "{@slot-full}" to player
  110. play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
  111. if slot 3 of player is air:
  112. loop all items in player's inventory:
  113. if loop-item is diamond pickaxe:
  114. set {picck} to loop-item
  115. remove {picck} from player's inventory
  116. set slot 3 of player to {picck}
  117. play sound "{@sel-slot-sound}" with volume {@volume2} with pitch {@pitch2} at player for player
  118. cancel event
  119. if player doesn't have diamond pickaxe:
  120. cancel event
  121. send "{@no-pick}" to player
  122. play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
  123.  
  124. if inventory name of current inventory of player is {@inv-name}:
  125. if name of event-item is "{@slot5}":
  126. if slot 4 of player is not air:
  127. if player have diamond pickaxe:
  128. cancel event
  129. send "{@slot-full}" to player
  130. play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
  131. if slot 4 of player is air:
  132. loop all items in player's inventory:
  133. if loop-item is diamond pickaxe:
  134. set {picck} to loop-item
  135. remove {picck} from player's inventory
  136. set slot 4 of player to {picck}
  137. play sound "{@sel-slot-sound}" with volume {@volume2} with pitch {@pitch2} at player for player
  138. cancel event
  139. if player doesn't have diamond pickaxe:
  140. cancel event
  141. send "{@no-pick}" to player
  142. play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
  143.  
  144.  
  145. if inventory name of current inventory of player is {@inv-name}:
  146. if name of event-item is "{@slot6}":
  147. if slot 5 of player is not air:
  148. if player have diamond pickaxe:
  149. cancel event
  150. send "{@slot-full}" to player
  151. play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
  152. if slot 5 of player is air:
  153. loop all items in player's inventory:
  154. if loop-item is diamond pickaxe:
  155. set {picck} to loop-item
  156. remove {picck} from player's inventory
  157. set slot 5 of player to {picck}
  158. play sound "{@sel-slot-sound}" with volume {@volume2} with pitch {@pitch2} at player for player
  159. cancel event
  160. if player doesn't have diamond pickaxe:
  161. cancel event
  162. send "{@no-pick}" to player
  163. play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
  164.  
  165. if inventory name of current inventory of player is {@inv-name}:
  166. if name of event-item is "{@slot7}":
  167. if slot 6 of player is not air:
  168. if player have diamond pickaxe:
  169. cancel event
  170. send "{@slot-full}" to player
  171. play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
  172. if slot 6 of player is air:
  173. loop all items in player's inventory:
  174. if loop-item is diamond pickaxe:
  175. set {picck} to loop-item
  176. remove {picck} from player's inventory
  177. set slot 6 of player to {picck}
  178. play sound "{@sel-slot-sound}" with volume {@volume2} with pitch {@pitch2} at player for player
  179. cancel event
  180. if player doesn't have diamond pickaxe:
  181. cancel event
  182. send "{@no-pick}" to player
  183. play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
  184.  
  185. if inventory name of current inventory of player is {@inv-name}:
  186. if name of event-item is "{@slot8}":
  187. if slot 7 of player is not air:
  188. if player have diamond pickaxe:
  189. cancel event
  190. send "{@slot-full}" to player
  191. play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
  192. if slot 7 of player is air:
  193. loop all items in player's inventory:
  194. if loop-item is diamond pickaxe:
  195. set {picck} to loop-item
  196. remove {picck} from player's inventory
  197. set slot 7 of player to {picck}
  198. play sound "{@sel-slot-sound}" with volume {@volume2} with pitch {@pitch2} at player for player
  199. cancel event
  200. if player doesn't have diamond pickaxe:
  201. cancel event
  202. send "{@no-pick}" to player
  203. play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
  204.  
  205.  
  206. if inventory name of current inventory of player is {@inv-name}:
  207. if name of event-item is "{@slot9}":
  208. if slot 8 of player is not air:
  209. if player have diamond pickaxe:
  210. cancel event
  211. send "{@slot-full}" to player
  212. play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
  213. if slot 8 of player is air:
  214. loop all items in player's inventory:
  215. if loop-item is diamond pickaxe:
  216. set {picck} to loop-item
  217. remove {picck} from player's inventory
  218. set slot 8 of player to {picck}
  219. play sound "{@sel-slot-sound}" with volume {@volume2} with pitch {@pitch2} at player for player
  220. cancel event
  221. if player doesn't have diamond pickaxe:
  222. cancel event
  223. send "{@no-pick}" to player
  224. play sound "{@error-sound}" with volume {@volume3} with pitch {@pitch3} at player for player
Add Comment
Please, Sign In to add comment