Advertisement
midorimusi1111

storage

Aug 8th, 2022 (edited)
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.15 KB | None | 0 0
  1. #command /eci:
  2. # permission: sk.admin
  3. # trigger:
  4. # set {ecitem} to player's tool
  5. # if player's tool is air:
  6. # delete {ecitem}
  7. on join:
  8. set player's boots to {ecitem}
  9. on inventory click:
  10. clicked slot is 36:
  11. if name of event-item is "&5エンダーチェスト":
  12. cancel event
  13. set player's boots to {ecitem}
  14. close player's inventory
  15. open chest with 3 rows named "Enderchest" to player
  16. loop 27 times:
  17. set slot (loop-number -1) of player's current inventory to purple glass pane named "&a"
  18. set slot 0 of player's current inventory to ender chest named "&5エンダー&5チェスト"
  19. set slot 8 of player's current inventory to empty bucket named "&cゴミ箱"
  20. set slot 9 of player's current inventory to chest named "&6ストレージ1"
  21. set slot 10 of player's current inventory to chest named "&6ストレージ2"
  22. set slot 11 of player's current inventory to chest named "&6ストレージ3"
  23. set slot 12 of player's current inventory to chest named "&6ストレージ4"
  24. set slot 13 of player's current inventory to chest named "&6ストレージ5"
  25. set slot 14 of player's current inventory to chest named "&6ストレージ6"
  26. set slot 15 of player's current inventory to chest named "&6ストレージ7"
  27. set slot 16 of player's current inventory to chest named "&6ストレージ8"
  28. set slot 17 of player's current inventory to chest named "&6ストレージ9"
  29.  
  30. on right click on ender chest:
  31. cancel event
  32. close player's inventory
  33. open chest with 3 rows named "Enderchest" to player
  34. loop 27 times:
  35. set slot (loop-number -1) of player's current inventory to purple glass pane named "&a"
  36. set slot 0 of player's current inventory to ender chest named "&5エンダー&5チェスト"
  37. set slot 8 of player's current inventory to empty bucket named "&cゴミ箱"
  38. set slot 9 of player's current inventory to chest named "&6ストレージ1"
  39. set slot 10 of player's current inventory to chest named "&6ストレージ2"
  40. set slot 11 of player's current inventory to chest named "&6ストレージ3"
  41. set slot 12 of player's current inventory to chest named "&6ストレージ4"
  42. set slot 13 of player's current inventory to chest named "&6ストレージ5"
  43. set slot 14 of player's current inventory to chest named "&6ストレージ6"
  44. set slot 15 of player's current inventory to chest named "&6ストレージ7"
  45. set slot 16 of player's current inventory to chest named "&6ストレージ8"
  46. set slot 17 of player's current inventory to chest named "&6ストレージ9"
  47. on inventory click:
  48. if inventory name of player's current inventory is "Enderchest":
  49. cancel event
  50. if name of event-item is "&5エンダー&5チェスト":
  51. close player's inventory
  52. open the player's ender chest to the player
  53. if name of event-item is "&cゴミ箱":
  54. close player's inventory
  55. open chest with 6 rows named "ゴミ箱(アイテムは補填されません)" to player
  56. if name of event-item is "&6ストレージ1":
  57. close player's inventory
  58. open chest with 6 rows named "Storage1" to player
  59. set slot 0 of player's current inventory to {storage1%player's uuid%.0}
  60. loop 53 times:
  61. set slot loop-number of player's current inventory to {storage1%player's uuid%.%loop-number%}
  62. if name of event-item is "&6ストレージ2":
  63. close player's inventory
  64. open chest with 6 rows named "Storage2" to player
  65. set slot 0 of player's current inventory to {storage2%player's uuid%.0}
  66. loop 53 times:
  67. set slot loop-number of player's current inventory to {storage2%player's uuid%.%loop-number%}
  68. if name of event-item is "&6ストレージ3":
  69. close player's inventory
  70. open chest with 6 rows named "Storage3" to player
  71. set slot 0 of player's current inventory to {storage3%player's uuid%.0}
  72. loop 53 times:
  73. set slot loop-number of player's current inventory to {storage3%player's uuid%.%loop-number%}
  74. if name of event-item is "&6ストレージ4":
  75. close player's inventory
  76. open chest with 6 rows named "Storage4" to player
  77. set slot 0 of player's current inventory to {storage4%player's uuid%.0}
  78. loop 53 times:
  79. set slot loop-number of player's current inventory to {storage4%player's uuid%.%loop-number%}
  80. if name of event-item is "&6ストレージ5":
  81. close player's inventory
  82. open chest with 6 rows named "Storage5" to player
  83. set slot 0 of player's current inventory to {storage5%player's uuid%.0}
  84. loop 53 times:
  85. set slot loop-number of player's current inventory to {storage5%player's uuid%.%loop-number%}
  86. if name of event-item is "&6ストレージ6":
  87. close player's inventory
  88. open chest with 6 rows named "Storage6" to player
  89. set slot 0 of player's current inventory to {storage6%player's uuid%.0}
  90. loop 53 times:
  91. set slot loop-number of player's current inventory to {storage6%player's uuid%.%loop-number%}
  92. if name of event-item is "&6ストレージ7":
  93. close player's inventory
  94. open chest with 6 rows named "Storage7" to player
  95. set slot 0 of player's current inventory to {storage7%player's uuid%.0}
  96. loop 53 times:
  97. set slot loop-number of player's current inventory to {storage7%player's uuid%.%loop-number%}
  98. if name of event-item is "&6ストレージ8":
  99. close player's inventory
  100. open chest with 6 rows named "Storage8" to player
  101. set slot 0 of player's current inventory to {storage8%player's uuid%.0}
  102. loop 53 times:
  103. set slot loop-number of player's current inventory to {storage8%player's uuid%.%loop-number%}
  104. if name of event-item is "&6ストレージ9":
  105. close player's inventory
  106. open chest with 6 rows named "Storage9" to player
  107. set slot 0 of player's current inventory to {storage9%player's uuid%.0}
  108. loop 53 times:
  109. set slot loop-number of player's current inventory to {storage9%player's uuid%.%loop-number%}
  110. on inventory click:
  111. wait a tick
  112. if inventory name of player's current inventory is "Storage1":
  113. set {storage1%player's uuid%.0} to slot 0 of current inventory
  114. loop 53 times:
  115. set {storage1%player's uuid%.%loop-number%} to slot loop-number of current inventory
  116. if inventory name of player's current inventory is "Storage2":
  117. set {storage2%player's uuid%.0} to slot 0 of current inventory
  118. loop 53 times:
  119. set {storage2%player's uuid%.%loop-number%} to slot loop-number of current inventory
  120. if inventory name of player's current inventory is "Storage3":
  121. set {storage3%player's uuid%.0} to slot 0 of current inventory
  122. loop 53 times:
  123. set {storage3%player's uuid%.%loop-number%} to slot loop-number of player's current inventory
  124. if inventory name of player's current inventory is "Storage4":
  125. set {storage4%player's uuid%.0} to slot 0 of current inventory
  126. loop 53 times:
  127. set {storage4%player's uuid%.%loop-number%} to slot loop-number of player's current inventory
  128. if inventory name of player's current inventory is "Storage5":
  129. set {storage5%player's uuid%.0} to slot 0 of current inventory
  130. loop 53 times:
  131. set {storage5%player's uuid%.%loop-number%} to slot loop-number of player's current inventory
  132. if inventory name of player's current inventory is "Storage6":
  133. set {storage6%player's uuid%.0} to slot 0 of current inventory
  134. loop 53 times:
  135. set {storage6%player's uuid%.%loop-number%} to slot loop-number of player's current inventory
  136. if inventory name of player's current inventory is "Storage7":
  137. set {storage7%player's uuid%.0} to slot 0 of current inventory
  138. loop 53 times:
  139. set {storage7%player's uuid%.%loop-number%} to slot loop-number of player's current inventory
  140. if inventory name of player's current inventory is "Storage8":
  141. set {storage8%player's uuid%.0} to slot 0 of current inventory
  142. loop 53 times:
  143. set {storage8%player's uuid%.%loop-number%} to slot loop-number of player's current inventory
  144. if inventory name of player's current inventory is "Storage9":
  145. set {storage9%player's uuid%.0} to slot 0 of current inventory
  146. loop 53 times:
  147. set {storage9%player's uuid%.%loop-number%} to slot loop-number of player's current inventory
  148. on inventory close:
  149. if inventory name of player's current inventory is "Storage1":
  150. set {storage1%player's uuid%.0} to slot 0 of current inventory
  151. loop 53 times:
  152. set {storage1%player's uuid%.%loop-number%} to slot loop-number of current inventory
  153. if inventory name of player's current inventory is "Storage2":
  154. set {storage2%player's uuid%.0} to slot 0 of current inventory
  155. loop 53 times:
  156. set {storage2%player's uuid%.%loop-number%} to slot loop-number of current inventory
  157. if inventory name of player's current inventory is "Storage3":
  158. set {storage3%player's uuid%.0} to slot 0 of current inventory
  159. loop 53 times:
  160. set {storage3%player's uuid%.%loop-number%} to slot loop-number of player's current inventory
  161. if inventory name of player's current inventory is "Storage4":
  162. set {storage4%player's uuid%.0} to slot 0 of current inventory
  163. loop 53 times:
  164. set {storage4%player's uuid%.%loop-number%} to slot loop-number of player's current inventory
  165. if inventory name of player's current inventory is "Storage5":
  166. set {storage5%player's uuid%.0} to slot 0 of current inventory
  167. loop 53 times:
  168. set {storage5%player's uuid%.%loop-number%} to slot loop-number of player's current inventory
  169. if inventory name of player's current inventory is "Storage6":
  170. set {storage6%player's uuid%.0} to slot 0 of current inventory
  171. loop 53 times:
  172. set {storage6%player's uuid%.%loop-number%} to slot loop-number of player's current inventory
  173. if inventory name of player's current inventory is "Storage7":
  174. set {storage7%player's uuid%.0} to slot 0 of current inventory
  175. loop 53 times:
  176. set {storage7%player's uuid%.%loop-number%} to slot loop-number of player's current inventory
  177. if inventory name of player's current inventory is "Storage8":
  178. set {storage8%player's uuid%.0} to slot 0 of current inventory
  179. loop 53 times:
  180. set {storage8%player's uuid%.%loop-number%} to slot loop-number of player's current inventory
  181. if inventory name of player's current inventory is "Storage9":
  182. set {storage9%player's uuid%.0} to slot 0 of current inventory
  183. loop 53 times:
  184. set {storage9%player's uuid%.%loop-number%} to slot loop-number of player's current inventory
  185.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement