options: koxy: 5 options: looptime: 1000 options: textkox: &cMiales za duzo koxow w eq limit to, %{@koxy}% reszta twoich koxow zostala przeniesiona do /schowek! options: namegui: &6&lSchowek on eat golden apple:1: wait 4 tick if player has {@koxy} golden apple:1: send "{@textkox}" if player has {@koxy} golden apple:1: loop {@looptime} times: remove 1 golden apple:1 from player add 1 to {sch.koxy.%player%} stop command /schowek []: trigger: if arg 1 is not set: open chest with 1 rows named "{@namegui}" to player wait 2 tick format slot 0 of player with black glass named "&f" to run [execute player command "schowek"] format slot 2 of player with black glass named "&f" to run [execute player command "schowek"] format slot 4 of player with black glass named "&f" to run [execute player command "schowek"] format slot 7 of player with black glass named "&f" to run [execute player command "schowek"] format slot 3 of player with black glass named "&f" to run [execute player command "schowek"] format slot 5 of player with black glass named "&f" to run [execute player command "schowek"] format slot 6 of player with black glass named "&f" to run [execute player command "schowek"] format slot 8 of player with black glass named "&f" to run [execute player command "schowek"] format slot 1 of player with golden apple:1 named "&6&lKoxy" with lore "&8» &7W schowku: &c%{sch.koxy.%player%}%||&8» &7Limit: %{@koxy}-1%" to run [execute player command "schowek koxy"] stop if arg 1 is "koxy": close player's inventory set {_a} to {sch.koxy.%player%} loop {_a} times: remove 1 from {sch.koxy.%player%} if player can hold 1 golden apple:1: give 1 golden apple:1 to player else: drop 1 golden apple:1 at player on join: if {sch.koxy.%player%} is not set: set {sch.koxy.%player%} to 0 stop