command /topki: trigger: open chest with 5 rows named "&a&lTopki" to player format slot 44 of player with 1 of Black Stained Glass Pane named "&8&l." to be unstealable format slot 0 of player with 1 of Black Stained Glass Pane named "&8&l." to be unstealable format slot 1 of player with 1 of Black Stained Glass Pane named "&8&l." to be unstealable format slot 2 of player with 1 of Black Stained Glass Pane named "&8&l." to to be unstealable format slot 3 of player with 1 of Black Stained Glass Pane named "&8&l." to to be unstealable format slot 4 of player with 1 of Black Stained Glass Pane named "&8&l." to be unstealable set player's current inventory's slot 14 to diamond pickaxe named "&aTop 10 KOPACZY POZIOMU" set player's current inventory's slot 10 to obsidian named "&aTop 10 KOPACZY OBYSDIANU" set player's current inventory's slot 16 to stone named "&aTop 10 KOPACZY STONE" set player's current inventory's slot 12 to slimeball named "&aTop 10 ONLINE" format slot 5 of player with 1 of Black Stained Glass Pane named "&8&l." to be unstealable format slot 6 of player with 1 of Black Stained Glass Pane named "&8&l." to be unstealable format slot 7 of player with 1 of Black Stained Glass Pane named "&8&l." to be unstealable format slot 8 of player with 1 of Black Stained Glass Pane named "&8&l." to be unstealable format slot 9 of player with 1 of Black Stained Glass Pane named "&8&l." to be unstealable format slot 13 of player with 1 of Black Stained Glass Pane named "&8&l." to be unstealable format slot 15 of player with 1 of Black Stained Glass Pane named "&8&l." to be unstealable format slot 11 of player with 1 of Black Stained Glass Pane named "&8&l." to be unstealable format slot 17 of player with 1 of Black Stained Glass Pane named "&8&l." to be unstealable format slot 18 of player with 1 of Black Stained Glass Pane named "&8&l." to be unstealable format slot 19 of player with 1 of Black Stained Glass Pane named "&8&l." to be unstealable format slot 20 of player with 1 of Black Stained Glass Pane named "&8&l." to be unstealable format slot 21 of player with 1 of Black Stained Glass Pane named "&8&l." to be unstealable format slot 22 of player with 1 of Black Stained Glass Pane named "&8&l." to be unstealable format slot 23 of player with 1 of Black Stained Glass Pane named "&8&l." to be unstealable format slot 24 of player with 1 of Black Stained Glass Pane named "&8&l." to be unstealable format slot 25 of player with 1 of Black Stained Glass Pane named "&8&l." to be unstealable format slot 26 of player with 1 of Black Stained Glass Pane named "&8&l." to be unstealable format slot 27 of player with 1 of Black Stained Glass Pane named "&8&l." to be unstealable format slot 28 of player with 1 of Black Stained Glass Pane named "&8&l." to be unstealable format slot 29 of player with 1 of Black Stained Glass Pane named "&8&l." to be unstealable format slot 30 of player with 1 of Black Stained Glass Pane named "&8&l." to close format slot 31 of player with 1 of Black Stained Glass Pane named "&8&l." to close format slot 32 of player with 1 of Black Stained Glass Pane named "&8&l." to close format slot 33 of player with 1 of Black Stained Glass Pane named "&8&l." to close format slot 34 of player with 1 of Black Stained Glass Pane named "&8&l." to close format slot 35 of player with 1 of Black Stained Glass Pane named "&8&l." to close format slot 36 of player with 1 of Black Stained Glass Pane named "&8&l." to close format slot 37 of player with 1 of Black Stained Glass Pane named "&8&l." to close format slot 38 of player with 1 of Black Stained Glass Pane named "&8&l." to close format slot 39 of player with 1 of Black Stained Glass Pane named "&8&l." to close format slot 40 of player with 1 of Black Stained Glass Pane named "&8&l." to close format slot 41 of player with 1 of Black Stained Glass Pane named "&8&l." to close format slot 42 of player with 1 of Black Stained Glass Pane named "&8&l." to close format slot 43 of player with 1 of Black Stained Glass Pane named "&8&l." to close set {_s} to size of {plvl::*} loop {_s} times: loop {plvl::*}: if {_v.%loop-number%} is not set: set {_v.%loop-number%} to loop-value set {_n.%loop-number%} to loop-index if loop-value is larger than {_v.%loop-number%}: set {_v.%loop-number%} to loop-value set {_n.%loop-number%} to loop-index remove {_v.%loop-number%} from {plvl::*} wait 2 tick loop {_s} times: if loop-number is smaller than or equal to 10: set {_lore::%loop-number%} to " &8%loop-number%. &7%{_n.%loop-number%}% &e[Poziom: %{_v.%loop-number%}%]" set {plvl::%{_n.%loop-number%}%} to {_v.%loop-number%} set {_lore} to join {_lore::*} with "||" set lore of player's current inventory's slot 14 to {_lore} # set {_o} to size of {Wykopane.Obsidianek::*} loop {_o} times: loop {Wykopane.Obsidianek::*}: if {_a.%loop-number%} is not set: set {_a.%loop-number%} to loop-value set {_b.%loop-number%} to loop-index if loop-value is larger than {_a.%loop-number%}: set {_a.%loop-number%} to loop-value set {_b.%loop-number%} to loop-index remove {_a.%loop-number%} from {Wykopane.Obsidianek::*} wait 2 tick loop {_o} times: if loop-number is smaller than or equal to 10: set {_lore2::%loop-number%} to " &8%loop-number%. &7%{_b.%loop-number%}% &e[Obsydian: %{_a.%loop-number%}%]" set {Wykopane.Obsidianek::%{_b.%loop-number%}%} to {_a.%loop-number%} set {_lore2} to join {_lore2::*} with "||" set lore of player's current inventory's slot 10 to {_lore2} # set {_k} to size of {wykopany.stone::*} loop {_k} times: loop {wykopany.stone::*}: if {_c.%loop-number%} is not set: set {_c.%loop-number%} to loop-value set {_d.%loop-number%} to loop-index if loop-value is larger than {_c.%loop-number%}: set {_c.%loop-number%} to loop-value set {_d.%loop-number%} to loop-index remove {_c.%loop-number%} from {wykopany.stone::*} wait 2 tick loop {_k} times: if loop-number is smaller than or equal to 10: set {_lore3::%loop-number%} to " &8%loop-number%. &7%{_d.%loop-number%}% &e[Stone: %{_c.%loop-number%}%]" set {wykopany.stone::%{_d.%loop-number%}%} to {_c.%loop-number%} set {_lore3} to join {_lore3::*} with "||" set lore of player's current inventory's slot 16 to {_lore3} # set {_cza} to size of {minutes::*} loop {_cza} times: loop {minutes::*}: if {_p.%loop-number%} is not set: set {_p.%loop-number%} to loop-value set {_l.%loop-number%} to loop-index if loop-value is larger than {_p.%loop-number%}: set {_p.%loop-number%} to loop-value set {_l.%loop-number%} to loop-index remove {_p.%loop-number%} from {minutes::*} wait 2 tick loop {_cza} times: if loop-number is smaller than or equal to 10: set {_lore4::%loop-number%} to " &8%loop-number%. &7%{_l.%loop-number%}% &e[Czas: %{_p.%loop-number%}% min]" set {minutes::%{_l.%loop-number%}%} to {_p.%loop-number%} set {_lore4} to join {_lore4::*} with "||" set lore of player's current inventory's slot 12 to {_lore4} on inventory click: if "%inventory name of player's current inventory%" is "&a&lTopki": close player's inventory