Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- cena-speed-I: 300
- cena-speed-II: 400
- cena-speed-III: 500
- #========================#
- cena-fire-I: 350
- cena-fire-II: 450
- cena-fire-III: 550
- #========================#
- cena-regeneration-I: 500
- cena-regeneration-II: 650
- cena-regeneration-III: 750
- #=========================#
- cena-night-I: 700
- cena-night-II: 850
- cena-night-III: 950
- #=========================#
- cena-efekt-koxa: 2500
- #=========================#
- cena-haste-I: 1000
- cena-haste-II: 2000
- cena-haste-III: 2500
- 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" with lore "&6Speed: &bI-III" 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" with lore "&6Fire Resistance &bI-III" to run "sklep-efekty %player-arg% strona-3-ogien"
- format slot 13 of player-arg with 1 of potion of:8193 named "&cPotki Regeneracji" with lore "&6Regeneration &bI-III" 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" with lore "&6Cena: &b{@cena-efekt-koxa}" to run "sklep-efekty %player-arg% kox"
- format slot 22 of player-arg with 1 of beacon named "&cEfekt Haste" with lore "&6Haste &bI-III" 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||&6Cena: &b{@cena-speed-I}" 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||&6Cena: &b{@cena-speed-II}" 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||&6Cena: &b{@cena-speed-III}" 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||&6Cena: &b{@cena-fire-I}" 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||&6Cena: &b{@cena-fire-II}" 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||&6Cena: &b{@cena-fire-III}" 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||&6Cena: &b{@cena-regeneration-I}" 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||&6Cena: &b{@cena-regeneration-II}" 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||&6Cena: &b{@cena-regeneration-III}" 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||&6Cena: &b{@cena-night-I}" 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||&6Cena: &b{@cena-night-II}" 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||&6Cena: &b{@cena-night-III}" 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||&6Cena: &b{@cena-haste-I}" 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||&6Cena: &b{@cena-haste-II}" 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||&6Cena: &b{@cena-haste-III}" 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's balance is bigger than or equal to {@cena-speed-I}:
- remove speed from player-arg
- apply speed 1 to player-arg for 5 minutes
- subtract {@cena-speed-I} from player-arg's balance
- send "&cZakupiles Efekt: &eSpeed I" to player-arg
- else:
- send "&cNie posiadasz &6{@cena-speed-I}$" to player-arg
- if arg 2 is "speed2":
- if player-arg's balance is bigger than or equal to {@cena-speed-II}:
- remove speed from player-arg
- apply speed 2 to player-arg for 5 minutes
- subtract {@cena-speed-II} from player-arg's balance
- send "&cZakupiles Efekt: &eSpeed II" to player-arg
- else:
- send "&cNie posiadasz &6{@cena-speed-II}$" to player-arg
- if arg 2 is "speed3":
- if player-arg's balance is bigger than or equal to {@cena-speed-III}:
- remove speed from player-arg
- apply speed 3 to player-arg for 5 minutes
- subtract {@cena-speed-III} from player-arg's balance
- send "&cZakupiles Efekt: &eSpeed III" to player-arg
- else:
- send "&cNie posiadasz &6{@cena-speed-III}$" to player-arg
- if arg 2 is "fire1":
- if player-arg's balance is bigger than or equal to {@cena-fire-I}:
- remove fire resistance from player-arg
- apply fire resistance 1 to player-arg for 5 minutes
- subtract {@cena-fire-I} from player-arg's balance
- send "&cZakupiles Efekt: &eFire Resistance I" to player-arg
- else:
- send "&cNie posiadasz &6{@cena-fire-I}$" to player-arg
- if arg 2 is "fire2":
- if player-arg's balance is bigger than or equal to {@cena-fire-II}:
- remove fire resistance from player-arg
- apply fire resistance 2 to player-arg for 5 minutes
- subtract {@cena-fire-II} from player-arg's balance
- send "&cZakupiles Efekt: &eFire Resistance II" to player-arg
- else:
- send "&cNie posiadasz &6{@cena-fire-II}$" to player-arg
- if arg 2 is "fire3":
- if player-arg's balance is bigger than or equal to {@cena-fire-III}:
- remove fire resistance from player-arg
- apply fire resistance 3 to player-arg for 5 minutes
- subtract {@cena-fire-III} from player-arg's balance
- send "&cZakupiles Efekt: &eFire Resistance III" to player-arg
- else:
- send "&cNie posiadasz &6{@cena-fire-III}$" to player-arg
- if arg 2 is "regeneration1":
- if player-arg's balance is bigger than or equal to {@cena-regeneration-I}:
- remove regeneration from player-arg
- apply regeneration 1 to player-arg for 5 minutes
- subtract {@cena-regeneration-I} from player-arg's balance
- send "&cZakupiles Efekt: &eRegeneration I" to player-arg
- else:
- send "&cNie posiadasz &6{@cena-regeneration-I}$" to player-arg
- if arg 2 is "regeneration2":
- if player-arg's balance is bigger than or equal to {@cena-regeneration-II}:
- remove regeneration from player-arg
- apply regeneration 2 to player-arg for 5 minutes
- subtract {@cena-regeneration-II} from player-arg's balance
- send "&cZakupiles Efekt: &eRegeneration II" to player-arg
- else:
- send "&cNie posiadasz &6{@cena-regeneration-II}$" to player-arg
- if arg 2 is "regeneration3":
- if player-arg's balance is bigger than or equal to {@cena-regeneration-III}:
- remove regeneration from player-arg
- apply regeneration 3 to player-arg for 5 minutes
- subtract {@cena-regeneration-III} from player-arg's balance
- send "&cZakupiles Efekt: &eRegeneration III" to player-arg
- else:
- send "&cNie posiadasz &6{@cena-regeneration-III}$" to player-arg
- if arg 2 is "night1":
- if player-arg's balance is bigger than or equal to {@cena-night-I}:
- remove night vision from player-arg
- apply night vision 1 to player-arg for 5 minutes
- subtract {@cena-night-I} from player-arg's balance
- send "&cZakupiles Efekt: &eNight Vision I" to player-arg
- else:
- send "&cNie posiadasz &6{@cena-night-I}$" to player-arg
- if arg 2 is "night2":
- if player-arg's balance is bigger than or equal to {@cena-night-II}:
- remove night vision from player-arg
- apply night vision 2 to player-arg for 5 minutes
- subtract {@cena-night-II} from player-arg's balance
- send "&cZakupiles Efekt: &eNight Vision II" to player-arg
- else:
- send "&cNie posiadasz &6{@cena-night-II}$" to player-arg
- if arg 2 is "night3":
- if player-arg's balance is bigger than or equal to {@cena-night-III}:
- remove night vision from player-arg
- apply night vision 3 to player-arg for 5 minutes
- subtract {@cena-night-III} from player-arg's balance
- send "&cZakupiles Efekt: &eNight Vision III" to player-arg
- else:
- send "&cNie posiadasz &6{@cena-night-III}$" to player-arg
- if arg 2 is "kox":
- if player-arg's balance is bigger than or equal to {@cena-efekt-koxa}:
- remove absorption or regeneration or resistance or fire resistance from player-arg
- apply absorption to player-arg for 2 minutes
- apply regeneration to player-arg for 30 seconds
- apply resistance and fire resistance to player-arg for 5 minutes
- subtract {@cena-efekt-koxa} from player-arg's balance
- 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
- else:
- send "&cNie posiadasz &6{@cena-efekt-koxa}$" to player-arg
- if arg 2 is "haste1":
- if player-arg's balance is bigger than or equal to {@cena-haste-I}:
- remove haste from player-arg
- apply haste 1 to player-arg for 5 minutes
- subtract {@cena-haste-I} from player-arg's balance
- send "&cZakupiles Efekt: &eHaste I" to player-arg
- else:
- send "&cNie posiadasz &6{@cena-haste-I}$" to player-arg
- if arg 2 is "haste2":
- if player-arg's balance is bigger than or equal to {@cena-haste-II}:
- remove haste from player-arg
- apply haste 2 to player-arg for 5 minutes
- subtract {@cena-haste-II} from player-arg's balance
- send "&cZakupiles Efekt: &eHaste II" to player-arg
- else:
- send "&cNie posiadasz &6{@cena-haste-II}$" to player-arg
- if arg 2 is "haste3":
- if player-arg's balance is bigger than or equal to {@cena-haste-III}:
- remove haste from player-arg
- apply haste 3 to player-arg for 5 minutes
- subtract {@cena-haste-III} from player-arg's balance
- send "&cZakupiles Efekt: &eHaste III" to player-arg
- else:
- send "&cNie posiadasz &6{@cena-haste-III}$" to player-arg
- else:
- send "&cKomenda wykonywalna tylko w Consoli"
Advertisement
Add Comment
Please, Sign In to add comment