command /efekty []: aliases: e, efekt trigger: wait 1 tick open chest with 5 row named "&6" to player set player's current inventory's slot 0 to light gray glass named "&6" loop 44 times: set player's current inventory's slot loop-number to light gray glass named "&6" set player's current inventory's slot 10 to stone pickaxe named "&8>> &c&lHaste I &8<<" with lore " &8» &cCzas trwania&7: 5 minut|| &8» &cKoszt&7: 20 szmaragdow" set player's current inventory's slot 12 to sugar named "&8>> &c&lSpeed I &8<<" with lore "&8 » &cCzas trwania&7: 2 minuty||&8 » &cKoszt&7: 32 szmaragdy" set player's current inventory's slot 14 to gold sword named "&8>> &c&lStrenght I &8<<" with lore "&8 » &cCzas trwania&7: 2 minuty||&8 » &cKoszt&7: 64 szmaragdy" set player's current inventory's slot 16 to nether star named "&8>> &c&lJump Boost I &8<<" with lore "&8 » &cCzas trwania&7: 3 minuty||&8 » &cKoszt&7: 64 szmaragdy" set player's current inventory's slot 19 to 2 iron pickaxe named "&8>> &c&lHaste II &8<<" with lore "&8 » &cCzas trwania&7: 3 minuty||&8 » &cKoszt&7: 32 szmaragdy" set player's current inventory's slot 21 to 2 gold boots named "&8>> &c&lSpeed II &8<<" with lore "&8 » &cCzas trwania&7: 2 minuty||&8 » &cKoszt&7: 48 szmaragdow" set player's current inventory's slot 25 to 2 gold leggings named "&8>> &c&lJump Boost II &8<<" with lore "&8 » &cCzas trwania&7: 2 minuty||&8 » &cKoszt&7: 80 szmaragdow" set player's current inventory's slot 28 to 3 diamond pickaxe named "&8>> &c&lHaste III &8<<" with lore "&8 » &cCzas trwania&7: 3 minuty||&8 » &cKoszt&7: 64 szmaragdy" on inventory click: if inventory name of current inventory of player is "&6": if player's current inventory's slot slot is light gray glass: cancel event if player's current inventory's slot slot is stone pickaxe: cancel event execute player command "eshop haste1" if player's current inventory's slot slot is 2 iron pickaxe: cancel event execute player command "eshop haste2" if player's current inventory's slot slot is 3 diamond pickaxe: cancel event execute player command "eshop haste3" if player's current inventory's slot slot is sugar: cancel event execute player command "eshop speed1" if player's current inventory's slot slot is 2 gold boots: cancel event execute player command "eshop speed2" if player's current inventory's slot slot is gold sword: cancel event execute player command "eshop strength1" if player's current inventory's slot slot is nether star: cancel event execute player command "eshop jumpboost1" if player's current inventory's slot slot is 2 golden leggings: cancel event execute player command "eshop jumpboost2" command /eshop []: trigger: if arg 1 is "haste1": if player don't have 20 emerald: send "&6&lEFEKTY &8» &aNie posiadasz wystarczajaco duzo szmaragdow!" stop else: remove 20 emerald from player send "&6&lEFEKTY &8» &aKupiles efekt &c&lHaste I" apply potion of haste of tier 1 to the player for 5 minutes stop if arg 1 is "haste2": if player don't have 32 emerald: send "&6&lEFEKTY &8» &aNie posiadasz wystarczajaco duzo szmaragdow!" stop else: remove 32 emerald from player send "&6&lEFEKTY &8» &aKupiles efekt &c&lHaste II" apply potion of haste of tier 2 to the player for 3 minutes stop if arg 1 is "haste3": if player don't have 64 emerald: send "&6&lEFEKTY &8» &aNie posiadasz wystarczajaco duzo szmaragdow!" stop else: remove 64 emerald from player send "&6&lEFEKTY &8» &aKupiles efekt &c&lHaste III" apply potion of haste of tier 3 to the player for 3 minutes stop if arg 1 is "speed1": if player don't have 32 emerald: send "&6&lEFEKTY &8» &aNie posiadasz wystarczajaco duzo szmaragdow!" stop else: remove 64 emerald from player send "&6&lEFEKTY &8» &aKupiles efekt &c&lSpeed I" apply potion of speed of tier 1 to the player for 2 minutes stop if arg 1 is "speed2": if player don't have 48 emerald: send "&6&lEFEKTY &8» &aNie posiadasz wystarczajaco duzo szmaragdow!" stop else: remove 48 emerald from player send "&6&lEFEKTY &8» &aKupiles efekt &c&lSpeed II" apply potion of speed of tier 2 to the player for 2 minutes stop if arg 1 is "strength1": if player don't have 48 emerald: send "&6&lEFEKTY &8» &aNie posiadasz wystarczajaco duzo szmaragdow!" stop else: remove 64 emerald from player send "&6&lEFEKTY &8» &aKupiles efekt &c&lStrength I" apply potion of strength of tier 1 to the player for 2 minutes stop if arg 1 is "jumpboost1": if player don't have 64 emerald: send "&6&lEFEKTY &8» &aNie posiadasz wystarczajaco duzo szmaragdow!" stop else: remove 64 emerald from player send "&6&lEFEKTY &8» &aKupiles &c&lJump Boost I" apply potion of jump boost of tier 1 to the player for 3 minutes stop if arg 1 is "jumpboost2": if player don't have 80 emerald: send "&6&lEFEKTY &8» &aNie posiadasz wystarczajaco duzo szmaragdow!" stop else: remove 80 emerald from player send "&6&lEFEKTY &8» &aKupiles &c&lJump Boost II" apply potion of jump boost of tier 2 to the player for 2 minutes