# Wlascicielem prawnym skryptu ixCHEST jest imxkvpi [K.K] options: # ustawienia skryptu nameskript: &8(&c&l•&8) key: tripwire hook case: chest namekey: &8» &3Magiczny klucz namecase: &8» &3Magiczna skrzynia name'zestaw': &3STANDARD # NIE ZMIENIAC! nameskript: &8&l(&3ixCHEST&8&l) variables: {cleardrops::active} = 0 on right click: if player's tool is {@case} named "{@namecase}": cancel event if player have {@key} named "{@namekey}": remove 1 {@case} from player's inventory remove 1 {@key} from player's inventory wait 5 tick open chest with 3 rows named "{@namecase}" to player format slot 13 of player with chest named "{@namecase}" with lore "&8» &cAby otworzyc potrzebowales &8(&61&8) &cklucz.||&6Za chwile nastapi otwarcie skrzynki&c..." to close wait 5 seconds make player execute command "opencase" play raw sound "note.bass" at player with pitch 4 volume 10 else: set {_x1} to "{@case} named {@namecase}" send "&8» &cNie posiadasz klucza. &8&l(&4%amount of all chest in player's inventory%&8&l)" stop stop command /opencase: trigger: if {imxkvpi::chest::drop::*} is set: open chest with 3 rows named "{@namecase}" to player format slot 0 of player with black stained glass pane named " " to close format slot 1 of player with black stained glass pane named " " to close format slot 2 of player with black stained glass pane named " " to close format slot 3 of player with black stained glass pane named " " to close format slot 4 of player with black stained glass pane named " " to close format slot 5 of player with black stained glass pane named " " to close format slot 6 of player with black stained glass pane named " " to close format slot 7 of player with black stained glass pane named " " to close format slot 8 of player with black stained glass pane named " " to close format slot 9 of player with black stained glass pane named " " to close format slot 10 of player with black stained glass pane named " " to close format slot 11 of player with black stained glass pane named " " to close format slot 12 of player with black stained glass pane named " " to close format slot 14 of player with black stained glass pane named " " to close format slot 15 of player with black stained glass pane named " " to close format slot 16 of player with black stained glass pane named " " to close format slot 17 of player with black stained glass pane named " " to close format slot 18 of player with black stained glass pane named " " to close format slot 19 of player with black stained glass pane named " " to close format slot 20 of player with black stained glass pane named " " to close format slot 21 of player with black stained glass pane named " " to close format slot 22 of player with black stained glass pane named " " to close format slot 23 of player with black stained glass pane named " " to close format slot 24 of player with black stained glass pane named " " to close format slot 25 of player with black stained glass pane named " " to close format slot 26 of player with black stained glass pane named " " to close loop 50 times: wait 2 tick play raw sound "random.level.up" at player with pitch -5 volume 10 format slot 13 of player with random item out of {imxkvpi::chest::drop::*} to be unstealable set {_item} to random item out of {imxkvpi::chest::drop::*} add 1 to {_xxx} #format slot 26 of player with black stained glass named " " to close else: execute command "case give %player%" make player execute command "helpop {@nameskript} &cLista przedmiotow jest pusta" send "&cSkrzynie sa puste... prosimy sprobowac pozniej" to player stop if {_xxx} is equal to 50: open chest with 3 rows named "&cZABIERZ &6PRZEDMIOTY" to player format slot 13 of player with {_item} to be unstealable clear {_xxx} stop command /imxkvpi:case [] []: permission: imxkvpi.use.command.case permission message: &4Blad: &cNie wolno Ci uzywac tej komendy aliases: /case, /magicznaskrzynia trigger: if argument 1 isn't set: send "&8» &3ixCHEST &6by imxkvpi" to player send "{@nameskript} &6/case &8<&3give/add-drop/cleardrops&8> <&3ilosc&8> <&cNICK&8>" stop if argument 1 is "give": if player-arg is set: add {@case} named "{@namecase}" to player-arg's inventory add {@key} named "{@namekey}" to player-arg's inventory send "&8» &3Otrzymales zestaw {@name'zestaw'}" to player-arg stop else: send "&8» &c/case give &4" if argument 1 is "author" or "autor": send "&8{@nameskript} &6Created by &cimxkvpi ©" to player stop if argument 1 is "add-drop": add player's tool to {imxkvpi::chest::drop::*} send "&8█ &cDODANO PRZEDMIOT DO LISTY DROPU &8█" to player stop if argument 1 is "cleardrops": if {cleardrops::active} is equal to 0: send "&8» &cCzy napewno chcesz wyczyscic liste?" to player send "&8» &aJesli tak wykonaj polecenie po raz drugi" to player add 1 to {cleardrops::active} while {cleardrops::active} is 1: wait 120 seconds if {cleardrops::active} is 1: clear {cleardrops::active} stop else: if {cleardrops::active} is 1: clear {cleardrops::active} clear {imxkvpi::chest::drop::*} send "&8» &aPomyslnie &cusunieto &6liste dropow." to player stop