Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /efekty:
- trigger:
- execute console command "sklep-efekty %player% strona-1"
- command /sklep-efekty [<player>] [<text>]:
- trigger:
- if sender is console:
- if arg 2 is "strona-1":
- wait 2 tick
- open chest with 3 rows named "&e&lSklep Efekty" to player-arg
- wait 1 tick
- format slot 11 of player-arg with 1 of potion of:8258 named "&cPotki Szybkosci" to run "sklep-efekty %player-arg% strona-2-szybkosc"
- format slot 12 of player-arg with 1 of potion of:8259 named "&cPotki Odpornosci Na Ogien" to run "sklep-efekty %player-arg% strona-3-ogien"
- format slot 13 of player-arg with 1 of potion of:8193 named "&cPotki Regeneracji" to run "sklep-efekty %player-arg% strona-4-regeneracja"
- format slot 14 of player-arg with 1 of potion of:8262 named "&cPotki Widzenia W Ciemnosci" with lore "&6Night Vision &bI-III" to run "sklep-efekty %player-arg% strona-5-widzenie"
- format slot 15 of player-arg with 1 of enchanted golden apple named "&cEfekt Koxa" to run "sklep-efekty %player-arg% kox"
- format slot 22 of player-arg with 1 of beacon named "&cEfekt Haste" to run "sklep-efekty %player-arg% strona-6-haste"
- format slot 26 of player-arg with 1 of book named "&cAutor" with lore "&6mati770ka" to be unstealable
- if arg 2 is "strona-2-szybkosc":
- wait 2 tick
- open chest with 3 rows named "&e&lSzybkosc I-III" to player-arg
- wait 1 tick
- format slot 12 of player-arg with 1 of water bottle named "&cSpeed I" with lore "&6Czas: &b5 Minut" to run "sklep-efekty %player-arg% speed1"
- format slot 13 of player-arg with 1 of water bottle named "&cSpeed II" with lore "&6Czas: &b5 Minut" to run "sklep-efekty %player-arg% speed2"
- format slot 14 of player-arg with 1 water bottle named "&cSpeed III" with lore "&6Czas: &b5 Minut" to run "sklep-efekty %player-arg% speed3"
- format slot 26 of player-arg with 1 of arrow named "&aPowrot" to run "sklep-efekty %player-arg% strona-1"
- if arg 2 is "strona-3-ogien":
- wait 2 tick
- open chest with 3 rows named "&e&lOdpornosc Ogien I-III" to player-arg
- wait 1 tick
- format slot 12 of player-arg with 1 of water bottle named "&cFire Resistance I" with lore "&6Czas: &b5 Minut" to run "sklep-efekty %player-arg% fire1"
- format slot 13 of player-arg with 1 of water bottle named "&cFire Resistance II" with lore "&6Czas: &b5 Minut" to run "sklep-efekty %player-arg% fire2"
- format slot 14 of player-arg with 1 of water bottle named "&cFire Resistance III" with lore "&6Czas: &b5 Minut" to run "sklep-efekty %player-arg% fire3"
- format slot 26 of player-arg with 1 of arrow named "&aPowrot" to run "sklep-efekty %player-arg% strona-1"
- if arg 2 is "strona-4-regeneracja":
- wait 2 tick
- open chest with 3 rows named "&e&lRegeneracja I-III" to player-arg
- wait 1 tick
- format slot 12 of player-arg with 1 of water bottle named "&cRegeneration I" with lore "&6Czas: &b5 Minut" to run "sklep-efekty %player-arg% regeneration1"
- format slot 13 of player-arg with 1 of water bottle named "&cRegeneration II" with lore "&6Czas: &b5 Minut" to run "sklep-efekty %player-arg% regeneration2"
- format slot 14 of player-arg with 1 of water bottle named "&cRegeneration III" with lore "&6Czas: &b5 Minut" to run "sklep-efekty %player-arg% regeneration3"
- format slot 26 of player-arg with 1 of arrow named "&aPowrot" to run "sklep-efekty %player-arg% strona-1"
- if arg 2 is "strona-5-widzenie":
- wait 2 tick
- open chest with 3 rows named "&e&lWidzenie W Ciemnosci I-III" to player-arg
- wait 1 tick
- format slot 12 of player-arg with 1 of water bottle named "&cNight Vision I" with lore "&6Czas: &b5 Minut" to run "sklep-efekty %player-arg% night1"
- format slot 13 of player-arg with 1 of water bottle named "&cNight Vision II" with lore "&6Czas: &b5 Minut" to run "sklep-efekty %player-arg% night2"
- format slot 14 of player-arg with 1 of water bottle named "&cNight Vision III" with lore "&6Czas: &b5 Minut" to run "sklep-efekty %player-arg% night3"
- format slot 26 of player-arg with 1 of arrow named "&aPowrot" to run "sklep-efekty %player-arg% strona-1"
- if arg 2 is "strona-6-haste":
- wait 2 tick
- open chest with 3 rows named "&e&lHaste I-III" to player-arg
- wait 1 tick
- format slot 12 of player-arg with 1 of water bottle named "&cHaste I" with lore "&6Czas: &b5 Minut" to run "sklep-efekty %player-arg% haste1"
- format slot 13 of player-arg with 1 of water bottle named "&cHaste II" with lore "&6Czas: &b5 Minut" to run "sklep-efekty %player-arg% haste2"
- format slot 14 of player-arg with 1 of water bottle named "&cHaste III" with lore "&6Czas: &b5 Minut" to run "sklep-efekty %player-arg% haste3"
- format slot 26 of player-arg with 1 of arrow named "&aPowrot" to run "sklep-efekty %player-arg% strona-1"
- if arg 2 is "speed1":
- if player-arg doesn't have diamond block:
- send "&cNie posiadasz bloku diamentu." to player-arg
- stop
- remove speed from player-arg
- apply speed 1 to player-arg for 5 minutes
- remove 1 diamond block from player-arg
- send "&cZakupiles Efekt: &eSpeed I" to player-arg
- if arg 2 is "speed2":
- if player-arg doesn't have diamond block:
- send "&cNie posiadasz bloku diamentu." to player-arg
- stop
- remove speed from player-arg
- apply speed 2 to player-arg for 5 minutes
- remove 1 diamond block from player-arg
- send "&cZakupiles Efekt: &eSpeed II" to player-arg
- if arg 2 is "speed3":
- if player-arg doesn't have diamond block:
- send "&cNie posiadasz bloku diamentu." to player-arg
- stop
- remove speed from player-arg
- apply speed 3 to player-arg for 5 minutes
- remove 1 diamond block from player-arg
- send "&cZakupiles Efekt: &eSpeed III" to player-arg
- if arg 2 is "fire1":
- if player-arg doesn't have diamond block:
- send "&cNie posiadasz bloku diamentu." to player-arg
- stop
- remove fire resistance from player-arg
- apply fire resistance 1 to player-arg for 5 minutes
- remove 1 diamond block from player-arg
- send "&cZakupiles Efekt: &eFire Resistance I" to player-arg
- if arg 2 is "fire2":
- if player-arg doesn't have diamond block:
- send "&cNie posiadasz bloku diamentu." to player-arg
- stop
- remove fire resistance from player-arg
- apply fire resistance 2 to player-arg for 5 minutes
- remove 1 diamond block from player-arg
- send "&cZakupiles Efekt: &eFire Resistance II" to player-arg
- if arg 2 is "fire3":
- if player-arg doesn't have diamond block:
- send "&cNie posiadasz bloku diamentu." to player-arg
- stop
- remove fire resistance from player-arg
- apply fire resistance 3 to player-arg for 5 minutes
- remove 1 diamond block from player-arg
- send "&cZakupiles Efekt: &eFire Resistance III" to player-arg
- if arg 2 is "regeneration1":
- if player-arg doesn't have diamond block:
- send "&cNie posiadasz bloku diamentu." to player-arg
- stop
- remove regeneration from player-arg
- apply regeneration 1 to player-arg for 5 minutes
- remove 1 diamond block from player-arg
- send "&cZakupiles Efekt: &eRegeneration I" to player-arg
- if arg 2 is "regeneration2":
- if player-arg doesn't have diamond block:
- send "&cNie posiadasz bloku diamentu." to player-arg
- stop
- remove regeneration from player-arg
- apply regeneration 2 to player-arg for 5 minutes
- remove 1 diamond block from player-arg
- send "&cZakupiles Efekt: &eRegeneration II" to player-arg
- if arg 2 is "regeneration3":
- if player-arg doesn't have diamond block:
- send "&cNie posiadasz bloku diamentu." to player-arg
- stop
- remove regeneration from player-arg
- apply regeneration 3 to player-arg for 5 minutes
- remove 1 diamond block from player-arg
- send "&cZakupiles Efekt: &eRegeneration III" to player-arg
- if arg 2 is "night1":
- if player-arg doesn't have diamond block:
- send "&cNie posiadasz bloku diamentu." to player-arg
- stop
- remove night vision from player-arg
- apply night vision 1 to player-arg for 5 minutes
- remove 1 diamond block from player-arg
- send "&cZakupiles Efekt: &eNight Vision I" to player-arg
- if arg 2 is "night2":
- if player-arg doesn't have diamond block:
- send "&cNie posiadasz bloku diamentu." to player-arg
- stop
- remove night vision from player-arg
- apply night vision 2 to player-arg for 5 minutes
- remove 1 diamond block from player-arg
- send "&cZakupiles Efekt: &eNight Vision II" to player-arg
- if arg 2 is "night3":
- if player-arg doesn't have diamond block:
- send "&cNie posiadasz bloku diamentu." to player-arg
- stop
- remove night vision from player-arg
- apply night vision 3 to player-arg for 5 minutes
- remove 1 diamond block from player-arg
- send "&cZakupiles Efekt: &eNight Vision III" to player-arg
- if arg 2 is "kox":
- if player-arg doesn't have diamond block:
- send "&cNie posiadasz bloku diamentu." to player-arg
- stop
- remove absorption and regeneration and resistance and fire resistance from player-arg
- apply absorption to player-arg for 2 minutes
- apply regeneration to player-arg for 30 seconds
- apply resistance to player-arg for 5 minutes
- apply fire resistance to player-arg for 5 minutes
- remove 1 diamond block from player-arg
- send "&cZakupiles Efekt: &eKox" to player-arg
- create timed bar with text "&e%player-arg% &cZakupil Efekt &b&lKoxa" to all players for 7 seconds
- if arg 2 is "haste1":
- if player-arg doesn't have diamond block:
- send "&cNie posiadasz bloku diamentu." to player-arg
- stop
- remove haste from player-arg
- apply haste 1 to player-arg for 5 minutes
- remove 1 diamond block from player-arg
- send "&cZakupiles Efekt: &eHaste I" to player-arg
- if arg 2 is "haste2":
- if player-arg doesn't have diamond block:
- send "&cNie posiadasz bloku diamentu." to player-arg
- stop
- remove haste from player-arg
- apply haste 2 to player-arg for 5 minutes
- remove 1 diamond block from player-arg
- send "&cZakupiles Efekt: &eHaste II" to player-arg
- if arg 2 is "haste3":
- if player-arg doesn't have diamond block:
- send "&cNie posiadasz bloku diamentu." to player-arg
- stop
- remove haste from player-arg
- apply haste 3 to player-arg for 5 minutes
- remove 1 diamond block from player-arg
- send "&cZakupiles Efekt: &eHaste III" to player-arg
- else:
- send "&cKomenda wykonywalna tylko w Consoli"
Add Comment
Please, Sign In to add comment