Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- cena-speed-I: 1
- cena-speed-II: 2
- cena-speed-III: 3
- cena-fire-I: 1
- cena-fire-II: 2
- cena-fire-III: 3
- cena-regeneration-I: 1
- cena-regeneration-II: 2
- cena-regeneration-III: 3
- cena-night-I: 1
- cena-night-II: 2
- cena-night-III: 3
- cena-efekt-koxa: 10
- cena-haste-I: 1
- cena-haste-II: 2
- cena-haste-III: 3
- method "gui" {player and strona}:
- set {_player} to arg{1};
- set {_strona} to arg{2};
- if {_strona} is "strona-1":
- open chest with 3 rows named "&e&lSklep Efekty" to {_player}
- wait 1 tick
- format slot 11 of {_player} with 1 of potion of:8258 named "&cPotki Szybkosci" with lore "&6Speed: &bI-III" to run [function "gui" {{_player} and "strona-2-szybkosc"};]
- format slot 12 of {_player} with 1 of potion of:8259 named "&cPotki Odpornosci Na Ogien" with lore "&6Fire Resistance &bI-III" to run [function "gui" {{_player} and "strona-3-ogien"};]
- format slot 13 of {_player} with 1 of potion of:8193 named "&cPotki Regeneracji" with lore "&6Regeneration &bI-III" to run [function "gui" {{_player} and "strona-4-regeneracja"};]
- format slot 14 of {_player} with 1 of potion of:8262 named "&cPotki Widzenia W Ciemnosci" with lore "&6Night Vision &bI-III" to run [function "gui" {{_player} and "strona-5-widzenie"};]
- format slot 15 of {_player} with 1 of enchanted golden apple named "&cEfekt Koxa" with lore "&6Cena: &b{@cena-efekt-koxa}" to run [function "apply" {{_player} and "kox"};]
- format slot 22 of {_player} with 1 of beacon named "&cEfekt Haste" with lore "&6Haste &bI-III" to run [function "gui" {{_player} and "strona-7-haste"};]
- format slot 26 of {_player} with 1 of book named "&cAutor" with lore "&6mati770ka" to be unstealable
- if {_strona} is "strona-2-szybkosc":
- open chest with 3 rows named "&e&lSzybkosc I-III" to {_player}
- wait 1 tick
- format slot 12 of {_player} with 1 of water bottle named "&cSpeed I" with lore "&6Czas: &b5 Minut||&6Cena: &b{@cena-speed-I}" to run [function "apply" {{_player} and "speed1"};]
- format slot 13 of {_player} with 1 of water bottle named "&cSpeed II" with lore "&6Czas: &b5 Minut||&6Cena: &b{@cena-speed-II}" to run [function "apply" {{_player} and "speed2"};]
- format slot 14 of {_player} with 1 water bottle named "&cSpeed III" with lore "&6Czas: &b5 Minut||&6Cena: &b{@cena-speed-III}" to run [function "apply" {{_player} and "speed3"};]
- format slot 26 of {_player} with 1 of arrow named "&aPowrot" to run [function "gui" {{_player} and strona-1};]
- if {_strona} is "strona-3-ogien":
- open chest with 3 rows named "&e&lOdpornosc Ogien I-III" to {_player}
- wait 1 tick
- format slot 12 of {_player} with 1 of water bottle named "&cFire Resistance I" with lore "&6Czas: &b5 Minut||&6Cena: &b{@cena-fire-I}" to run [function "apply" {{_player} and "fire1"};]
- format slot 13 of {_player} with 1 of water bottle named "&cFire Resistance II" with lore "&6Czas: &b5 Minut||&6Cena: &b{@cena-fire-II}" to run [function "apply" {{_player} and "fire2"};]
- format slot 14 of {_player} with 1 of water bottle named "&cFire Resistance III" with lore "&6Czas: &b5 Minut||&6Cena: &b{@cena-fire-III}" to run [function "apply" {{_player} and "fire3"};]
- format slot 26 of {_player} with 1 of arrow named "&aPowrot" to run [function "gui" {{_player} and "strona-1"};]
- if {_strona} is "strona-4-regeneracja":
- open chest with 3 rows named "&e&lRegeneracja I-III" to {_player}
- wait 1 tick
- format slot 12 of {_player} with 1 of water bottle named "&cRegeneration I" with lore "&6Czas: &b5 Minut||&6Cena: &b{@cena-regeneration-I}" to run [function "apply" {{_player} and "regeneration1"};]
- format slot 13 of {_player} with 1 of water bottle named "&cRegeneration II" with lore "&6Czas: &b5 Minut||&6Cena: &b{@cena-regeneration-II}" to run [function "apply" {{_player} and "regeneration2"};]
- format slot 14 of {_player} with 1 of water bottle named "&cRegeneration III" with lore "&6Czas: &b5 Minut||&6Cena: &b{@cena-regeneration-III}" to run [function "apply" {{_player} and "regeneration3"};]
- format slot 26 of {_player} with 1 of arrow named "&aPowrot" to run [function "gui" {{_player} and "strona-1"};]
- if {_strona} is "strona-5-widzenie":
- open chest with 3 rows named "&e&lWidzenie W Ciemnosci I-III" to {_player}
- wait 1 tick
- format slot 12 of {_player} with 1 of water bottle named "&cNight Vision I" with lore "&6Czas: &b5 Minut||&6Cena: &b{@cena-night-I}" to run [function "apply" {{_player} and "night1"};]
- format slot 13 of {_player} with 1 of water bottle named "&cNight Vision II" with lore "&6Czas: &b5 Minut||&6Cena: &b{@cena-night-II}" to run [function "apply" {{_player} and "night2"};]
- format slot 14 of {_player} with 1 of water bottle named "&cNight Vision III" with lore "&6Czas: &b5 Minut||&6Cena: &b{@cena-night-III}" to run [function "apply" {{_player} and "night3"};]
- format slot 26 of {_player} with 1 of arrow named "&aPowrot" to run [function "gui" {{_player} and strona-1};]
- if {_strona} is "strona-6-haste":
- open chest with 3 rows named "&e&lHaste I-III" to {_player}
- wait 1 tick
- format slot 12 of {_player} with 1 of water bottle named "&cHaste I" with lore "&6Czas: &b5 Minut||&6Cena: &b{@cena-haste-I}" to run [function "apply" {{_player} and "haste1"};]
- format slot 13 of {_player} with 1 of water bottle named "&cHaste II" with lore "&6Czas: &b5 Minut||&6Cena: &b{@cena-haste-II}" to run [function "apply" {{_player} and "haste2"};]
- format slot 14 of {_player} with 1 of water bottle named "&cHaste III" with lore "&6Czas: &b5 Minut||&6Cena: &b{@cena-haste-III}" to run [function "apply" {{_player} and "haste3"};]
- format slot 26 of {_player} with 1 of arrow named "&aPowrot" to run [function "gui" {{_player} and "strona-1"};]
- method "apply" {player and effects}:
- set {_player} to arg{1};
- set {_effects} to arg{2};
- if {_effects} is "speed1":
- if {_player}'s inventory contains {@cena-speed-I} emerald:
- remove speed from {_player}
- apply speed 1 to {_player} for 5 minutes
- remove {@cena-speed-I} emerald from {_player}
- send "&cZakupiles Efekt: &eSpeed I" to {_player}
- else:
- send "&cNie posiadasz &6{@cena-speed-I} emeraldow" to {_player}
- if {_effects} is "speed2":
- if {_player}'s inventory contains {@cena-speed-II} emerald:
- remove speed from {_player}
- apply speed 2 to {_player} for 5 minutes
- send "&cZakupiles Efekt: &eSpeed II" to {_player}
- else:
- send "&cNie posiadasz &6{@cena-speed-II} emeraldow" to {_player}
- if {_effects} is "speed3":
- if {_player}'s inventory contains {@cena-speed-III} emerald:
- remove speed from {_player}
- apply speed 3 to {_player} for 5 minutes
- send "&cZakupiles Efekt: &eSpeed III" to {_player}
- else:
- send "&cNie posiadasz &6{@cena-speed-III} emeraldow" to {_player}
- if {_effects} is "fire1":
- if {_player}'s inventory contains {@cena-fire-I} emerald:
- remove fire resistance from {_player}
- apply fire resistance 1 to {_player} for 5 minutes
- send "&cZakupiles Efekt: &eFire Resistance I" to {_player}
- else:
- send "&cNie posiadasz &6{@cena-fire-I} emeraldow" to {_player}
- if {_effects} is "fire2":
- if {_player}'s inventory contains {@cena-fire-II} emerald:
- remove fire resistance from {_player}
- apply fire resistance 2 to {_player} for 5 minutes
- send "&cZakupiles Efekt: &eFire Resistance II" to {_player}
- else:
- send "&cNie posiadasz &6{@cena-fire-II} emeraldow" to {_player}
- if {_effects} is "fire3":
- if {_player}'s inventory contains {@cena-fire-III} emerald:
- remove fire resistance from {_player}
- apply fire resistance 3 to {_player} for 5 minutes
- send "&cZakupiles Efekt: &eFire Resistance III" to {_player}
- else:
- send "&cNie posiadasz &6{@cena-fire-III} emeraldow" to {_player}
- if {_effects} is "regeneration1":
- if {_player}'s inventory contains {@cena-regeneration-I} emerald:
- remove regeneration from {_player}
- apply regeneration 1 to {_player} for 5 minutes
- send "&cZakupiles Efekt: &eRegeneration I" to {_player}
- else:
- send "&cNie posiadasz &6{@cena-regeneration-I} emeraldow" to {_player}
- if {_effects} is "regeneration2":
- if {_player}'s inventory contains {@cena-regeneration-II} emerald:
- remove regeneration from {_player}
- apply regeneration 2 to {_player} for 5 minutes
- send "&cZakupiles Efekt: &eRegeneration II" to {_player}
- else:
- send "&cNie posiadasz &6{@cena-regeneration-II} emeraldow" to {_player}
- if {_effects} is "regeneration3":
- if {_player}'s inventory contains {@cena-regeneration-III} emerald:
- remove regeneration from {_player}
- apply regeneration 3 to {_player} for 5 minutes
- send "&cZakupiles Efekt: &eRegeneration III" to {_player}
- else:
- send "&cNie posiadasz &6{@cena-regeneration-III} emeraldow" to {_player}
- if {_effects} is "night1":
- if {_player}'s inventory contains {@cena-night-I} emerald:
- remove night vision from {_player}
- apply night vision 1 to {_player} for 5 minutes
- send "&cZakupiles Efekt: &eNight Vision I" to {_player}
- else:
- send "&cNie posiadasz &6{@cena-night-I} emeraldow" to {_player}
- if {_effects} is "night2":
- if {_player}'s inventory contains {@cena-night-II} emerald:
- remove night vision from {_player}
- apply night vision 2 to {_player} for 5 minutes
- send "&cZakupiles Efekt: &eNight Vision II" to {_player}
- else:
- send "&cNie posiadasz &6{@cena-night-II} emeraldow" to {_player}
- if {_effects} is "night3":
- if {_player}'s inventory contains {@cena-night-III} emerald:
- remove night vision from {_player}
- apply night vision 3 to {_player} for 5 minutes
- send "&cZakupiles Efekt: &eNight Vision III" to {_player}
- else:
- send "&cNie posiadasz &6{@cena-night-III} emeraldow" to {_player}
- if {_effects} is "kox":
- if {_player}'s inventory contains {@cena-efekt-koxa} emerald:
- remove absorption or regeneration or resistance or fire resistance from {_player}
- apply absorption to {_player} for 2 minutes
- apply regeneration to {_player} for 30 seconds
- apply resistance and fire resistance to {_player} for 5 minutes
- send "&cZakupiles Efekt: &eKox" to {_player}
- else:
- send "&cNie posiadasz &6{@cena-efekt-koxa} emeraldow" to {_player}
- if {_effects} is "haste1":
- if {_player}'s inventory contains {@cena-haste-I} emerald:
- remove haste from {_player}
- apply haste 1 to {_player} for 5 minutes
- send "&cZakupiles Efekt: &eHaste I" to {_player}
- else:
- send "&cNie posiadasz &6{@cena-haste-I} emeraldow" to {_player}
- if {_effects} is "haste2":
- if {_player}'s inventory contains {@cena-haste-II} emerald:
- remove haste from {_player}
- apply haste 2 to {_player} for 5 minutes
- send "&cZakupiles Efekt: &eHaste II" to {_player}
- else:
- send "&cNie posiadasz &6{@cena-haste-II} emeraldow" to {_player}
- if {_effects} is "haste3":
- if {_player}'s inventory contains {@cena-haste-III} emerald:
- remove haste from {_player}
- apply haste 3 to {_player} for 5 minutes
- send "&cZakupiles Efekt: &eHaste III" to {_player}
- else:
- send "&cNie posiadasz &6{@cena-haste-III} emeraldow" to {_player}
- command /efekty:
- trigger:
- function "gui" {player and "strona-1"};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement