Oxalist

Enderchests - Aurorionz

Nov 2nd, 2018
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.88 KB | None | 0 0
  1. #
  2. # This skript was made/skripted by Aurorionz
  3. # You can change whatever you like, but do not remove my skull from the GUI
  4. #
  5.  
  6. on right click on ender chest:
  7. cancel event
  8. play "BLOCK_ENDERCHEST_OPEN" to player at volume 0.3
  9. open virtual chest inventory with size 3 named "Vaults" to player
  10. if player has permission "vaults.1":
  11. format a gui slot 10 of player with ender_chest named "&b&lVault &b##1 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest1(player)
  12. if player does not have permission "vaults.1":
  13. format a gui slot 10 of player with ender_chest named "&b&lVault &b##1 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  14. if player has permission "vaults.2":
  15. format a gui slot 11 of player with ender_chest named "&b&lVault &b##2 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest2(player)
  16. if player does not have permission "vaults.2":
  17. format a gui slot 11 of player with ender_chest named "&b&lVault &b##2 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  18. if player has permission "vaults.3":
  19. format a gui slot 12 of player with ender_chest named "&b&lVault &b##3 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest3(player)
  20. if player does not have permission "vaults.3":
  21. format a gui slot 12 of player with ender_chest named "&b&lVault &b##3 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  22. if player has permission "vaults.4":
  23. format a gui slot 13 of player with ender_chest named "&b&lVault &b##4 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest4(player)
  24. if player does not have permission "vaults.4":
  25. format a gui slot 13 of player with ender_chest named "&b&lVault &b##4 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  26. if player has permission "vaults.5":
  27. format a gui slot 14 of player with ender_chest named "&b&lVault &b##5 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest5(player)
  28. if player does not have permission "vaults.5":
  29. format a gui slot 14 of player with ender_chest named "&b&lVault &b##5 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  30. if player has permission "vaults.6":
  31. format a gui slot 15 of player with ender_chest named "&b&lVault &b##6 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest6(player)
  32. if player does not have permission "vaults.6":
  33. format a gui slot 15 of player with ender_chest named "&b&lVault &b##6 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  34. if player has permission "vaults.7":
  35. format a gui slot 16 of player with ender_chest named "&b&lVault &b##7 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest7(player)
  36. if player does not have permission "vaults.7":
  37. format a gui slot 16 of player with ender_chest named "&b&lVault &b##7 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  38. set {_skull} to "Aurorionz" parsed as offline player
  39. format a gui slot 26 of player with {_skull}'s skull named "&bMade by: &fAurorionz" to do nothing
  40.  
  41. function enderchest1(p: player):
  42. open virtual chest inventory with size 4 named "Vault ##1" to {_p}
  43. format a gui slot 27 of {_p} with black glass named "&7" to do nothing
  44. format a gui slot 28 of {_p} with black glass named "&7" to do nothing
  45. format a gui slot 29 of {_p} with black glass named "&7" to do nothing
  46. format a gui slot 30 of {_p} with black glass named "&7" to do nothing
  47. format a gui slot 31 of {_p} with black glass named "&7" to do nothing
  48. format a gui slot 32 of {_p} with black glass named "&7" to do nothing
  49. format a gui slot 33 of {_p} with black glass named "&7" to do nothing
  50. format a gui slot 34 of {_p} with black glass named "&7" to do nothing
  51. format a gui slot 35 of {_p} with black glass named "&7" to do nothing
  52. wait 1 tick
  53. set {_num} to 0
  54. loop {vaults::item::1::%{_p}%::*}:
  55. set slot {_num} of {_p}'s current inventory to loop-value
  56. add 1 to {_num}
  57.  
  58. function enderchest2(p: player):
  59. open virtual chest inventory with size 4 named "Vault ##2" to {_p}
  60. format a gui slot 27 of {_p} with black glass named "&7" to do nothing
  61. format a gui slot 28 of {_p} with black glass named "&7" to do nothing
  62. format a gui slot 29 of {_p} with black glass named "&7" to do nothing
  63. format a gui slot 30 of {_p} with black glass named "&7" to do nothing
  64. format a gui slot 31 of {_p} with black glass named "&7" to do nothing
  65. format a gui slot 32 of {_p} with black glass named "&7" to do nothing
  66. format a gui slot 33 of {_p} with black glass named "&7" to do nothing
  67. format a gui slot 34 of {_p} with black glass named "&7" to do nothing
  68. format a gui slot 35 of {_p} with black glass named "&7" to do nothing
  69. wait 1 tick
  70. set {_num} to 0
  71. loop {vaults::item::2::%{_p}%::*}:
  72. set slot {_num} of {_p}'s current inventory to loop-value
  73. add 1 to {_num}
  74.  
  75. function enderchest3(p: player):
  76. open virtual chest inventory with size 4 named "Vault ##3" to {_p}
  77. format a gui slot 27 of {_p} with black glass named "&7" to do nothing
  78. format a gui slot 28 of {_p} with black glass named "&7" to do nothing
  79. format a gui slot 29 of {_p} with black glass named "&7" to do nothing
  80. format a gui slot 30 of {_p} with black glass named "&7" to do nothing
  81. format a gui slot 31 of {_p} with black glass named "&7" to do nothing
  82. format a gui slot 32 of {_p} with black glass named "&7" to do nothing
  83. format a gui slot 33 of {_p} with black glass named "&7" to do nothing
  84. format a gui slot 34 of {_p} with black glass named "&7" to do nothing
  85. format a gui slot 35 of {_p} with black glass named "&7" to do nothing
  86. wait 1 tick
  87. set {_num} to 0
  88. loop {vaults::item::3::%{_p}%::*}:
  89. set slot {_num} of {_p}'s current inventory to loop-value
  90. add 1 to {_num}
  91. function enderchest4(p: player):
  92. open virtual chest inventory with size 4 named "Vault ##4" to {_p}
  93. format a gui slot 27 of {_p} with black glass named "&7" to do nothing
  94. format a gui slot 28 of {_p} with black glass named "&7" to do nothing
  95. format a gui slot 29 of {_p} with black glass named "&7" to do nothing
  96. format a gui slot 30 of {_p} with black glass named "&7" to do nothing
  97. format a gui slot 31 of {_p} with black glass named "&7" to do nothing
  98. format a gui slot 32 of {_p} with black glass named "&7" to do nothing
  99. format a gui slot 33 of {_p} with black glass named "&7" to do nothing
  100. format a gui slot 34 of {_p} with black glass named "&7" to do nothing
  101. format a gui slot 35 of {_p} with black glass named "&7" to do nothing
  102. wait 1 tick
  103. set {_num} to 0
  104. loop {vaults::item::4::%{_p}%::*}:
  105. set slot {_num} of {_p}'s current inventory to loop-value
  106. add 1 to {_num}
  107. function enderchest5(p: player):
  108. open virtual chest inventory with size 4 named "Vault ##5" to {_p}
  109. format a gui slot 27 of {_p} with black glass named "&7" to do nothing
  110. format a gui slot 28 of {_p} with black glass named "&7" to do nothing
  111. format a gui slot 29 of {_p} with black glass named "&7" to do nothing
  112. format a gui slot 30 of {_p} with black glass named "&7" to do nothing
  113. format a gui slot 31 of {_p} with black glass named "&7" to do nothing
  114. format a gui slot 32 of {_p} with black glass named "&7" to do nothing
  115. format a gui slot 33 of {_p} with black glass named "&7" to do nothing
  116. format a gui slot 34 of {_p} with black glass named "&7" to do nothing
  117. format a gui slot 35 of {_p} with black glass named "&7" to do nothing
  118. wait 1 tick
  119. set {_num} to 0
  120. loop {vaults::item::5::%{_p}%::*}:
  121. set slot {_num} of {_p}'s current inventory to loop-value
  122. add 1 to {_num}
  123. function enderchest6(p: player):
  124. open virtual chest inventory with size 4 named "Vault ##6" to {_p}
  125. format a gui slot 27 of {_p} with black glass named "&7" to do nothing
  126. format a gui slot 28 of {_p} with black glass named "&7" to do nothing
  127. format a gui slot 29 of {_p} with black glass named "&7" to do nothing
  128. format a gui slot 30 of {_p} with black glass named "&7" to do nothing
  129. format a gui slot 31 of {_p} with black glass named "&7" to do nothing
  130. format a gui slot 32 of {_p} with black glass named "&7" to do nothing
  131. format a gui slot 33 of {_p} with black glass named "&7" to do nothing
  132. format a gui slot 34 of {_p} with black glass named "&7" to do nothing
  133. format a gui slot 35 of {_p} with black glass named "&7" to do nothing
  134. wait 1 tick
  135. set {_num} to 0
  136. loop {vaults::item::6::%{_p}%::*}:
  137. set slot {_num} of {_p}'s current inventory to loop-value
  138. add 1 to {_num}
  139. function enderchest7(p: player):
  140. open virtual chest inventory with size 4 named "Vault ##7" to {_p}
  141. format a gui slot 27 of {_p} with black glass named "&7" to do nothing
  142. format a gui slot 28 of {_p} with black glass named "&7" to do nothing
  143. format a gui slot 29 of {_p} with black glass named "&7" to do nothing
  144. format a gui slot 30 of {_p} with black glass named "&7" to do nothing
  145. format a gui slot 31 of {_p} with black glass named "&7" to do nothing
  146. format a gui slot 32 of {_p} with black glass named "&7" to do nothing
  147. format a gui slot 33 of {_p} with black glass named "&7" to do nothing
  148. format a gui slot 34 of {_p} with black glass named "&7" to do nothing
  149. format a gui slot 35 of {_p} with black glass named "&7" to do nothing
  150. wait 1 tick
  151. set {_num} to 0
  152. loop {vaults::item::7::%{_p}%::*}:
  153. set slot {_num} of {_p}'s current inventory to loop-value
  154. add 1 to {_num}
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161. on inventory close:
  162. if inventory name of player's current inventory contains "Vaults":
  163. play "BLOCK_ENDERCHEST_CLOSE" to player at volume 0.3
  164. if inventory name of player's current inventory contains "Vault ##1":
  165. loop 27 times:
  166. set {vaults::item::1::%player%::%loop-number - 1%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player
  167. wait 2 ticks
  168. open virtual chest inventory with size 3 named "Vaults" to player
  169. if player has permission "vaults.1":
  170. format a gui slot 10 of player with ender_chest named "&b&lVault &b##1 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest1(player)
  171. if player does not have permission "vaults.1":
  172. format a gui slot 10 of player with ender_chest named "&b&lVault &b##1 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  173. if player has permission "vaults.2":
  174. format a gui slot 11 of player with ender_chest named "&b&lVault &b##2 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest2(player)
  175. if player does not have permission "vaults.2":
  176. format a gui slot 11 of player with ender_chest named "&b&lVault &b##2 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  177. if player has permission "vaults.3":
  178. format a gui slot 12 of player with ender_chest named "&b&lVault &b##3 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest3(player)
  179. if player does not have permission "vaults.3":
  180. format a gui slot 12 of player with ender_chest named "&b&lVault &b##3 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  181. if player has permission "vaults.4":
  182. format a gui slot 13 of player with ender_chest named "&b&lVault &b##4 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest4(player)
  183. if player does not have permission "vaults.4":
  184. format a gui slot 13 of player with ender_chest named "&b&lVault &b##4 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  185. if player has permission "vaults.5":
  186. format a gui slot 14 of player with ender_chest named "&b&lVault &b##5 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest5(player)
  187. if player does not have permission "vaults.5":
  188. format a gui slot 14 of player with ender_chest named "&b&lVault &b##5 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  189. if player has permission "vaults.6":
  190. format a gui slot 15 of player with ender_chest named "&b&lVault &b##6 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest6(player)
  191. if player does not have permission "vaults.6":
  192. format a gui slot 15 of player with ender_chest named "&b&lVault &b##6 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  193. if player has permission "vaults.7":
  194. format a gui slot 16 of player with ender_chest named "&b&lVault &b##7 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest7(player)
  195. if player does not have permission "vaults.7":
  196. format a gui slot 16 of player with ender_chest named "&b&lVault &b##7 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  197. if inventory name of player's current inventory contains "Vault ##2":
  198. loop 27 times:
  199. set {vaults::item::2::%player%::%loop-number - 1%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player
  200. wait 2 ticks
  201. open virtual chest inventory with size 3 named "Vaults" to player
  202. if player has permission "vaults.1":
  203. format a gui slot 10 of player with ender_chest named "&b&lVault &b##1 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest1(player)
  204. if player does not have permission "vaults.1":
  205. format a gui slot 10 of player with ender_chest named "&b&lVault &b##1 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  206. if player has permission "vaults.2":
  207. format a gui slot 11 of player with ender_chest named "&b&lVault &b##2 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest2(player)
  208. if player does not have permission "vaults.2":
  209. format a gui slot 11 of player with ender_chest named "&b&lVault &b##2 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  210. if player has permission "vaults.3":
  211. format a gui slot 12 of player with ender_chest named "&b&lVault &b##3 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest3(player)
  212. if player does not have permission "vaults.3":
  213. format a gui slot 12 of player with ender_chest named "&b&lVault &b##3 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  214. if player has permission "vaults.4":
  215. format a gui slot 13 of player with ender_chest named "&b&lVault &b##4 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest4(player)
  216. if player does not have permission "vaults.4":
  217. format a gui slot 13 of player with ender_chest named "&b&lVault &b##4 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  218. if player has permission "vaults.5":
  219. format a gui slot 14 of player with ender_chest named "&b&lVault &b##5 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest5(player)
  220. if player does not have permission "vaults.5":
  221. format a gui slot 14 of player with ender_chest named "&b&lVault &b##5 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  222. if player has permission "vaults.6":
  223. format a gui slot 15 of player with ender_chest named "&b&lVault &b##6 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest6(player)
  224. if player does not have permission "vaults.6":
  225. format a gui slot 15 of player with ender_chest named "&b&lVault &b##6 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  226. if player has permission "vaults.7":
  227. format a gui slot 16 of player with ender_chest named "&b&lVault &b##7 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest7(player)
  228. if player does not have permission "vaults.7":
  229. format a gui slot 16 of player with ender_chest named "&b&lVault &b##7 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  230. if inventory name of player's current inventory contains "Vault ##3":
  231. loop 27 times:
  232. set {vaults::item::3::%player%::%loop-number - 1%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player
  233. wait 2 ticks
  234. open virtual chest inventory with size 3 named "Vaults" to player
  235. if player has permission "vaults.1":
  236. format a gui slot 10 of player with ender_chest named "&b&lVault &b##1 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest1(player)
  237. if player does not have permission "vaults.1":
  238. format a gui slot 10 of player with ender_chest named "&b&lVault &b##1 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  239. if player has permission "vaults.2":
  240. format a gui slot 11 of player with ender_chest named "&b&lVault &b##2 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest2(player)
  241. if player does not have permission "vaults.2":
  242. format a gui slot 11 of player with ender_chest named "&b&lVault &b##2 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  243. if player has permission "vaults.3":
  244. format a gui slot 12 of player with ender_chest named "&b&lVault &b##3 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest3(player)
  245. if player does not have permission "vaults.3":
  246. format a gui slot 12 of player with ender_chest named "&b&lVault &b##3 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  247. if player has permission "vaults.4":
  248. format a gui slot 13 of player with ender_chest named "&b&lVault &b##4 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest4(player)
  249. if player does not have permission "vaults.4":
  250. format a gui slot 13 of player with ender_chest named "&b&lVault &b##4 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  251. if player has permission "vaults.5":
  252. format a gui slot 14 of player with ender_chest named "&b&lVault &b##5 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest5(player)
  253. if player does not have permission "vaults.5":
  254. format a gui slot 14 of player with ender_chest named "&b&lVault &b##5 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  255. if player has permission "vaults.6":
  256. format a gui slot 15 of player with ender_chest named "&b&lVault &b##6 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest6(player)
  257. if player does not have permission "vaults.6":
  258. format a gui slot 15 of player with ender_chest named "&b&lVault &b##6 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  259. if player has permission "vaults.7":
  260. format a gui slot 16 of player with ender_chest named "&b&lVault &b##7 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest7(player)
  261. if player does not have permission "vaults.7":
  262. format a gui slot 16 of player with ender_chest named "&b&lVault &b##7 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  263. if inventory name of player's current inventory contains "Vault ##4":
  264. loop 27 times:
  265. set {vaults::item::4::%player%::%loop-number - 1%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player
  266. wait 2 ticks
  267. open virtual chest inventory with size 3 named "Vaults" to player
  268. if player has permission "vaults.1":
  269. format a gui slot 10 of player with ender_chest named "&b&lVault &b##1 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest1(player)
  270. if player does not have permission "vaults.1":
  271. format a gui slot 10 of player with ender_chest named "&b&lVault &b##1 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  272. if player has permission "vaults.2":
  273. format a gui slot 11 of player with ender_chest named "&b&lVault &b##2 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest2(player)
  274. if player does not have permission "vaults.2":
  275. format a gui slot 11 of player with ender_chest named "&b&lVault &b##2 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  276. if player has permission "vaults.3":
  277. format a gui slot 12 of player with ender_chest named "&b&lVault &b##3 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest3(player)
  278. if player does not have permission "vaults.3":
  279. format a gui slot 12 of player with ender_chest named "&b&lVault &b##3 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  280. if player has permission "vaults.4":
  281. format a gui slot 13 of player with ender_chest named "&b&lVault &b##4 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest4(player)
  282. if player does not have permission "vaults.4":
  283. format a gui slot 13 of player with ender_chest named "&b&lVault &b##4 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  284. if player has permission "vaults.5":
  285. format a gui slot 14 of player with ender_chest named "&b&lVault &b##5 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest5(player)
  286. if player does not have permission "vaults.5":
  287. format a gui slot 14 of player with ender_chest named "&b&lVault &b##5 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  288. if player has permission "vaults.6":
  289. format a gui slot 15 of player with ender_chest named "&b&lVault &b##6 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest6(player)
  290. if player does not have permission "vaults.6":
  291. format a gui slot 15 of player with ender_chest named "&b&lVault &b##6 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  292. if player has permission "vaults.7":
  293. format a gui slot 16 of player with ender_chest named "&b&lVault &b##7 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest7(player)
  294. if player does not have permission "vaults.7":
  295. format a gui slot 16 of player with ender_chest named "&b&lVault &b##7 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  296. if inventory name of player's current inventory contains "Vault ##5":
  297. loop 27 times:
  298. set {vaults::item::4::%player%::%loop-number - 1%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player
  299. wait 2 ticks
  300. open virtual chest inventory with size 3 named "Vaults" to player
  301. if player has permission "vaults.1":
  302. format a gui slot 10 of player with ender_chest named "&b&lVault &b##1 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest1(player)
  303. if player does not have permission "vaults.1":
  304. format a gui slot 10 of player with ender_chest named "&b&lVault &b##1 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  305. if player has permission "vaults.2":
  306. format a gui slot 11 of player with ender_chest named "&b&lVault &b##2 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest2(player)
  307. if player does not have permission "vaults.2":
  308. format a gui slot 11 of player with ender_chest named "&b&lVault &b##2 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  309. if player has permission "vaults.3":
  310. format a gui slot 12 of player with ender_chest named "&b&lVault &b##3 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest3(player)
  311. if player does not have permission "vaults.3":
  312. format a gui slot 12 of player with ender_chest named "&b&lVault &b##3 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  313. if player has permission "vaults.4":
  314. format a gui slot 13 of player with ender_chest named "&b&lVault &b##4 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest4(player)
  315. if player does not have permission "vaults.4":
  316. format a gui slot 13 of player with ender_chest named "&b&lVault &b##4 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  317. if player has permission "vaults.5":
  318. format a gui slot 14 of player with ender_chest named "&b&lVault &b##5 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest5(player)
  319. if player does not have permission "vaults.5":
  320. format a gui slot 14 of player with ender_chest named "&b&lVault &b##5 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  321. if player has permission "vaults.6":
  322. format a gui slot 15 of player with ender_chest named "&b&lVault &b##6 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest6(player)
  323. if player does not have permission "vaults.6":
  324. format a gui slot 15 of player with ender_chest named "&b&lVault &b##6 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  325. if player has permission "vaults.7":
  326. format a gui slot 16 of player with ender_chest named "&b&lVault &b##7 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest7(player)
  327. if player does not have permission "vaults.7":
  328. format a gui slot 16 of player with ender_chest named "&b&lVault &b##7 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  329. if inventory name of player's current inventory contains "Vault ##6":
  330. loop 27 times:
  331. set {vaults::item::6::%player%::%loop-number - 1%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player
  332. wait 2 ticks
  333. open virtual chest inventory with size 3 named "Vaults" to player
  334. if player has permission "vaults.1":
  335. format a gui slot 10 of player with ender_chest named "&b&lVault &b##1 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest1(player)
  336. if player does not have permission "vaults.1":
  337. format a gui slot 10 of player with ender_chest named "&b&lVault &b##1 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  338. if player has permission "vaults.2":
  339. format a gui slot 11 of player with ender_chest named "&b&lVault &b##2 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest2(player)
  340. if player does not have permission "vaults.2":
  341. format a gui slot 11 of player with ender_chest named "&b&lVault &b##2 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  342. if player has permission "vaults.3":
  343. format a gui slot 12 of player with ender_chest named "&b&lVault &b##3 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest3(player)
  344. if player does not have permission "vaults.3":
  345. format a gui slot 12 of player with ender_chest named "&b&lVault &b##3 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  346. if player has permission "vaults.4":
  347. format a gui slot 13 of player with ender_chest named "&b&lVault &b##4 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest4(player)
  348. if player does not have permission "vaults.4":
  349. format a gui slot 13 of player with ender_chest named "&b&lVault &b##4 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  350. if player has permission "vaults.5":
  351. format a gui slot 14 of player with ender_chest named "&b&lVault &b##5 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest5(player)
  352. if player does not have permission "vaults.5":
  353. format a gui slot 14 of player with ender_chest named "&b&lVault &b##5 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  354. if player has permission "vaults.6":
  355. format a gui slot 15 of player with ender_chest named "&b&lVault &b##6 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest6(player)
  356. if player does not have permission "vaults.6":
  357. format a gui slot 15 of player with ender_chest named "&b&lVault &b##6 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  358. if player has permission "vaults.7":
  359. format a gui slot 16 of player with ender_chest named "&b&lVault &b##7 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest7(player)
  360. if player does not have permission "vaults.7":
  361. format a gui slot 16 of player with ender_chest named "&b&lVault &b##7 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  362. if inventory name of player's current inventory contains "Vault ##7":
  363. loop 27 times:
  364. set {vaults::item::7::%player%::%loop-number - 1%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player
  365. wait 2 ticks
  366. open virtual chest inventory with size 3 named "Vaults" to player
  367. if player has permission "vaults.1":
  368. format a gui slot 10 of player with ender_chest named "&b&lVault &b##1 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest1(player)
  369. if player does not have permission "vaults.1":
  370. format a gui slot 10 of player with ender_chest named "&b&lVault &b##1 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  371. if player has permission "vaults.2":
  372. format a gui slot 11 of player with ender_chest named "&b&lVault &b##2 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest2(player)
  373. if player does not have permission "vaults.2":
  374. format a gui slot 11 of player with ender_chest named "&b&lVault &b##2 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  375. if player has permission "vaults.3":
  376. format a gui slot 12 of player with ender_chest named "&b&lVault &b##3 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest3(player)
  377. if player does not have permission "vaults.3":
  378. format a gui slot 12 of player with ender_chest named "&b&lVault &b##3 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  379. if player has permission "vaults.4":
  380. format a gui slot 13 of player with ender_chest named "&b&lVault &b##4 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest4(player)
  381. if player does not have permission "vaults.4":
  382. format a gui slot 13 of player with ender_chest named "&b&lVault &b##4 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  383. if player has permission "vaults.5":
  384. format a gui slot 14 of player with ender_chest named "&b&lVault &b##5 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest5(player)
  385. if player does not have permission "vaults.5":
  386. format a gui slot 14 of player with ender_chest named "&b&lVault &b##5 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  387. if player has permission "vaults.6":
  388. format a gui slot 15 of player with ender_chest named "&b&lVault &b##6 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest6(player)
  389. if player does not have permission "vaults.6":
  390. format a gui slot 15 of player with ender_chest named "&b&lVault &b##6 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
  391. if player has permission "vaults.7":
  392. format a gui slot 16 of player with ender_chest named "&b&lVault &b##7 &8[&33 Rows&8]" with lore "&a&lUnlocked" to close then run function enderchest7(player)
  393. if player does not have permission "vaults.7":
  394. format a gui slot 16 of player with ender_chest named "&b&lVault &b##7 &8[&33 Rows&8]" with lore "&c&lLocked" to do nothing
Advertisement
Add Comment
Please, Sign In to add comment