Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # This skript was made/skripted by Aurorionz
- # You can change whatever you like, but do not remove my skull from the GUI
- #
- on right click on ender chest:
- cancel event
- play "BLOCK_ENDERCHEST_OPEN" to player at volume 0.3
- open virtual chest inventory with size 3 named "Vaults" to player
- if player has permission "vaults.1":
- 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)
- if player does not have permission "vaults.1":
- 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
- if player has permission "vaults.2":
- 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)
- if player does not have permission "vaults.2":
- 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
- if player has permission "vaults.3":
- 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)
- if player does not have permission "vaults.3":
- 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
- if player has permission "vaults.4":
- 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)
- if player does not have permission "vaults.4":
- 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
- if player has permission "vaults.5":
- 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)
- if player does not have permission "vaults.5":
- 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
- if player has permission "vaults.6":
- 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)
- if player does not have permission "vaults.6":
- 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
- if player has permission "vaults.7":
- 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)
- if player does not have permission "vaults.7":
- 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
- set {_skull} to "Aurorionz" parsed as offline player
- format a gui slot 26 of player with {_skull}'s skull named "&bMade by: &fAurorionz" to do nothing
- function enderchest1(p: player):
- open virtual chest inventory with size 4 named "Vault ##1" to {_p}
- format a gui slot 27 of {_p} with black glass named "&7" to do nothing
- format a gui slot 28 of {_p} with black glass named "&7" to do nothing
- format a gui slot 29 of {_p} with black glass named "&7" to do nothing
- format a gui slot 30 of {_p} with black glass named "&7" to do nothing
- format a gui slot 31 of {_p} with black glass named "&7" to do nothing
- format a gui slot 32 of {_p} with black glass named "&7" to do nothing
- format a gui slot 33 of {_p} with black glass named "&7" to do nothing
- format a gui slot 34 of {_p} with black glass named "&7" to do nothing
- format a gui slot 35 of {_p} with black glass named "&7" to do nothing
- wait 1 tick
- set {_num} to 0
- loop {vaults::item::1::%{_p}%::*}:
- set slot {_num} of {_p}'s current inventory to loop-value
- add 1 to {_num}
- function enderchest2(p: player):
- open virtual chest inventory with size 4 named "Vault ##2" to {_p}
- format a gui slot 27 of {_p} with black glass named "&7" to do nothing
- format a gui slot 28 of {_p} with black glass named "&7" to do nothing
- format a gui slot 29 of {_p} with black glass named "&7" to do nothing
- format a gui slot 30 of {_p} with black glass named "&7" to do nothing
- format a gui slot 31 of {_p} with black glass named "&7" to do nothing
- format a gui slot 32 of {_p} with black glass named "&7" to do nothing
- format a gui slot 33 of {_p} with black glass named "&7" to do nothing
- format a gui slot 34 of {_p} with black glass named "&7" to do nothing
- format a gui slot 35 of {_p} with black glass named "&7" to do nothing
- wait 1 tick
- set {_num} to 0
- loop {vaults::item::2::%{_p}%::*}:
- set slot {_num} of {_p}'s current inventory to loop-value
- add 1 to {_num}
- function enderchest3(p: player):
- open virtual chest inventory with size 4 named "Vault ##3" to {_p}
- format a gui slot 27 of {_p} with black glass named "&7" to do nothing
- format a gui slot 28 of {_p} with black glass named "&7" to do nothing
- format a gui slot 29 of {_p} with black glass named "&7" to do nothing
- format a gui slot 30 of {_p} with black glass named "&7" to do nothing
- format a gui slot 31 of {_p} with black glass named "&7" to do nothing
- format a gui slot 32 of {_p} with black glass named "&7" to do nothing
- format a gui slot 33 of {_p} with black glass named "&7" to do nothing
- format a gui slot 34 of {_p} with black glass named "&7" to do nothing
- format a gui slot 35 of {_p} with black glass named "&7" to do nothing
- wait 1 tick
- set {_num} to 0
- loop {vaults::item::3::%{_p}%::*}:
- set slot {_num} of {_p}'s current inventory to loop-value
- add 1 to {_num}
- function enderchest4(p: player):
- open virtual chest inventory with size 4 named "Vault ##4" to {_p}
- format a gui slot 27 of {_p} with black glass named "&7" to do nothing
- format a gui slot 28 of {_p} with black glass named "&7" to do nothing
- format a gui slot 29 of {_p} with black glass named "&7" to do nothing
- format a gui slot 30 of {_p} with black glass named "&7" to do nothing
- format a gui slot 31 of {_p} with black glass named "&7" to do nothing
- format a gui slot 32 of {_p} with black glass named "&7" to do nothing
- format a gui slot 33 of {_p} with black glass named "&7" to do nothing
- format a gui slot 34 of {_p} with black glass named "&7" to do nothing
- format a gui slot 35 of {_p} with black glass named "&7" to do nothing
- wait 1 tick
- set {_num} to 0
- loop {vaults::item::4::%{_p}%::*}:
- set slot {_num} of {_p}'s current inventory to loop-value
- add 1 to {_num}
- function enderchest5(p: player):
- open virtual chest inventory with size 4 named "Vault ##5" to {_p}
- format a gui slot 27 of {_p} with black glass named "&7" to do nothing
- format a gui slot 28 of {_p} with black glass named "&7" to do nothing
- format a gui slot 29 of {_p} with black glass named "&7" to do nothing
- format a gui slot 30 of {_p} with black glass named "&7" to do nothing
- format a gui slot 31 of {_p} with black glass named "&7" to do nothing
- format a gui slot 32 of {_p} with black glass named "&7" to do nothing
- format a gui slot 33 of {_p} with black glass named "&7" to do nothing
- format a gui slot 34 of {_p} with black glass named "&7" to do nothing
- format a gui slot 35 of {_p} with black glass named "&7" to do nothing
- wait 1 tick
- set {_num} to 0
- loop {vaults::item::5::%{_p}%::*}:
- set slot {_num} of {_p}'s current inventory to loop-value
- add 1 to {_num}
- function enderchest6(p: player):
- open virtual chest inventory with size 4 named "Vault ##6" to {_p}
- format a gui slot 27 of {_p} with black glass named "&7" to do nothing
- format a gui slot 28 of {_p} with black glass named "&7" to do nothing
- format a gui slot 29 of {_p} with black glass named "&7" to do nothing
- format a gui slot 30 of {_p} with black glass named "&7" to do nothing
- format a gui slot 31 of {_p} with black glass named "&7" to do nothing
- format a gui slot 32 of {_p} with black glass named "&7" to do nothing
- format a gui slot 33 of {_p} with black glass named "&7" to do nothing
- format a gui slot 34 of {_p} with black glass named "&7" to do nothing
- format a gui slot 35 of {_p} with black glass named "&7" to do nothing
- wait 1 tick
- set {_num} to 0
- loop {vaults::item::6::%{_p}%::*}:
- set slot {_num} of {_p}'s current inventory to loop-value
- add 1 to {_num}
- function enderchest7(p: player):
- open virtual chest inventory with size 4 named "Vault ##7" to {_p}
- format a gui slot 27 of {_p} with black glass named "&7" to do nothing
- format a gui slot 28 of {_p} with black glass named "&7" to do nothing
- format a gui slot 29 of {_p} with black glass named "&7" to do nothing
- format a gui slot 30 of {_p} with black glass named "&7" to do nothing
- format a gui slot 31 of {_p} with black glass named "&7" to do nothing
- format a gui slot 32 of {_p} with black glass named "&7" to do nothing
- format a gui slot 33 of {_p} with black glass named "&7" to do nothing
- format a gui slot 34 of {_p} with black glass named "&7" to do nothing
- format a gui slot 35 of {_p} with black glass named "&7" to do nothing
- wait 1 tick
- set {_num} to 0
- loop {vaults::item::7::%{_p}%::*}:
- set slot {_num} of {_p}'s current inventory to loop-value
- add 1 to {_num}
- on inventory close:
- if inventory name of player's current inventory contains "Vaults":
- play "BLOCK_ENDERCHEST_CLOSE" to player at volume 0.3
- if inventory name of player's current inventory contains "Vault ##1":
- loop 27 times:
- set {vaults::item::1::%player%::%loop-number - 1%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player
- wait 2 ticks
- open virtual chest inventory with size 3 named "Vaults" to player
- if player has permission "vaults.1":
- 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)
- if player does not have permission "vaults.1":
- 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
- if player has permission "vaults.2":
- 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)
- if player does not have permission "vaults.2":
- 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
- if player has permission "vaults.3":
- 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)
- if player does not have permission "vaults.3":
- 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
- if player has permission "vaults.4":
- 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)
- if player does not have permission "vaults.4":
- 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
- if player has permission "vaults.5":
- 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)
- if player does not have permission "vaults.5":
- 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
- if player has permission "vaults.6":
- 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)
- if player does not have permission "vaults.6":
- 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
- if player has permission "vaults.7":
- 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)
- if player does not have permission "vaults.7":
- 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
- if inventory name of player's current inventory contains "Vault ##2":
- loop 27 times:
- set {vaults::item::2::%player%::%loop-number - 1%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player
- wait 2 ticks
- open virtual chest inventory with size 3 named "Vaults" to player
- if player has permission "vaults.1":
- 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)
- if player does not have permission "vaults.1":
- 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
- if player has permission "vaults.2":
- 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)
- if player does not have permission "vaults.2":
- 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
- if player has permission "vaults.3":
- 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)
- if player does not have permission "vaults.3":
- 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
- if player has permission "vaults.4":
- 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)
- if player does not have permission "vaults.4":
- 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
- if player has permission "vaults.5":
- 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)
- if player does not have permission "vaults.5":
- 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
- if player has permission "vaults.6":
- 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)
- if player does not have permission "vaults.6":
- 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
- if player has permission "vaults.7":
- 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)
- if player does not have permission "vaults.7":
- 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
- if inventory name of player's current inventory contains "Vault ##3":
- loop 27 times:
- set {vaults::item::3::%player%::%loop-number - 1%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player
- wait 2 ticks
- open virtual chest inventory with size 3 named "Vaults" to player
- if player has permission "vaults.1":
- 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)
- if player does not have permission "vaults.1":
- 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
- if player has permission "vaults.2":
- 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)
- if player does not have permission "vaults.2":
- 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
- if player has permission "vaults.3":
- 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)
- if player does not have permission "vaults.3":
- 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
- if player has permission "vaults.4":
- 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)
- if player does not have permission "vaults.4":
- 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
- if player has permission "vaults.5":
- 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)
- if player does not have permission "vaults.5":
- 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
- if player has permission "vaults.6":
- 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)
- if player does not have permission "vaults.6":
- 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
- if player has permission "vaults.7":
- 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)
- if player does not have permission "vaults.7":
- 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
- if inventory name of player's current inventory contains "Vault ##4":
- loop 27 times:
- set {vaults::item::4::%player%::%loop-number - 1%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player
- wait 2 ticks
- open virtual chest inventory with size 3 named "Vaults" to player
- if player has permission "vaults.1":
- 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)
- if player does not have permission "vaults.1":
- 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
- if player has permission "vaults.2":
- 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)
- if player does not have permission "vaults.2":
- 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
- if player has permission "vaults.3":
- 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)
- if player does not have permission "vaults.3":
- 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
- if player has permission "vaults.4":
- 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)
- if player does not have permission "vaults.4":
- 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
- if player has permission "vaults.5":
- 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)
- if player does not have permission "vaults.5":
- 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
- if player has permission "vaults.6":
- 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)
- if player does not have permission "vaults.6":
- 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
- if player has permission "vaults.7":
- 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)
- if player does not have permission "vaults.7":
- 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
- if inventory name of player's current inventory contains "Vault ##5":
- loop 27 times:
- set {vaults::item::4::%player%::%loop-number - 1%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player
- wait 2 ticks
- open virtual chest inventory with size 3 named "Vaults" to player
- if player has permission "vaults.1":
- 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)
- if player does not have permission "vaults.1":
- 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
- if player has permission "vaults.2":
- 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)
- if player does not have permission "vaults.2":
- 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
- if player has permission "vaults.3":
- 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)
- if player does not have permission "vaults.3":
- 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
- if player has permission "vaults.4":
- 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)
- if player does not have permission "vaults.4":
- 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
- if player has permission "vaults.5":
- 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)
- if player does not have permission "vaults.5":
- 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
- if player has permission "vaults.6":
- 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)
- if player does not have permission "vaults.6":
- 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
- if player has permission "vaults.7":
- 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)
- if player does not have permission "vaults.7":
- 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
- if inventory name of player's current inventory contains "Vault ##6":
- loop 27 times:
- set {vaults::item::6::%player%::%loop-number - 1%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player
- wait 2 ticks
- open virtual chest inventory with size 3 named "Vaults" to player
- if player has permission "vaults.1":
- 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)
- if player does not have permission "vaults.1":
- 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
- if player has permission "vaults.2":
- 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)
- if player does not have permission "vaults.2":
- 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
- if player has permission "vaults.3":
- 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)
- if player does not have permission "vaults.3":
- 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
- if player has permission "vaults.4":
- 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)
- if player does not have permission "vaults.4":
- 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
- if player has permission "vaults.5":
- 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)
- if player does not have permission "vaults.5":
- 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
- if player has permission "vaults.6":
- 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)
- if player does not have permission "vaults.6":
- 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
- if player has permission "vaults.7":
- 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)
- if player does not have permission "vaults.7":
- 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
- if inventory name of player's current inventory contains "Vault ##7":
- loop 27 times:
- set {vaults::item::7::%player%::%loop-number - 1%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player
- wait 2 ticks
- open virtual chest inventory with size 3 named "Vaults" to player
- if player has permission "vaults.1":
- 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)
- if player does not have permission "vaults.1":
- 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
- if player has permission "vaults.2":
- 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)
- if player does not have permission "vaults.2":
- 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
- if player has permission "vaults.3":
- 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)
- if player does not have permission "vaults.3":
- 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
- if player has permission "vaults.4":
- 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)
- if player does not have permission "vaults.4":
- 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
- if player has permission "vaults.5":
- 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)
- if player does not have permission "vaults.5":
- 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
- if player has permission "vaults.6":
- 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)
- if player does not have permission "vaults.6":
- 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
- if player has permission "vaults.7":
- 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)
- if player does not have permission "vaults.7":
- 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