#Skrypt by Entify #Zakaz podawania sie pod autora owego Skryptu # # # -------------[ SEKCJA KONFIGURACJI ]------------- # # variables: {limit.kox} = true #czy limit koxow ma byc wlaczony {limit.ref} = true #czy limit refow ma byc wlaczony {limit.perla} = true #czy limit perel ma byc wlaczony {kox::%player%} = 0 # nie ruszaj {ref::%player%} = 0 #nie ruszaj {perla::%player%} = 0 #nie ruszaj options: limit.koxy: 5 #jaki jest limit koxow limit.refy: 7 #jaki jest limit refow limit.perla: 3 #jaki jest limit perel limit.check: 2 #co ile sekund ma sprawdzac ekwipunek gracza # # ---[ SEKCJA KODU ]--- # -- DALEJ NIC NIE DOTYKAJ JAK SIE NIE ZNASZ -- # every {@limit.check} second: loop all players: if {limit.ref} is true: set {_ref} to number of golden apple:0 in loop-player's inventory if {_ref} is more than {@limit.refy}: set {_match.ref} to {_ref}-{@limit.refy} remove {_match.ref} of golden apple:0 from loop-player set {_match.ref} to {_match.ref} parsed as integer add {_match.ref} to {ref::%loop-player%} send "&e» &7Osiagnieto maksymalna ilosc refili w twoim ekwipunku &c(7)&7 &e » &7Nadmiar zostal przeniesiony do twojego schowka. &a/schowek" to loop-player if {limit.kox} is true: set {_kox} to number of golden apple:1 in loop-player's inventory if {_kox} is more than {@limit.koxy}: set {_match.kox} to {_kox}-{@limit.koxy} remove {_match.kox} of golden apple:1 from loop-player set {_match.kox} to {_match.kox} parsed as integer add {_match.kox} to {kox::%loop-player%} send "&e» &7Osiagnieto maksymalna ilosc koxow w twoim ekwipunku &c(5)&7 &e » &7Nadmiar zostal przeniesiony do twojego schowka. &a/schowek" to loop-player if {limit.perla} is true: set {_perla} to number of ender pearl in loop-player's inventory if {_perla} is more than {@limit.perla}: set {_match.perla} to {_perla}-{@limit.perla} remove {_match.perla} of ender pearl from loop-player set {_match.perla} to {_match.perla} parsed as integer add {_match.perla} to {perla::%loop-player%} send "&e» &7Osiagnieto maksymalna ilosc perel w twoim ekwipunku &c(3)&7 &e » &7Nadmiar zostal przeniesiony do twojego schowka. &a/schowek" to loop-player command /schowek: trigger: open chest with 1 rows named "&3&lSCHOWEK" to player wait 5 ticks format slot 2 of player with 1 of golden apple:0 named "&2&lREFILE" with lore "&8» &7Posiadasz: &a%{ref::%player%}%" to close then run [make player execute command "schowek2 ref"] format slot 6 of player with 1 of enchanted golden apple named "&2&lKOXY" with lore "&8» &7Posiadasz: &a%{kox::%player%}%" to close then run [make player execute command "schowek2 kox"] format slot 4 of player with 1 of ender pearl named "&2&lPERLY" with lore "&8» &7Posiadasz: &a%{perla::%player%}%" to close then run [make player execute command "schowek2 perla"] format slot 0 of player with black glass named " " to close format slot 1 of player with black glass named " " to close format slot 3 of player with black glass named " " to close format slot 5 of player with black glass named " " to close format slot 7 of player with black glass named " " to close format slot 8 of player with black glass named " " to close stop command /schowek2 []: trigger: if arg-1 is "kox": send "&8» &7Wyplaciles &a%{kox::%player%}% koxow&7, ze schowka!" give {kox::%player%} of golden apple:1 to player clear {kox::%player%} if arg-1 is "ref": send "&8» &7Wyplaciles &a%{ref::%player%}% refili&7, ze schowka!" give {ref::%player%} of golden apple:0 to player clear {ref::%player%} if arg-1 is "perla": send "&8» &7Wyplaciles &a%{perla::%player%}% perel&7, ze schowka!" give {perla::%player%} of ender pearl to player clear {perla::%player%}