on rightclick with leather: set {_waited} to difference between {plecak.lastopen.%player%} and now if {_waited} is less than 5 seconds: set {_x} to "%difference between 5 seconds and {_waited}%" replace all "seconds" in {_x} with "" replace all " " in {_x} with "" send "&8»&7 Plecak mozesz otworzyc dopiero za &2%{_x}% &aSekund" stop set {plecak.lastopen.%player%} to now if player is not sneaking: set {_x} to "%uncolored name of player's tool%" if {_x} contains "Plecak": set {_x::*} to uncolored lore of player's tool split at "||" replace all "»" in {_x::1} with "" replace all " " in {_x::1} with "" replace all "Wielkosc:" in {_x::1} with "" set {_wielkosc} to {_x::1} replace all "»" in {_x::2} with "" replace all " " in {_x::2} with "" replace all "ID:" in {_x::2} with "" set {_id} to {_x::2} set {cid::%player%} to {_id} set {tool::%player%} to player's tool set player's tool to air if {_wielkosc} is "Mini": wait 2 tick open chest with 1 rows named "&8Plecak &7Mini" to player loop {plecak::%{_id}%::*}: set player's current inventory's slot loop-index parsed as integer to loop-value send "&9Otworzono plecak." if {_wielkosc} is "Maly": wait 2 tick open chest with 2 rows named "&8Plecak &7Maly" to player loop {plecak::%{_id}%::*}: set player's current inventory's slot loop-index parsed as integer to loop-value send "&9Otworzono plecak." if {_wielkosc} is "Sredni": wait 2 tick open chest with 3 rows named "&8Plecak &7Sredni" to player loop {plecak::%{_id}%::*}: set player's current inventory's slot loop-index parsed as integer to loop-value send "&9Otworzono plecak." if {_wielkosc} is "Duzy": wait 2 tick open chest with 4 rows named "&8Plecak &7Duzy" to player loop {plecak::%{_id}%::*}: set player's current inventory's slot loop-index parsed as integer to loop-value send "&9Otworzono plecak." if {_wielkosc} is "Wielki": wait 2 tick open chest with 5 rows named "&8Plecak &7Wielki" to player loop {plecak::%{_id}%::*}: set player's current inventory's slot loop-index parsed as integer to loop-value send "&9Otworzono plecak." if {_wielkosc} is "Ogromny": wait 2 tick open chest with 6 rows named "&8Plecak &7Ogromny" to player loop {plecak::%{_id}%::*}: set player's current inventory's slot loop-index parsed as integer to loop-value send "&9Otworzono plecak." else: if player has permission "plecak.name": send "&8»&7 Opcja nazywania plecaka aktywowana! %nl% Napisz na chat jego nowa nazwe %nl% &7A jesli chcesz anulowac , wpisz '-'" set {naming::%player%} to true else: send "&8»&7 Nie posiadasz uprawnien zeby nazwac plecak!" set {_x} to "%uncolored name of player's tool%" if {_x} contains "Plecak": set {_x::*} to uncolored lore of player's tool split at "||" replace all "»" in {_x::1} with "" replace all " " in {_x::1} with "" replace all "Wielkosc:" in {_x::1} with "" set {_wielkosc} to {_x::1} replace all "»" in {_x::2} with "" replace all " " in {_x::2} with "" replace all "ID:" in {_x::2} with "" set {_id} to {_x::2} set {cid::%player%} to {_id} set {tool::%player%} to player's tool set player's tool to air if {_wielkosc} is "Mini": wait 2 tick open chest with 1 rows named "&8Plecak &7Mini" to player loop {plecak::%{_id}%::*}: set player's current inventory's slot loop-index parsed as integer to loop-value send "&9Otworzono plecak." if {_wielkosc} is "Maly": wait 2 tick open chest with 2 rows named "&8Plecak &7Maly" to player loop {plecak::%{_id}%::*}: set player's current inventory's slot loop-index parsed as integer to loop-value send "&9Otworzono plecak." if {_wielkosc} is "Sredni": wait 2 tick open chest with 3 rows named "&8Plecak &7Sredni" to player loop {plecak::%{_id}%::*}: set player's current inventory's slot loop-index parsed as integer to loop-value send "&9Otworzono plecak." if {_wielkosc} is "Duzy": wait 2 tick open chest with 4 rows named "&8Plecak &7Duzy" to player loop {plecak::%{_id}%::*}: set player's current inventory's slot loop-index parsed as integer to loop-value send "&9Otworzono plecak." if {_wielkosc} is "Wielki": wait 2 tick open chest with 5 rows named "&8Plecak &7Wielki" to player loop {plecak::%{_id}%::*}: set player's current inventory's slot loop-index parsed as integer to loop-value send "&9Otworzono plecak." if {_wielkosc} is "Ogromny": wait 2 tick open chest with 6 rows named "&8Plecak &7Ogromny" to player loop {plecak::%{_id}%::*}: set player's current inventory's slot loop-index parsed as integer to loop-value send "&9Otworzono plecak." on inventory close: set {_id} to {cid::%player%} set {_r} to 0 if "%inventory name of player's current inventory%" is "&8Plecak &7Mini": loop 9 times: set {plecak::%{_id}%::%{_r}%} to player's current inventory's slot {_r} add 1 to {_r} wait 2 tick send "&9Zapisano Plecak." if "%inventory name of player's current inventory%" is "&8Plecak &7Maly": loop 18 times: set {plecak::%{_id}%::%{_r}%} to player's current inventory's slot {_r} add 1 to {_r} wait 2 tick send "&9Zapisano Plecak." if "%inventory name of player's current inventory%" is "&8Plecak &7Sredni": loop 27 times: set {plecak::%{_id}%::%{_r}%} to player's current inventory's slot {_r} add 1 to {_r} wait 2 tick send "&9Zapisano Plecak." if "%inventory name of player's current inventory%" is "&8Plecak &7Duzy": loop 36 times: set {plecak::%{_id}%::%{_r}%} to player's current inventory's slot {_r} add 1 to {_r} wait 2 tick send "&9Zapisano Plecak." if "%inventory name of player's current inventory%" is "&8Plecak &7Wielki": loop 45 times: set {plecak::%{_id}%::%{_r}%} to player's current inventory's slot {_r} add 1 to {_r} wait 2 tick send "&9Zapisano Plecak." if "%inventory name of player's current inventory%" is "&8Plecak &7Ogromny": loop 54 times: set {plecak::%{_id}%::%{_r}%} to player's current inventory's slot {_r} add 1 to {_r} wait 2 tick send "&9Zapisano Plecak." if player's tool is not air: while player's tool is not air: send "&8»&7 Nie mozna odzyskac plecaka . Musisz trzymac powietrze, komunikat bedzie pojawial sie az do skutku!" wait 1.5 seconds set player's tool to {tool::%player%} command /create [] [] []: trigger: if sender is console: if arg 3 is set: set {_r} to arg 1 if {_r} parsed as player is online: set {_r} to {_r} parsed as player if arg 2 is not "Mini" or "Maly" or "Sredni" or "Duzy" or "Wielki" or "Ogromny": send "Mozna stworzyc tylko plecaki o wielkosci: Mini , maly , sredni , duzy , wielki , ogromny" stop if arg 3 is not "random" or "number": if {pkod::%arg 3%} is set: send "ID Plecaka %arg 3% jest juz uzyte!" stop set {pkod::%arg 3%} to true give 1 leather with name "&8Plecak" with lore "&8» &7Wielkosc: &2%arg 2%||&8»&7 ID: &2%arg 3%|| ||&8Stworzony przez &2%{_r}%" to {_r} stop else: if arg 3 is "number": if {idcount} is not set: set {idcount} to 0 add 1 to {idcount} give 1 leather with name "&8Plecak" with lore "&8» &7Wielkosc: &2%arg 2%||&8» &7ID: &2%{idcount}%|| ||&8Stworzony przez &2%{_r}%" to {_r} if arg 3 is "random": set {_x} to "" loop 4 times: set {_%loop-number%} to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or "a" or "A" or "b" or "B" or "c" or "C" or "d" or "D" or "e" or "E" or "f" or "F" or "g" or "G" or "h" or "H" or "k" or "K" or "l" or "L" or "m" or "M" or "n" or "N" or "o" or "O" or "p" or "P" or "q" or "Q" or "r" or "R" or "s" or "S" or "t" or "T" or "u" or "U" or "v" or "V" or "w" or "W" or "x" or "X" or "y" or "Y" or "z" or "Z" set {_x} to "%{_x}%%{_1}%%{_2}%%{_3}%%{_4}%-" loop 4 times: set {_%loop-number%} to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or "a" or "A" or "b" or "B" or "c" or "C" or "d" or "D" or "e" or "E" or "f" or "F" or "g" or "G" or "h" or "H" or "k" or "K" or "l" or "L" or "m" or "M" or "n" or "N" or "o" or "O" or "p" or "P" or "q" or "Q" or "r" or "R" or "s" or "S" or "t" or "T" or "u" or "U" or "v" or "V" or "w" or "W" or "x" or "X" or "y" or "Y" or "z" or "Z" set {_x} to "%{_x}%%{_1}%%{_2}%%{_3}%%{_4}%-" loop 4 times: set {_%loop-number%} to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or "a" or "A" or "b" or "B" or "c" or "C" or "d" or "D" or "e" or "E" or "f" or "F" or "g" or "G" or "h" or "H" or "k" or "K" or "l" or "L" or "m" or "M" or "n" or "N" or "o" or "O" or "p" or "P" or "q" or "Q" or "r" or "R" or "s" or "S" or "t" or "T" or "u" or "U" or "v" or "V" or "w" or "W" or "x" or "X" or "y" or "Y" or "z" or "Z" set {_x} to "%{_x}%%{_1}%%{_2}%%{_3}%%{_4}%-" loop 4 times: set {_%loop-number%} to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or "a" or "A" or "b" or "B" or "c" or "C" or "d" or "D" or "e" or "E" or "f" or "F" or "g" or "G" or "h" or "H" or "k" or "K" or "l" or "L" or "m" or "M" or "n" or "N" or "o" or "O" or "p" or "P" or "q" or "Q" or "r" or "R" or "s" or "S" or "t" or "T" or "u" or "U" or "v" or "V" or "w" or "W" or "x" or "X" or "y" or "Y" or "z" or "Z" set {_x} to "%{_x}%%{_1}%%{_2}%%{_3}%%{_4}%" if {pkod::%{_x}%} is not set: set {pkod::%{_x}%} to true give 1 leather with name "&8Plecak" with lore "&8»&7 Wielkosc: &2%arg 2%||&8»&7 ID: &2%{_x}%|| ||&8Stworzony przez &2%{_r}%" to {_r} else: execute console command "create %arg 1% %arg 2% %arg 3%" stop else: send "Gracz %arg 1% jest offline!" else: send "Uzycie: /create " else: send "&8»&7 Ta Komenda Moze Byc wykonana tylko przez &2KONSOLE"