command /ity []: trigger: if arg 1 is not set: open chest with 2 rows named "&e&lDrop" to player wait 2 tick format slot 0 of player with 1 of tnt named "&aKup &ctnt" with lore "&eKoszt: &b16 emeraldow" to close then run [execute player command "/ity tnt"] format slot 1 of player with 1 of bread named "&aKup Chleb" with lore "&eKoszt: &b16 emeraldow" to close then run [execute player command "/ity chleb"] format slot 2 of player with 1 of chest named "&aKup skrzynia" with lore "&eKoszt: &b16 emeraldow" to close then run [execute player command "/ity skrzynia"] format slot 3 of player with 1 of book named "&aKup ksiazka" with lore "&eKoszt: &b16 emeraldow" to close then run [execute player command "/ity ksiazka"] if arg 1 is "tnt": if player has 16 emerald: add 64 tnt to player's inventory remove 16 emerald from player else: send "&cNie masz tylu emeraldow!" if arg 1 is "chleb": if player has 16 emerald: add 64 tnt to player's inventory remove 16 emerald from player else: send "&cNie masz tylu emeraldow!" if arg 1 is "skrzynia": if player has 16 emerald: add 64 chest to player's inventory remove 16 emerald from player else: send "&cNie masz tylu emeraldow!" if arg 1 is "ksiazka": if player has 16 emerald: add 64 book to player's inventory remove 16 emerald from player else: send "&cNie masz tylu emeraldow!"