ePDOmmpJ
Język: Skript
|
Autor: Anonimowy
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 {limit.strzaly} = true #czy limit perel ma byc wlaczony {limit.sniezki} = true #czy limit perel ma byc wlaczony {kox::%player%} = 0 # nie ruszaj {ref::%player%} = 0 #nie ruszaj {perla::%player%} = 0 #nie ruszaj {strzaly::%player%} = 0 {sniezki::%player%} = 0 options: limit.koxy: 1 #jaki jest limit koxow limit.refy: 16 #jaki jest limit refow limit.perla: 3 limit.strzaly: 16 limit.sniezki: 8 #jaki jest limit perel limit.check: 1 #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 "&8» &7Posiadales przy sobie &a%{_ref}% refili&7, &a%{_match.ref}% &7zostaje odlozone do twojego schowka." 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 "&8» &7Posiadales przy sobie &a%{_kox}% koxow&7, &a%{_match.kox}% &7zostaje odlozone do twojego schowka." 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 "&8» &7Posiadales przy sobie &a%{_perla}% perel&7, &a%{_match.perla}% &7zostaje odlozone do twojego schowka." to loop-player if {limit.strzaly} is true: set {_strzaly} to number of arrow in loop-player's inventory if {_strzaly} is more than {@limit.strzaly}: set {_match.strzaly} to {_strzaly}-{@limit.strzaly} remove {_match.strzaly} of arrow from loop-player set {_match.strzaly} to {_match.perla} parsed as integer add {_match.strzaly} to {strzaly::%loop-player%} send "&8» &7Posiadales przy sobie &a%{_strzaly}% strzal&7, &a%{_match.strzaly}% &7zostaje odlozone do twojego schowka." to loop-player if {limit.sniezki} is true: set {_sniezki} to number of snowball in loop-player's inventory if {_sniezki} is more than {@limit.sniezki}: set {_match.sniezki} to {_sniezki}-{@limit.sniezki} remove {_match.sniezki} of snowball from loop-player set {_match.sniezki} to {_match.sniezki} parsed as integer add {_match.sniezki} to {sniezki::%loop-player%} send "&8» &7Posiadales przy sobie &a%{_sniezki}% sniezek&7, &a%{_match.sniezki}% &7zostaje odlozone do twojego schowka." to loop-player command /schowek: trigger: open chest with 4 rows named "&3&lSCHOWEK" to player wait 5 ticks format slot 0 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 2 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 6 of player with 1 of arrow named "&2&lStrzaly" with lore "&8» &7Posiadasz: &a%{strzaly::%player%}%" to close then run [make player execute command "schowek2 strzaly"] format slot 8 of player with 1 of snowball named "&2&lSniezki" with lore "&8» &7Posiadasz: &a%{sniezki::%player%}%" to close then run [make player execute command "schowek2 sniezki"] format slot 22 of player with 1 of hopper named "&2&lDobierz wszystko" with lore "&8» &7Dobiera caly limit" to close then run [make player execute command "schowek2 sniezki", "schowek2 strzaly", "schowek2 perla", "schowek2 kox", "schowek2 ref"] stop command /schowek2 [<text>]: 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%} if arg-1 is "strzaly": send "&8» &7Wyplaciles &a%{strzaly::%player%}% strzal&7, ze schowka!" give {strzaly::%player%} of arrow to player clear {strzaly::%player%} if arg-1 is "sniezki": send "&8» &7Wyplaciles &a%{sniezki::%player%}% sniezek&7, ze schowka!" give {sniezki::%player%} of arrow to player clear {sniezki::%player%}