on first join: set {level.%uuid of player%} to 0 set {xp.%uuid of player%} to 0 set {xpmax.%uuid of player%} to 10 on break: if player's gamemode is survival: cancel event if event-block is coal ore: give coal to player execute console command "/xp give %player% 1" set event-block to cobblestone wait 3 seconds set event-block to coal ore command /reset: trigger: set {level.%uuid of player%} to 0 set {xp.%uuid of player%} to 0 set {xpmax.%uuid of player%} to 10 on chat: cancel event if {prefix.%uuid of player%} is not set: broadcast "&eLvl. %{level.%uuid of player%}% &7%player%: %message%" else: broadcast "&eLvl. %{level.%uuid of player%}% %{prefix.%uuid of player%}% %player%&f: %message%" on right click on ender chest: if {level.%uuid of player%} < 20: cancel event message "&c&lYou must be at least &4&lLevel 20 &c<o use the Vault!" command /miner: trigger: if {level.%uuid of player%} < 10: message "&c&lYou must be at least &4&lLevel 10 &c<o talk to The Miner!" else: open chest with 5 rows named "The Miner" to player wait 0.6 ticks format slot 4 of player with nether star named "&a&l%player%'s Balance" with lore "&fYou have &2%player's balance%" to be unstealable command /xp [] [] []: permission: * trigger: if arg 1 is "give": add arg 3 to {xp.%uuid of arg 2%} if {xp.%uuid of arg 2%} >= {xpmax.%uuid of arg 2%}: add 1 to {level.%uuid of arg 2%} add 2 to {xpmax.%uuid of arg 2%} set {xp.%uuid of arg 2%} to 0 message "&aYou are now level %{level.%uuid of arg 2%}%!" to arg 2 message "&eNext Level: %{xp.%uuid of arg 2%}%/%{xpmax.%uuid of arg 2%}% XP Remaining" to arg 2