variables: {lvl::%player%} = 0 {exp::%player%} = 0 {expm::%player%} = 20 {odebranie1::%player%} = false {odebranie2::%player%} = false {odebranie3::%player%} = false {odebranie4::%player%} = false {nieodebrano1::%player%} = false {nieodebrano2::%player%} = false {nieodebrano3::%player%} = false {nieodebrano4::%player%} = false {resetpotwierdz::%player%} = false command /lvl []: aliases: level, poziom, gornictwo trigger: if arg 1 is not set: send "&7«&a*&7»&7&m-----------&7«&a*&7»&a GORNICTWO &7«&a*&7»&7&m-----------&7«&a*&7»" to player send "&7Twoj aktualny poziom górnictwa: &a%{lvl::%player%}%" to player send "&7Postep poziomu: &a%{exp::%player%}%&f/&a%{expm::%player%}%" to player send "&7Jezeli chcesz odebrac nagrody wpisz &a./lvl nagrody" to player send "&7Jezeli chcesz zresetować postęp wpisz &a./lvl reset" to player send "&7«&a*&7»&7&m-----------&7«&a*&7»&a GORNICTWO &7«&a*&7»&7&m-----------&7«&a*&7»" to player if arg 1 is "nagrody": wait 1 ticks open chest inventory with 3 row named " &7&m----&7«&a*&7»&a NAGRODY &7«&a*&7»&7&m----" to player if {odebranie1::%player%} is false: format slot 0 of player with 1 red glass named "&7[&aNagroda za 1 lvl&7]" with lore "&7Nagroda: &a10 Wegla" to close then run [make player execute command "lvl nagroda1"] else: format slot 0 of player with 1 green glass named "&7&l[&a&lNagroda za 1 lvl&7&l]" with lore "&a&lNagroda Odebrana!" to close then run [make player execute command "lvl nagroda1"] if {odebranie2::%player%} is false: format slot 9 of player with 1 red glass named "&7[&aNagroda za 2 lvl&7]" with lore "&7Nagroda: &a10 Zelaza" to close then run [make player execute command "lvl nagroda2"] else: format slot 9 of player with 1 green glass named "&7&l[&a&lNagroda za 2 lvl&7&l]" with lore "&a&lNagroda Odebrana!" to close then run [make player execute command "lvl nagroda2"] if {odebranie3::%player%} is false: format slot 18 of player with 1 red glass named "&7[&aNagroda za 3 lvl&7]" with lore "&7Nagroda: &a5 Zlota" to close then run [make player execute command "lvl nagroda3"] else: format slot 18 of player with 1 green glass named "&7&l[&a&lNagroda za 3 lvl&7&l]" with lore "&a&lNagroda Odebrana!" to close then run [make player execute command "lvl nagroda3"] if {odebranie4::%player%} is false: format slot 19 of player with 1 red glass named "&7[&aNagroda za 4 lvl&7]" with lore "&7Nagroda: &a1 diament" to close then run [make player execute command "lvl nagroda4"] else: format slot 19 of player with 1 green glass named "&7&l[&a&lNagroda za 4 lvl&7&l]" with lore "&a&lNagroda Odebrana!" to close then run [make player execute command "lvl nagroda4"] if arg 1 is "reset": send "&7Przy &aresetowaniu&7 zniknie twój poziom, exp!" send "&7Nagród &anie&7 będzie mozna juz odebrać na nowo!" send "&7Jezeli jestes pewien ze chcesz &4zrestartowac &7postep wpisz &4./potwierdzam" set {resetpotwierdz::%player%} to true if arg 1 is "nagroda1": if {lvl::%player%} is greater than 0: if {odebranie1::%player%} is false: set {odebranie1::%player%} to true give player 10 coal send "&7Pomyslnie odebrales/as &a10 wegla!" set {nieodebrano1::%player%} to true else: send "&a%player% &7Odbierales/as juz ta nagrode!" else: send "&a%player% &7Nie posiadasz 1 lvl!" if arg 1 is "nagroda2": if {lvl::%player%} is greater than 1: if {odebranie2::%player%} is false: set {odebranie2::%player%} to true give player 5 iron ingot send "&7Pomyslnie odebrales/as &a5 zelaza!" set {nieodebrano2::%player%} to true else: send "&a%player% &7Odbierales/as juz ta nagrode!" else: send "&a%player% &7Nie posiadasz 2 lvl!" if arg 1 is "nagroda3": if {lvl::%player%} is greater than 2: if {odebranie3::%player%} is false: set {odebranie3::%player%} to true give player 5 gold ingot send "&7Pomyslnie odebrales/as &a5 zlota!" set {nieodebrano3::%player%} to true else: send "&a%player% &7Odbierales/as juz ta nagrode!" else: send "&a%player% &7Nie posiadasz 3 lvl!" if arg 1 is "nagroda4": if {lvl::%player%} is greater than 3: if {odebranie4::%player%} is false: set {odebranie4::%player%} to true give player 1 diamond send "&7Pomyslnie odebrales/as &a1 diament" set {nieodebrano4::%player%} to true else: send "&a%player% &7Odbierales/as juz ta nagrode!" else: send "&a%player% &7Nie posiadasz 4 lvl!" #kamien on break of stone: add 1 to {exp::%player%} if {exp::%player%} is greater than {expm::%player%}: add 1 to {lvl::%player%} set {exp::%player%} to 0 add 20 to {expm::%player%} send "&7Awansowałeś na &a%{lvl::%player%}% &7Gratulacje!" send "&7Odbierz nagrody na &a./lvl nagrody" #cobble on break of cobblestone: add 1 to {exp::%player%} if {exp::%player%} is greater than {expm::%player%}: add 1 to {lvl::%player%} set {exp::%player%} to 0 add 20 to {expm::%player%} send "&7Awansowałeś na &a%{lvl::%player%}% &7Gratulacje!" send "&7Odbierz nagrody na &a./lvl nagrody" #wegiel on break of coal ore: add 2 to {exp::%player%} if {exp::%player%} is greater than {expm::%player%}: add 1 to {lvl::%player%} set {exp::%player%} to 0 add 20 to {expm::%player%} send "&7Awansowałeś na &a%{lvl::%player%}% &7Gratulacje!" send "&7Odbierz nagrody na &a./lvl nagrody" #zelazo on break of iron ore: add 3 to {exp::%player%} if {exp::%player%} is greater than {expm::%player%}: add 1 to {lvl::%player%} set {exp::%player%} to 0 add 20 to {expm::%player%} send "&7Awansowałeś na &a%{lvl::%player%}% &7Gratulacje!" send "&7Odbierz nagrody na &a./lvl nagrody" #zloto on break of gold ore: add 3 to {exp::%player%} if {exp::%player%} is greater than {expm::%player%}: add 1 to {lvl::%player%} set {exp::%player%} to 0 add 20 to {expm::%player%} send "&7Awansowałeś na &a%{lvl::%player%}% &7Gratulacje!" send "&7Odbierz nagrody na &a./lvl nagrody" #lapis on break of lapis ore: add 2 to {exp::%player%} if {exp::%player%} is greater than {expm::%player%}: add 1 to {lvl::%player%} set {exp::%player%} to 0 add 20 to {expm::%player%} send "&7Awansowałeś na &a%{lvl::%player%}% &7Gratulacje!" send "&7Odbierz nagrody na &a./lvl nagrody" #redstone on break of redstone ore: add 2 to {exp::%player%} if {exp::%player%} is greater than {expm::%player%}: add 1 to {lvl::%player%} set {exp::%player%} to 0 add 20 to {expm::%player%} send "&7Awansowałeś na &a%{lvl::%player%}% &7Gratulacje!" send "&7Odbierz nagrody na &a./lvl nagrody" #diament on break of diamond ore: add 5 to {exp::%player%} if {exp::%player%} is greater than {expm::%player%}: add 1 to {lvl::%player%} set {exp::%player%} to 0 add 20 to {expm::%player%} send "&7Awansowałeś na &a%{lvl::%player%}% &7Gratulacje!" send "&7Odbierz nagrody na &a./lvl nagrody" #emerald on break of emerald ore: add 7 to {exp::%player%} if {exp::%player%} is greater than {expm::%player%}: add 1 to {lvl::%player%} set {exp::%player%} to 0 add 20 to {expm::%player%} send "&7Awansowałeś na &a%{lvl::%player%}% &7Gratulacje!" send "&7Odbierz nagrody na &a./lvl nagrody" command /potwierdzam: trigger: if {resetpotwierdz::%player%} is true: send "&7Trwa resetowanie twojego &4Postępu!" wait 1 second set {lvl::%player%} to 0 set {exp::%player%} to 0 set {expm::%player%} to 20 set {resetpotwierdz::%player%} to false set {odebranie1::%player%} to false set {odebranie2::%player%} to false set {odebranie3::%player%} to false set {odebranie4::%player%} to false set {nieodebrano1::%player%} to false set {nieodebrano2::%player%} to false set {nieodebrano3::%player%} to false set {nieodebrano4::%player%} to false send "&7Twój postęp został &4&lZRESETOWANY! &7milej rozgrywki!" else: send "&7Zeby zrestartować poziom wpisz &4./lvl reset" on chat: cancel event broadcast "&7[&a%{lvl::%player%}%&7] &a%player% &7%message%"