command /efekty: open chest with 2 rows named "&6&lEFEKTY" to player set {_} to 0 loop 18 times: set slot {_} of player's current inventory to gray glass pane named " " add 1 to {_} set slot 2 of player's current inventory to sugar named "&7&lSPEED&7(&58Min&7)" with lore "&7Koszt &8&l>> &664 Szmaragdy" set slot 4 of player's current inventory to blaze powder named "&7&lSILA&7(&54Min&7)" with lore "&7Koszt &8&l>> &6128 Szmaragdy" set slot 6 of player's current inventory to fire charge named "&7&lFIRE RESISTANCE&7(&58Min&7)" with lore "&7Koszt &8&l>> &664 Szmaragdy" set slot 13 of player's current inventory to Fire named "&5&lWYJDZ" on inventory click: if inventory name of player's current inventory is "&6&lEFEKTY": cancel event if clicked item is sugar named "&7&lSPEED&7(&58Min&7)" with lore "&7Koszt &8&l>> &664 Szmaragdy": if player has 64 emeralds: remove 64 emeralds from player remove speed from player wait 1 tick apply speed to player for 8 minutes broadcast "&7Gracz &6%arg 1% &7Kupil Efekt &9Szybkosci." else: send "&6Nie Masz &464 Szmaragdow" to player-arg if clicked item is blaze powder named "&7&lSILA&7(&54Min&7)" with lore "&7Koszt &8&l>> &6128 Szmaragdy": if player has 128 emeralds: remove 128 emeralds from player remove strength from player wait 1 tick apply strength to player for 4 minutes broadcast "&7Gracz &6%arg 1% &7Kupil Efekt &9Sily." else: send "&6Nie Masz &4128 Szmaragdow" to player-arg if clicked item is fire charge named "&7&lFIRE RESISTANCE&7(&58Min&7)" with lore "&7Koszt &8&l>> &664 Szmaragdy": if player has 64 emeralds: remove 64 emeralds from player remove fire resistance from player wait 1 tick apply fire resistance to player for 8 minutes broadcast "&7Gracz &6%arg 1% &7Kupil Efekt &9Sily." else: send "&6Nie Masz &464 Szmaragdow" to player-arg if clicked item is Fire named "&5&lWYJDZ": close player's inventory