Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- at 7am:
- {evjajko.startevent} is true:
- loop all players:
- add 1 to {_iloscG}
- {_iloscG} > 4:
- difference between {evjajko.time.%world%} and now is bigger than 20 minutes:
- set {evjajko.time.%world%} to now
- loop {evjajko.areny.%world%::*}:
- loop 10 times:
- set {_cordX1} to x coord of {evjajko.loc.%world%.%loop-value%.1}
- set {_cordY1} to y coord of {evjajko.loc.%world%.%loop-value%.1}
- set {_cordZ1} to z coord of {evjajko.loc.%world%.%loop-value%.1}
- set {_cordX2} to x coord of {evjajko.loc.%world%.%loop-value%.2}
- set {_cordY2} to y coord of {evjajko.loc.%world%.%loop-value%.2}
- set {_cordZ2} to z coord of {evjajko.loc.%world%.%loop-value%.2}
- set {_RandCordX} to random integer between {_cordX1} and {_cordX2}
- set {_RandCordY} to random integer between {_cordY1} and {_cordY2}
- set {_RandCordZ} to random integer between {_cordZ1} and {_cordZ2}
- set {_loc} to location at {_RandCordX} + 0.5, {_RandCordY}, {_RandCordZ} + 0.5
- loop 200 times:
- block at {_loc} is not air:
- set {_loc} to location 1 meter behind {_loc}
- else:
- exit 2 sections
- loop 200 times:
- block below {_loc} is air:
- set {_loc} to location 1 meter below {_loc}
- else:
- exit 2 sections
- spawn 1 chicken at {_loc}
- set name of spawned entity to "&eZajaczek wielkanocny"
- apply speed 3 to spawned entity for 2 hours
- {evjajko.areny.%world%::*} is set:
- broadcast "&e[Wielkanoc] &aNa mapie zrespily sie Wielkanocne zajaczki!"
- broadcast "&aNie radze ich zabijac bez dobrego seta"
- {evjajko.time.%world%} is not set:
- set {evjajko.time.%world%} to now
- loop {evjajko.areny.%world%::*}:
- loop 10 times:
- set {_cordX1} to x coord of {evjajko.loc.%world%.%loop-value%.1}
- set {_cordY1} to y coord of {evjajko.loc.%world%.%loop-value%.1}
- set {_cordZ1} to z coord of {evjajko.loc.%world%.%loop-value%.1}
- set {_cordX2} to x coord of {evjajko.loc.%world%.%loop-value%.2}
- set {_cordY2} to y coord of {evjajko.loc.%world%.%loop-value%.2}
- set {_cordZ2} to z coord of {evjajko.loc.%world%.%loop-value%.2}
- set {_RandCordX} to random integer between {_cordX1} and {_cordX2}
- set {_RandCordY} to random integer between {_cordY1} and {_cordY2}
- set {_RandCordZ} to random integer between {_cordZ1} and {_cordZ2}
- set {_loc} to location at {_RandCordX} + 0.5, {_RandCordY}, {_RandCordZ} + 0.5
- loop 200 times:
- block at {_loc} is not air:
- set {_loc} to location 1 meter behind {_loc}
- else:
- exit 2 sections
- loop 200 times:
- block below {_loc} is air:
- set {_loc} to location 1 meter below {_loc}
- else:
- exit 2 sections
- spawn 1 chicken at {_loc}
- set name of spawned entity to "&eZajaczek wielkanocny"
- apply speed 3 to spawned entity for 2 hours
- {evjajko.areny.%world%::*} is set:
- broadcast "&e[Wielkanoc] &aNa mapie zrespily sie Wielkanocne zajaczki!"
- broadcast "&aNie radze ich zabijac bez dobrego seta"
- else:
- stop
- # ----------KOMENDY----------
- command /evjajko [<text>] [<text>] [<text>] [<text>]:
- permission: evjajko.admin
- trigger:
- arg 1 is not set:
- send "&cUzyj /evjajko set|del|list|event"
- stop
- # USTAWIANIE OBSZARU SPAWNU KROLICZKOW
- arg 1 is "set":
- arg 2 is set:
- {evjajko.areny.%world%::%arg 2%} is not set:
- arg 3 is "1" or "2":
- set {evjajko.loc.%world%.%arg 2%.%arg 3%} to player's location
- send "&aUstawiono %arg 3% pozycje obszaru %arg 2% w swiecie %world%"
- {evjajko.loc.%world%.%arg 2%.%3 - arg 3 parsed as integer%} is not set:
- send "&cNalezy ustawic jeszcze pozycje %3 - arg 3 parsed as integer% tego regionu"
- else:
- set {evjajko.areny.%world%::%arg 2%} to arg 2
- send "&b&lUstawiono region!"
- send "&eAktywne obszary w swiecie %world%: %size of {evjajko.areny::*}%"
- stop
- send "&cpodaj numer pozycji (1 lub 2)"
- send "&cUzyj /evjajko set <obszar> <numer>"
- stop
- send "juz istnieje obszar o takiej nazwie"
- stop
- send "&cPodaj nazwe obszaru"
- send "&cUzyj /evjajko set <obszar> <numer>"
- stop
- # USUWANIE OBSZARU SPAWNU KROLICZKOW
- arg 1 is "del":
- arg 2 is set:
- arg 3 is set:
- {evjajko.areny.%arg 3%::%arg 2%} is not set:
- send "&cNie ma takiego obszaru w tym swiecie"
- stop
- delete {evjajko.areny.%arg 3%::%arg 2%}
- delete {evjajko.loc.%arg 3%.%arg 2%.1}
- delete {evjajko.loc.%arg 3%.%arg 2%.2}
- send "&aUsunieto obszar %arg 2% w swiecie %arg 3%"
- stop
- send "&cUzyj /evjajko del <obszar> <swiat>"
- stop
- send "&cUzyj /evjajko del <obszar> <swiat>"
- stop
- # LISTA OBSZAROW DOSTEPNYCH W DANYM SWIECIE
- arg 1 is "list":
- send "&aAktywne obszary w swiecie %world%(&6%size of {evjajko.areny.%arg 3%::*}%&a): &e%{evjajko.areny.%world%::*}%"
- stop
- # WLACZANIE/WYLACZANIE EVENTU WIELKANOCNEGO (PRZYDATNE PO SWIETACH)
- arg 1 is "event":
- arg 2 is "on":
- set {evjajko.startevent} to true
- send "&eUstawiono status Eventu Wielkanocnego na &awlaczony&e!"
- stop
- arg 2 is "off":
- delete {evjajko.startevent}
- send "&eUstawiono status Eventu Wielkanocnego na &4wylaczony&e!"
- stop
- send "&cUzyj /evjajko event on|off"
- stop
- send "&cUzyj /evjajko set|del|list|event"
- stop
- # -----DROP Z KROLICZKA-----
- on death of chicken:
- victim's name is "&eZajaczek wielkanocny":
- set {_liczba} to random integer between 0.1 and 10
- {_liczba} is 1:
- set {_boski} to random integer between 0.1 and 10
- {_boski} is 1:
- #MIECZ DUSZ
- add diamond sword of sharpness 3, efficiency 2, unbreaking 2, fire aspect 2, fortune 2 with name "&5&l☣Miecz Dusz☣" to drops
- stop
- {_boski} is 2:
- #LUK ZAGLADY
- add bow of punch 3, infinity 10, unbreaking 10 with name "&b&lLuk Zaglady" to drops
- add arrow with name "&bStrzala Smierci" to drops
- stop
- {_boski} is 3:
- #BOSKI ROG MOCY
- add 351:10 of unbreaking 10 with name "&e&lBoski Rog Mocy" to drops
- stop
- {_boski} is 4:
- #VORTEX
- add 351:8 of knockback 10 with name "&e&lVortex" to drops
- stop
- {_boski} is 5:
- #INFERNO
- add 351:9 of fire aspect 2 with name "&4&lInferno" to drops
- stop
- {_boski} is 6:
- #ROZDZKA BLOGOSLAWIENSTWA
- add golden hoe with name "&6Blogoslawienstwo &f(&bRozdzka Fenix&f)" to drops
- stop
- {_boski} is 7:
- #TOKSYCZNA ROZDZKA
- add iron hoe with name "&6Klatwa &f(&bToksyczna Rozdzka&f)" to drops
- stop
- {_boski} is 8:
- #SPEED III NA 3 MINUTY + SILA I NA MINUTE (MOZNA ZNERFIC JAK ZBYT OP)
- apply speed 3 to attacker for 3 minutes
- apply strength 1 to attacker for 1 minute
- send "&aBogowie ci blogoslawia!" to attacker
- #2 STAKI PATYKOW
- add 128 sticks with name "&f:)" to drops
- stop
- {_liczba} is 2:
- #DIAX HELM
- add diamond helmet to drops
- stop
- {_liczba} is 3:
- #DIAX KLATA
- add diamond chestplate to drops
- stop
- {_liczba} is 4:
- #DIAX SPODNIE
- add diamond leggings to drops
- stop
- {_liczba} is 5:
- #KOLEJNY ZAJACZEK WIELKANOCNY Z DODATKOWYM SPEEDEM
- spawn 1 chicken at location of attacker
- set name of spawned entity to "&eZajaczek wielkanocny"
- apply speed 5 to spawned entity for 4 days
- send "&a&lBerek!" to attacker
- send "&2Teraz ty gonisz!" to attacker
- stop
- {_liczba} is 6:
- #CALE EQ KWIATOW (MOZNA ZMIENIC NA COS INNEGO ROWNIE NIE PRZYDATNEGO
- add 2880 flowers named "&7( ͡° ͜ʖ ͡°)" to inventory of attacker
- send "&2Otrzymales prezent! otworz ekwipunek, aby zobaczyc zawartosc!" to attacker
- stop
- {_liczba} is 7:
- #NIEZBIERALNE DIAMENTY
- send "&b&lZbierz przedmioty z ziemi zanim twoj bonus przepadnie!" to attacker
- loop 20 times:
- set {_locP} to location infront attacker
- drop 20 diamonds named "&9apems8329f&aji3" above {_locP}
- wait 10 ticks
- stop
- {_liczba} is 8:
- #WYBUCH O MOCY CREEPERA
- loop all players in radius 5 around victim:
- send "&a&lTu napewno nie stanie sie nic niebezpiecznego&4&l!!!" to loop-player
- send "&4-------------------------------------------------------" to loop-player
- wait 2 seconds
- make safe explosion with power 4 above location of victim
- loop all players in radius 5 around victim:
- send "&2&lPrima Aprilis!" to loop-player
- stop
- {_liczba} is 9:
- #128 JAJEK
- add 128 egg named "&4Jajko totalnej anihilacji" to drops
- send "&2Dzisiaj bedzie duza jajecznica" to attacker
- stop
- {_liczba} is 10:
- set {_RandNag} to random integer between 0.1 and 2
- {_RandNag} is 1:
- #OD 100 DO 200 MONET
- set {_pieniadze} to random integer between 99.1 and 200.1
- execute console command "/fe grant %attacker% %{_pieniadze}%"
- send "&aDodano &e%{_pieniadze}%&a monet do konta!" to attacker
- stop
- {_RandNag} is 2:
- #64 BUTELKI EXPA
- add 64 bottle o' enchanting to drops
- send "&aMagia Swiat!" to attacker
- stop
- # -----OBNIZENIE DAMAGE DLA EVENTOWEGO KROLICZKA-----
- on damage of chicken:
- victim's name is "&eZajaczek wielkanocny":
- extinguish victim
- set damage to 0.05
- # -----BLOK PODNOSZENIA DIAMENTOW-----
- on pick up diamond:
- item is diamond named "&9apems8329f&aji3":
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment