Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #---------[Zmienne]---------#
- variables:
- {pk.start.%player%} = false
- {pk.dolacz.%player%} = false
- {pk.timer.%player%.mili} = 0
- {pk.timer.%player%.sec} = 0
- {event.parkour} = false
- {event.parkour.start} = false
- {exp.%player%} = 0
- {lvl.%player%} = 0
- {punkty::%player%} = 0
- {1x180.%player%.done} = false
- {1x180.%player%.dolacz} = false
- {2x180.%player%.done} = false
- {2x180.%player%.dolacz} = false
- {3x180.%player%.done} = false
- {3x180.%player%.dolacz} = false
- {4kratki.%player%.done} = false
- {4kratki.%player%.dolacz} = false
- {check.%player%} = false
- {jump.%player%} = false
- {speed.%player%} = false
- {pk.timer.%player%.sec} = 0
- #---------[Koniec zmiennych]---------#
- options:
- #---------[Opcje]---------#
- tag: &5&l§nCraft&4&l§nJump
- pex: &4&lNie posiadasz uprawnien!
- bloki: grass or dirt or sand or stone or cobblestone or wooden planks or wood or netherrack or hardened clay or wool or leaves or water or lava or nether quartz ore or soul sand
- chat: &8[&7{LVL}&8] &7%display name of player%&8: &7%message%
- name_pex: pk.*
- #---------[Ca³y Kod]---------#
- #---------[Nieznasz sie to nie ruszaj!]---------#
- command /parkour [<text>] [<offlineplayer>]:
- aliases: pk, park, p
- trigger:
- if arg 1 is not set:
- if player has permission "{@name_pex}":
- send "&8>=========================<"
- send "&8> &6/pk zaloz <nazwa> &8- &7Zaklada pk"
- send "&8> &6/pk usun <nazwa> &8- &7Usuwa pk"
- send "&8> &6/pk lista &8- &7Lista dostepnych pk"
- send "&8> &6/pk dolacz <nazwa> &8- &7Dolaczasz do pk"
- send "&8> &6/pk opusc &8- &7Opuszczasz pk"
- send "&8> &6/pk top10 <arena> &8- &7Gracze top10"
- send "&8>=========================<"
- stop
- else:
- send "{@tag} {@pex}"
- if arg 1 is "zaloz" or "create":
- if player has permission "{@name_pex}":
- if arg-offlineplayer is set:
- if {pk.nazwa.%arg-offlineplayer%} is not set:
- set {pk.nazwa.%arg-offlineplayer%} to true
- set {pk.spawn.%arg-offlineplayer%} to location of player
- set {parkour::arena::%arg-2%} to arg 2
- add arg-offlineplayer to {pk.lista::*}
- send "{@tag} &7Stworzyles parkour o nazwie: &6%arg-offlineplayer%"
- stop
- else:
- send "{@tag} &7Parkour o nazwie: &6%arg-offlineplayer% &7juz istnieje!"
- stop
- else:
- send "{@tag} &7Poprawne uzycie: &6/pk create <nazwa>"
- stop
- else:
- send "{@pex}"
- stop
- if arg 1 is "usun" or "remove":
- if player has permission "{@name_pex}":
- if arg-offlineplayer is set:
- if {pk.nazwa.%arg-offlineplayer%} is set:
- set {_arena} to arg-2
- clear {pk.nazwa.%arg-offlineplayer%}
- clear {pk.spawn.%arg-offlineplayer%}
- clear {parkour::arena::%arg-2%}
- clear {top1::%{_arena}%::time}
- remove arg-offlineplayer from {pk.lista::*}
- clear {top1::%{_arena}%::player}
- send "{@tag} &7Usunales parkour o nazwie: &6%arg-offlineplayer%"
- stop
- else:
- send "{@tag} &7Parkour o nazwie &6%arg-offlineplayer% &7nie istnieje!"
- stop
- else:
- send "{@tag} &7Poprawne uzycie: &6/pk remove <nazwa>"
- stop
- else:
- send "{@pex}"
- stop
- if arg 1 is "lista" or "list":
- if size of {pk.lista::*} is 0:
- send "{@tag} &7Nie ma zadnych parkourow!"
- stop
- else:
- send "{@tag} &7Lista parkourow: &6[&7%size of {pk.lista::*}%&6] &7%{pk.lista::*}%"
- stop
- if arg 1 is "dolacz" or "join":
- if arg-offlineplayer is set:
- if player has permission "pku":
- if {pk.nazwa.%arg-offlineplayer%} is set:
- set {pk.start.%player%} to false
- set level of the player to 0
- set level progress of the player to 0.0
- set {pk.timer.%player%.mili} to 0
- set {pk.timer.%player%.sec} to 0
- set {%player%.event} to false
- remove player from {event.status::*}
- clear {pk.%player%}
- remove bossbar from player
- teleport player to {pk.spawn.%arg-offlineplayer%}
- set {pk.dolacz.%player%} to true
- wait 5 tick
- set {pk.%player%} to location of player
- set {%player%::arena} to arg-2
- set {_arena} to arg-2
- set {pk::timer::%player%::top} to 0
- set {_top} to {top1::%{_arena}%::time}*0.1
- display "&6&lRekord mapy ustanowil &4&l%{top1::%{_arena}%::player}% &5&l%{_top}% &4&lsek." on bossbar with 50 percent by 5 seconds for player
- send "{@tag} &fDolaczyles do parkoura &a&l%arg-offlineplayer%&7."
- stop
- else:
- send "{@tag} &5&7Ten parkour nie zostal jeszcze zbudowany!"
- stop
- else:
- send "{@tag} &7Poprawne uzycie: &6/pk join <nazwa>"
- stop
- if arg 1 is "opusc" or "leave" or "wyjdz":
- if {pk.dolacz.%player%} is true:
- set {pk.dolacz.%player%} to false
- set {pk.start.%player%} to false
- set level of the player to 0
- set level progress of the player to 0.0
- set {pk.timer.%player%.mili} to 0
- set {pk.timer.%player%.sec} to 0
- set {pk::timer::%player%::top} to 0
- clear {pk.%player%}
- remove jump boost from player
- remove speed from player
- teleport player to {spawn.spawn}
- remove bossbar from player
- stop
- else:
- send "{@tag} &7Nie jestes na zadnym parkourze!"
- stop
- if arg 1 is "top":
- send "&7<&6*&7>&c========== &a> &b&lTop 10 [Parkour] &a< &c==========&7<&6*&7>" to player
- set {_num} to size of {punkty::*}
- loop {_num} times:
- loop {punkty::*}:
- {_v.%loop-number%} is not set:
- set {_v.%loop-number%} to loop-value
- set {_n.%loop-number%} to loop-index
- loop-value is greater than {_v.%loop-number%}:
- set {_v.%loop-number%} to loop-value
- set {_n.%loop-number%} to loop-index
- remove {_v.%loop-number%} from {punkty::*}
- loop {_num} times:
- loop-number is less than or equal to 10:
- send "&c&l%loop-number%. &3&l%{_n.%loop-number%}% &8&l(%{_v.%loop-number%}%)"
- set {punkty::%{_n.%loop-number%}%} to {_v.%loop-number%}
- {_num} is less than 10:
- set {_r} to {_num}
- loop 10 - {_num} times:
- add 1 to {_r}
- send "&c&l%{_r}%. &3&lbrak"
- if arg 1 is "toptime":
- if {parkour::arena::%arg-2%} is set:
- set {_arena} to arg-2
- set {_top} to {top1::%{_arena}%::time}*0.1
- send "&6&lTop 1 mapy &3&l%arg 2%&6&l!"
- send "&7&l1.&4&l%{top1::%{_arena}%::player}% &5&l%{_top}% &4&lsek."
- #---------[Start JUMP]---------#
- on walk on green stained clay:
- if block underneath event-block is sponge:
- if {pk.dolacz.%player%} is true:
- remove bossbar from player
- set {pk.timer.%player%.mili} to 0
- execute console command "playsound random.pop %player%"
- set {pk.timer.%player%.sec} to 0
- set {pk::timer::%player%::top} to 0
- set level of the player to 0
- set level progress of the player to 0.0
- set {pk.start.%player%} to true
- apply jump boost 10 to the player
- set {jump.%player%} to true
- set {czas.%player%} to 0
- stop
- #---------[Start SPEED]---------#
- on walk on green stained clay:
- if block underneath event-block is ice:
- if {pk.dolacz.%player%} is true:
- remove bossbar from player
- set {pk.timer.%player%.mili} to 0
- execute console command "playsound random.pop %player%"
- set {pk.timer.%player%.sec} to 0
- set {pk::timer::%player%::top} to 0
- set level of the player to 0
- set level progress of the player to 0.0
- set {pk.start.%player%} to true
- apply speed 2 to the player
- set {speed.%player%} to true
- set {czas.%player%} to 0
- stop
- #---------[Start]---------#
- on walk on green stained clay:
- if {pk.dolacz.%player%} is true:
- remove bossbar from player
- set {pk.timer.%player%.mili} to 0
- execute console command "playsound random.pop %player%"
- set {pk.timer.%player%.sec} to 0
- set {pk::timer::%player%::top} to 0
- set level of the player to 0
- set level progress of the player to 0.0
- set {czas.%player%} to 0
- set {pk.start.%player%} to true
- stop
- on walk on red stained clay:
- if block below event-block is sign:
- set {_block} to block under event-block
- if {_block} is sign:
- set {_1} to line 1 of {_block}
- set {_2} to line 2 of {_block}
- set {_o} to line 3 of {_block}
- if {_1} is "&8[&6PK&8]":
- if {_2} is "&c&lStop":
- if {pk.dolacz.%player%} is true:
- if {pk.start.%player%} is true:
- teleport player to {pk.%player%}
- execute console command "playsound random.pop %player%"
- set {pk.start.%player%} to false
- remove jump boost from player
- remove speed from player
- set {jump.%player%} to false
- set {speed.%player%} to false
- if {check.%player%} is false:
- add {_o} to {exp.%player%}
- add {_o} to {punkty::%player%}
- remove bossbar from player
- display "&5&lTwój czas na mapie to: &6&l%{pk.timer.%player%.sec}%,%{pk.timer.%player%.mili}%&4&ls &4&l[&5&l%{_o}%&4&l] &5&lexp" on bossbar with 50 percent by 5 seconds for player
- if {top1::%{_arena}%::time} is not set:
- set {top1::%{_arena}%::player} to player
- set {top1::%{_arena}%::time} to {pk::timer::%player%::top}
- send "&8>&2&lUstanowiles nowy rekord na arenie %{_arena}%!"
- broadcast "&8>&2&lGracz ustanowil nowy rekord na arenie %{_arena}%!"
- stop
- if {top1::%{_arena}%::time} is set:
- if {top1::%{_arena}%::time} is more than {pk::timer::%player%::top}:
- set {top1::%{_arena}%::player} to player
- set {top1::%{_arena}%::time} to {pk::timer::%player%::top}
- send "&8>&2&lPobile rekord na arenie %{_arena}%!"
- broadcast "&8>&2&lGracz pobil rekord na arenie %{_arena}%!"
- set {pk.timer.%player%.mili} to 0
- set {pk.timer.%player%.sec} to 0
- set {pk::timer::%player%::top} to 0
- clear {%player%::arena}
- if {check.%player%} is true:
- teleport player to {pk.%player%}
- set {_x} to {_o}*0.3
- add {_x} to {exp.%player%}
- add {_x} to {punkty::%player%}
- remove bossbar from player
- display "&5&lUzyles zapisu i czas nie byl liczony&4&l[&5&l%{_x}%&4&l] &5&lexp" on bossbar with 50 percent by 5 seconds for player
- execute console command "playsound random.pop %player%"
- set {pk.timer.%player%.mili} to 0
- set {pk.timer.%player%.sec} to 0
- set {pk::timer::%player%::top} to 0
- set level of the player to 0
- set level progress of the player to 0.0
- set {pk.start.%player%} to false
- remove jump boost from player
- remove speed from player
- set {jump.%player%} to false
- set {speed.%player%} to false
- set {check.%player%} to false
- if {exp.%player%} is more than 10:
- if {lvl.%player%} is 0:
- add 1 to {lvl.%player%}
- send "&8> &aAwansowales na &f&l1&alvl !"
- stop
- if {exp.%player%} is more than 20:
- if {lvl.%player%} is 1:
- add 1 to {lvl.%player%}
- send "&8> &aAwansowales na &f&l2&alvl !"
- stop
- if {exp.%player%} is more than 50:
- if {lvl.%player%} is 2:
- add 1 to {lvl.%player%}
- send "&8> &aAwansowales na &f&l3&alvl !"
- stop
- if {exp.%player%} is more than 91:
- if {lvl.%player%} is 3:
- add 1 to {lvl.%player%}
- send "&8> &aAwansowales na &f&l4&alvl !"
- stop
- if {exp.%player%} is more than 148:
- if {lvl.%player%} is 4:
- add 1 to {lvl.%player%}
- send "&8> &aAwansowales na &f&l5&alvl !"
- stop
- if {exp.%player%} is more than 211:
- if {lvl.%player%} is 5:
- add 1 to {lvl.%player%}
- send "&8> &aAwansowales na &f&l6&alvl !"
- stop
- if {exp.%player%} is more than 295:
- if {lvl.%player%} is 6:
- add 1 to {lvl.%player%}
- send "&8> &aAwansowales na &f&l7&alvl !"
- stop
- if {exp.%player%} is more than 385:
- if {lvl.%player%} is 7:
- add 1 to {lvl.%player%}
- send "&8> &aAwansowales na &f&l8&alvl !"
- stop
- if {exp.%player%} is more than 479:
- if {lvl.%player%} is 8:
- add 1 to {lvl.%player%}
- send "&8> &aAwansowales na &f&l9&alvl !"
- stop
- if {exp.%player%} is more than 630:
- if {lvl.%player%} is 9:
- add 1 to {lvl.%player%}
- send "&8> &aAwansowales na &f&l10&alvl !"
- stop
- if {exp.%player%} is more than 847:
- if {lvl.%player%} is 10:
- add 1 to {lvl.%player%}
- send "&8> &aAwansowales na &f&l11&alvl !"
- stop
- if {exp.%player%} is more than 996:
- if {lvl.%player%} is 11:
- add 1 to {lvl.%player%}
- send "&8> &aAwansowales na &f&l12&alvl !"
- stop
- if {exp.%player%} is more than 1206:
- if {lvl.%player%} is 12:
- add 1 to {lvl.%player%}
- send "&8> &aAwansowales na &f&l13&alvl !"
- stop
- if {exp.%player%} is more than 1480:
- if {lvl.%player%} is 13:
- add 1 to {lvl.%player%}
- send "&8> &aAwansowales na &f&l14&alvl !"
- stop
- if {exp.%player%} is more than 1726:
- if {lvl.%player%} is 14:
- add 1 to {lvl.%player%}
- send "&8> &aAwansowales na &f&l15&alvl !"
- stop
- if {exp.%player%} is more than 1999:
- if {lvl.%player%} is 15:
- add 1 to {lvl.%player%}
- send "&8> &aAwansowales na &f&l16&alvl !"
- stop
- if {exp.%player%} is more than 2401:
- if {lvl.%player%} is 16:
- add 1 to {lvl.%player%}
- send "&8> &aAwansowales na &f&l17&alvl !"
- stop
- if {exp.%player%} is more than 2730:
- if {lvl.%player%} is 17:
- add 1 to {lvl.%player%}
- send "&8> &aAwansowales na &f&l18&alvl !"
- stop
- if {exp.%player%} is more than 3101:
- if {lvl.%player%} is 18:
- add 1 to {lvl.%player%}
- send "&8> &aAwansowales na &f&l19alvl !"
- stop
- if {exp.%player%} is more than 3702:
- if {lvl.%player%} is 19:
- add 1 to {lvl.%player%}
- send "&8> &aAwansowales na &f&l20&alvl !"
- stop
- if {exp.%player%} is more than 4208:
- if {lvl.%player%} is 20:
- add 1 to {lvl.%player%}
- send "&8> &aAwansowales na &f&l21&alvl !"
- stop
- if {exp.%player%} is more than 4791:
- if {lvl.%player%} is 21:
- add 1 to {lvl.%player%}
- send "&8> &aAwansowales na &f&l22&alvl !"
- stop
- if {exp.%player%} is more than 5555:
- if {lvl.%player%} is 22:
- add 1 to {lvl.%player%}
- send "&8> &aAwansowales na &f&l23&alvl !"
- stop
- if {exp.%player%} is more than 6291:
- if {lvl.%player%} is 23:
- add 1 to {lvl.%player%}
- send "&8> &aAwansowales na &f&l24&alvl !"
- stop
- if {exp.%player%} is more than 6890:
- if {lvl.%player%} is 24:
- add 1 to {lvl.%player%}
- send "&8> &aAwansowales na &f&l25&alvl !"
- stop
- if {exp.%player%} is more than 7503:
- if {lvl.%player%} is 25:
- add 1 to {lvl.%player%}
- send "&8> &aAwansowales na &f&l26&alvl !"
- stop
- if {exp.%player%} is more than 8601:
- if {lvl.%player%} is 26:
- add 1 to {lvl.%player%}
- send "&8> &aAwansowales na &f&l27&alvl !"
- stop
- if {exp.%player%} is more than 9400:
- if {lvl.%player%} is 27:
- add 1 to {lvl.%player%}
- send "&8> &aAwansowales na &f&l28&alvl !"
- stop
- if {exp.%player%} is more than 10000:
- if {lvl.%player%} is 28:
- add 1 to {lvl.%player%}
- send "&8> &aAwansowales na &f&l29&alvl !"
- stop
- if {exp.%player%} is more than 12000:
- if {lvl.%player%} is 29:
- add 1 to {lvl.%player%}
- send "&8> &aAwansowales na &f&l30&alvl !"
- stop
- else:
- send "{@tag} &7Nie ukonczono parkoura."
- teleport player to {pk.%player%}
- remove bossbar from player
- set {pk.timer.%player%.mili} to 0
- add 1 to {exp.%player%}
- set {pk.timer.%player%.sec} to 0
- set {pk::timer::%player%::top} to 0
- set level of the player to 0
- set level progress of the player to 0.0
- set {pk.start.%player%} to false
- set {jump.%player%} to false
- set {speed.%player%} to false
- stop
- #---------[Upadki]---------#
- on walk on {@bloki}:
- Loop blocks below player:
- Loop-block is command block:
- if {pk.dolacz.%player%} is true:
- if {pk.start.%player%} is true:
- if {check.%player%} is true:
- if {jump.%player%} is true:
- teleport player to {zapis.%player%}
- set level of the player to 0
- set level progress of the player to 0.0
- set {pk.timer.%player%.mili} to 0
- set {pk.timer.%player%.sec} to 0
- set {pk::timer::%player%::top} to 0
- set {pk.start.%player%} to true
- remove bossbar from player
- apply jump boost 10 to the player
- stop
- else:
- teleport player to {zapis.%player%}
- set level of the player to 0
- set level progress of the player to 0.0
- set {pk.timer.%player%.mili} to 0
- set {pk.timer.%player%.sec} to 0
- set {pk::timer::%player%::top} to 0
- set {pk.start.%player%} to true
- remove bossbar from player
- stop
- if {speed.%player%} is true:
- teleport player to {zapis.%player%}
- set level of the player to 0
- set level progress of the player to 0.0
- set {pk.timer.%player%.mili} to 0
- set {pk.timer.%player%.sec} to 0
- set {pk::timer::%player%::top} to 0
- set {pk.start.%player%} to true
- remove bossbar from player
- apply speed 2 to the player
- stop
- else:
- teleport player to {zapis.%player%}
- set level of the player to 0
- set level progress of the player to 0.0
- set {pk.timer.%player%.mili} to 0
- set {pk.timer.%player%.sec} to 0
- set {pk::timer::%player%::top} to 0
- set {pk.start.%player%} to true
- set {czas.%player%} to 0
- stop
- else:
- if {jump.%player%} is true:
- teleport player to {pk.%player%}
- set level of the player to 0
- set level progress of the player to 0.0
- set {pk.timer.%player%.mili} to 0
- set {pk.timer.%player%.sec} to 0
- set {pk::timer::%player%::top} to 0
- set {pk.start.%player%} to false
- remove bossbar from player
- apply jump boost 10 to the player
- stop
- else:
- teleport player to {pk.%player%}
- set level of the player to 0
- set level progress of the player to 0.0
- set {pk.timer.%player%.mili} to 0
- set {pk.timer.%player%.sec} to 0
- set {pk::timer::%player%::top} to 0
- set {pk.start.%player%} to false
- remove bossbar from player
- stop
- if {speed.%player%} is true:
- teleport player to {pk.%player%}
- set level of the player to 0
- set level progress of the player to 0.0
- set {pk.timer.%player%.mili} to 0
- set {pk.timer.%player%.sec} to 0
- set {pk::timer::%player%::top} to 0
- set {pk.start.%player%} to false
- remove bossbar from player
- apply speed 2 to the player
- stop
- else:
- teleport player to {pk.%player%}
- set level of the player to 0
- set level progress of the player to 0.0
- set {pk.timer.%player%.mili} to 0
- set {pk.timer.%player%.sec} to 0
- set {pk::timer::%player%::top} to 0
- set {pk.start.%player%} to false
- remove bossbar from player
- stop
- every 0.1 second:
- loop all players:
- if {pk.dolacz.%loop-player%} is true:
- set {_arena} to {%loop-player%::arena}
- set {_top} to {top1::%{_arena}%::time}*0.1
- display board named "&6===Top &5&l[&6%{_arena}%&5&l]===" to loop-player
- make score "=&4&l%{_top}%&6[S]" in board of loop-player to 1
- make score "&71.&4&l%{top1::%{_arena}%::player}%" in board of loop-player to 2
- move display of loop-player to sidebar
- #---------[Tabliczki]---------#
- on sign change:
- if player has permission "{@name_pex}":
- if line 1 is "[pk]" or "[PK]":
- set line 1 to "&4&l[PK]"
- if line 1 is "[parkour]" or "[PARKOUR]":
- set line 1 to "&4&l[Parkour]"
- if line 2 is "dolacz" or "DOLACZ":
- set line 2 to "&6Dolacz"
- if line 2 is "join" or "JOIN":
- set line 2 to "&6Join"
- if line 3 is set:
- if {pk.nazwa.%line 3%} is set:
- set line 3 to "&5&l%line 3%"
- if line 2 is "opusc" or "OPUSC":
- set line 2 to "&&5&lOpusc"
- if line 2 is "leave" or "LEAVE":
- set line 2 to "&5&lLeave"
- if line 2 is "wyjdz" or "wyjdz":
- set line 2 to "&5&lWyjdz"
- on rightclick on sign:
- if line 1 of clicked block is "&4&l[Parkour]" or "&4&l[PK]":
- if line 2 of clicked block is "&5&lLeave" or "&5&lWyjdz" or "&5&lOpusc":
- execute player command "pk leave"
- stop
- else if line 2 of clicked block is "&6Join" or "&6Dolacz":
- execute player command "pk join %uncoloured line 3 of clicked block%"
- stop
- #---------[Timer]---------#
- every 0.1 second:
- loop all players:
- if {pk.dolacz.%loop-player%} is true:
- if {pk.start.%loop-player%} is true:
- add 1 to {pk.timer.%loop-player%.mili}
- add 1 to {pk::timer::%loop-player%::top}
- add 0.1 to level progress of the loop-player
- if {pk.timer.%loop-player%.mili} is 10:
- set level progress of the loop-player to 0.0
- set {pk.timer.%loop-player%.mili} to 0
- add 1 to {pk.timer.%loop-player%.sec}
- set the loop-player's level to {pk.timer.%loop-player%.sec}
- display "&5&lTwoj czas to &6%{pk.timer.%loop-player%.sec}%,%{pk.timer.%loop-player%.mili}% &5&lsek" on bossbar with 100 percent by 0.1 seconds for loop-player
- on join:
- set {pk.dolacz.%player%} to false
- set {pk.start.%player%} to false
- set level of the player to 0
- set level progress of the player to 0.0
- set {pk.timer.%player%.mili} to 0
- set {pk.timer.%player%.sec} to 0
- set {pk::timer::%player%::top} to 0
- set {pk::timer::%player%::event} to 0
- set {pk::timer::%player%::ev} to 0
- set {check.%player%} to false
- set {jump.%player%} to false
- set {speed.%player%} to false
- set {event.parkour.start} to false
- set {event.parkour} to false
- set {event.dolacz::%player%} to false
- clear {pk.%player%}
- clear {pokaz.%player%::*}
- set {particle::%player%::active} to false
- teleport player to {spawn.spawn}
- remove bossbar from player
- clear player's inventory
- add 1 chest named "&6★ &9&lLista &6&lParkourow &6★" to player's inventory
- add 1 blaze rod named "&6★ &9&lTeleport na &6&lSpawn &6★" to player's inventory
- add 1 nether star named "&6★ &9&lTeleport na &6&lEvent &6★" to player's inventory
- add 1 cactus green named "&6★ &9&lGracze &a&lpokazani &6★" to player's inventory
- add 1 bed named "&6★ &9&lCheck point &6★" to player's inventory
- add 1 blaze powder named "&6★ &9&lEfekty&6★" to player's inventory
- add 1 book named "&6Lista map" with lore " &6Otwiera menu parkourow" to player's inventory
- stop
- command /gui [<text>] [<player>]:
- trigger:
- if arg 1 is "start":
- wait 2 tick
- open chest with 1 rows named "&6★ &9&lLista &6★" to arg 2
- wait 2 tick
- format slot 0 of arg 2 with 1 of green wool named "&2&lEasy" with lore "&6★ &9&lLista Parkourow &2&lEasy &6★" to run "gui easy %arg-2%"
- format slot 1 of arg 2 with 1 of orange wool named "&6&lMedium" with lore "&6★ &9&lLista Parkourow &6&lMedium &6★" to run "gui medium %arg-2%"
- format slot 2 of arg 2 with 1 of red wool named "&4&lHard" with lore "&6★ &9&lLista Parkourow &4&lHard &6★" to run "gui hard %arg-2%"
- format slot 8 of arg 2 with 1 of blue wool named "&9&lOsiagniecia" with lore "&6★ &9&lZdobadz &a&losiagniecia &6★" to run "gui osiagniecia %arg-2%"
- format slot 6 of arg 2 with 1 of splash potion of swiftness named "&9&lEfektowe" with lore "&6★ &9&lMapy z efektami potek &6★" to run "gui ef %arg-2%"
- if arg 1 is "easy":
- open chest with 6 rows named "&6★ &2&lMapy Easy &6★" to arg 2
- wait 2 tick
- format slot 0 of arg 2 with 1 of green stained clay named "&6► &2&lEasy 1 &6◄" with lore "&6&lKliknij by dolaczyc" to run "easy 1 %arg-2%"
- format slot 1 of arg 2 with 1 of green stained clay named "&6► &2&lEasy 2 &6◄" with lore "&6&lKliknij by dolaczyc" to run "easy 2 %arg-2%"
- format slot 2 of arg 2 with 1 of green stained clay named "&6► &2&lEasy 3 &6◄" with lore "&6&lKliknij by dolaczyc" to run "easy 3 %arg-2%"
- format slot 3 of arg 2 with 1 of green stained clay named "&6► &2&lEasy 4 &6◄" with lore "&6&lKliknij by dolaczyc" to run "easy 4 %arg-2%"
- format slot 4 of arg 2 with 1 of green stained clay named "&6► &2&lEasy 5 &6◄" with lore "&6&lKliknij by dolaczyc" to run "easy 5 %arg-2%"
- format slot 5 of arg 2 with 1 of green stained clay named "&6► &2&lEasy 6 &6◄" with lore "&6&lKliknij by dolaczyc" to run "easy 6 %arg-2%"
- format slot 6 of arg 2 with 1 of green stained clay named "&6► &2&lEasy 7 &6◄" with lore "&6&lKliknij by dolaczyc" to run "easy 7 %arg-2%"
- format slot 7 of arg 2 with 1 of green stained clay named "&6► &2&lEasy 8 &6◄" with lore "&6&lKliknij by dolaczyc" to run "easy 8 %arg-2%"
- format slot 8 of arg 2 with 1 of green stained clay named "&6► &2&lEasy 9 &6◄" with lore "&6&lKliknij by dolaczyc" to run "easy 9 %arg-2%"
- format slot 9 of arg 2 with 1 of green stained clay named "&6► &2&lEasy 10 &6◄" with lore "&6&lKliknij by dolaczyc" to run "easy 10 %arg-2%"
- format slot 53 of arg 2 with 1 of arrow named "&6? &4&lPowrot &6◄" with lore "&6&lKliknij by powrocic" to run "gui start %arg-2%"
- if arg 1 is "medium":
- wait 2 tick
- open chest with 6 rows named "&6★ &6&lMapy Medium &6★" to arg 2
- wait 2 tick
- format slot 0 of arg 2 with 1 of yellow stained clay named "&6► &6&lMedium 1 &6◄" with lore "&6&lKliknij by dolaczyc" to run "medium 1 %arg-2%"
- format slot 1 of arg 2 with 1 of yellow stained clay named "&6► &6&lMedium 2 &6◄" with lore "&6&lKliknij by dolaczyc" to run "medium 2 %arg-2%"
- format slot 2 of arg 2 with 1 of yellow stained clay named "&6► &6&lMedium 3 &6◄" with lore "&6&lKliknij by dolaczyc" to run "medium 3 %arg-2%"
- format slot 3 of arg 2 with 1 of yellow stained clay named "&6► &6&lMedium 4 &6◄" with lore "&6&lKliknij by dolaczyc" to run "medium 4 %arg-2%"
- format slot 4 of arg 2 with 1 of yellow stained clay named "&6► &6&lMedium 5 &6◄" with lore "&6&lKliknij by dolaczyc" to run "medium 5 %arg-2%"
- format slot 5 of arg 2 with 1 of yellow stained clay named "&6► &6&lMedium 6 &6◄" with lore "&6&lKliknij by dolaczyc" to run "medium 6 %arg-2%"
- format slot 6 of arg 2 with 1 of yellow stained clay named "&6► &6&lMedium 7 &6◄" with lore "&6&lKliknij by dolaczyc" to run "medium 7 %arg-2%"
- format slot 7 of arg 2 with 1 of yellow stained clay named "&6► &6&lMedium 8 &6◄" with lore "&6&lKliknij by dolaczyc" to run "medium 8 %arg-2%"
- format slot 8 of arg 2 with 1 of yellow stained clay named "&6► &6&lMedium 9 &6◄" with lore "&6&lKliknij by dolaczyc" to run "medium 9 %arg-2%"
- format slot 9 of arg 2 with 1 of yellow stained clay named "&6► &6&lMedium 10 &6◄" with lore "&6&lKliknij by dolaczyc" to run "medium 10 %arg-2%"
- format slot 53 of arg 2 with 1 of arrow named "&6► &4&lPowrot &6◄" with lore "&6&lKliknij by powrocic" to run "gui start %arg-2%"
- if arg 1 is "hard":
- wait 2 tick
- open chest with 6 rows named "&6★ &4&lMapy Hard &6★" to arg 2
- wait 2 tick
- format slot 0 of arg 2 with 1 of red stained clay named "&6► &6&lHard 1 &6◄" with lore "&6&lKliknij by dolaczyc" to run "hard 1 %arg-2%"
- format slot 1 of arg 2 with 1 of red stained clay named "&6► &6&lHard 2 &6◄" with lore "&6&lKliknij by dolaczyc" to run "hard 2 %arg-2%"
- format slot 2 of arg 2 with 1 of red stained clay named "&6► &6&lHard 3 &6◄" with lore "&6&lKliknij by dolaczyc" to run "hard 3 %arg-2%"
- format slot 3 of arg 2 with 1 of red stained clay named "&6► &6&lHard 4 &6◄" with lore "&6&lKliknij by dolaczyc" to run "hard 4 %arg-2%"
- format slot 4 of arg 2 with 1 of red stained clay named "&6► &6&lHard 5 &6◄" with lore "&6&lKliknij by dolaczyc" to run "hard 5 %arg-2%"
- format slot 5 of arg 2 with 1 of red stained clay named "&6► &6&lHard 6 &6◄" with lore "&6&lKliknij by dolaczyc" to run "hard 6 %arg-2%"
- format slot 6 of arg 2 with 1 of red stained clay named "&6► &6&lHard 7 &6◄" with lore "&6&lKliknij by dolaczyc" to run "hard 7 %arg-2%"
- format slot 7 of arg 2 with 1 of red stained clay named "&6► &6&lHard 8 &6◄" with lore "&6&lKliknij by dolaczyc" to run "hard 8 %arg-2%"
- format slot 8 of arg 2 with 1 of red stained clay named "&6► &6&lHard 9 &6◄" with lore "&6&lKliknij by dolaczyc" to run "hard 9 %arg-2%"
- format slot 9 of arg 2 with 1 of red stained clay named "&6► &6&lHard 10 &6" with lore "&6&lKliknij by dolaczyc" to run "hard 10 %arg-2%"
- format slot 53 of arg 2 with 1 of arrow named "&6► &4&lPowrot &6◄" with lore "&6&lKliknij by powrocic" to run "gui start %arg-2%"
- if arg 1 is "ef":
- wait 2 tick
- open chest with 6 rows named "&6★ &4&lMapy efektowe &6★" to arg 2
- wait 2 tick
- format slot 2 of arg 2 with 1 of sugar named "&6► &4&lSpeed 1 &6◄" with lore "&6&lKliknij by dolaczyc" to run "ef 1 %arg-2%"
- format slot 3 of arg 2 with 1 of sugar named "&6► &4&lSpeed 2 &6◄" with lore "&6&lKliknij by dolaczyc" to run "ef 2 %arg-2%"
- format slot 4 of arg 2 with 1 of sugar named "&6► &4&lSpeed 3 &6◄" with lore "&6&lKliknij by dolaczyc" to run "ef 3 %arg-2%"
- format slot 5 of arg 2 with 1 of sugar named "&6► &4&lSpeed 4 &6◄" with lore "&6&lKliknij by dolaczyc" to run "ef 4 %arg-2%"
- format slot 6 of arg 2 with 1 of sugar named "&6► &4&lSpeed 5 &6◄" with lore "&6&lKliknij by dolaczyc" to run "ef 5 %arg-2%"
- format slot 11 of arg 2 with 1 of feather named "&6► &d&lJump 1 &6◄" with lore "&6&lKliknij by dolaczyc" to run "ef 6 %arg-2%"
- format slot 12 of arg 2 with 1 of feather named "&6► &d&lJump 2 &6◄" with lore "&6&lKliknij by dolaczyc" to run "ef 7 %arg-2%"
- format slot 13 of arg 2 with 1 of feather named "&6► &d&lJump 3 &6◄" with lore "&6&lKliknij by dolaczyc" to run "ef 8 %arg-2%"
- format slot 14 of arg 2 with 1 of feather named "&6► &d&lJump 4 &6◄" with lore "&6&lKliknij by dolaczyc" to run "ef 9 %arg-2%"
- format slot 15 of arg 2 with 1 of feather named "&6► &d&lJump 5 &6◄" with lore "&6&lKliknij by dolaczyc" to run "ef 10 %arg-2%"
- format slot 53 of arg 2 with 1 of arrow named "&6► &4&lPowrot &6◄" with lore "&6&lKliknij by powrocic" to run "gui start %arg-2%"
- if arg 1 is "osiagniecia":
- wait 2 tick
- open chest with 6 rows named "&6★ &9&lTwoje Osiagniecia &6★" to arg 2
- wait 2 tick
- format slot 53 of arg 2 with 1 of arrow named "&6► &4&lPowrot &6◄" with lore "&6&lKliknij by powrocic" to run "gui start %arg-2%"
- if {1x180.%arg-2%.done} is false:
- format slot 3 of arg 2 with 1 of red stained clay named "&d&l1x180" with lore "&6► &fWykonaj &a&l180'tke &6◄" to run "osiagi 1 %arg-2%"
- else:
- format slot 3 of arg 2 with 1 of green stained clay named "&d&l1x180" with lore "&6► &a&l✔ Wykonano! &6◄" to run "gui start %arg-2%"
- if {2x180.%arg-2%.done} is false:
- format slot 4 of arg 2 with 1 of red stained clay named "&d&l2x180" with lore "&6► &fWykonaj &a&lpodwojna 180'tke &6◄" to run "osiagi 2 %arg-2%"
- else:
- format slot 4 of arg 2 with 1 of green stained clay named "&d&l2x180" with lore "&6► &a&l✔ Wykonano! &6◄" to run "gui start %arg-2%"
- if {3x180.%arg-2%.done} is false:
- format slot 5 of arg 2 with 1 of red stained clay named "&d&l3x180" with lore "&6► &fWykonaj &a&lpotrojna 180'tke &6◄" to run "osiagi 3 %arg-2%"
- else:
- format slot 5 of arg 2 with 1 of green stained clay named "&d&l3x180" with lore "&6► &a&l✔ Wykonano! &6◄" to run "gui start %arg-2%"
- if {4kratki.%arg-2%.done} is false:
- format slot 12 of arg 2 with 1 of red stained clay named "&d&lSkok na 4 kratki" with lore "&6► &fWykonaj &a&lskok na 4 kratki &6◄" to run "osiagi 3 %arg-2%"
- else:
- format slot 12 of arg 2 with 1 of green stained clay named "&d&lSkok na 4 kratki" with lore "&6► &a&lWykonano! &6◄" to run "gui start %arg-2%"
- on right click with chest:
- if name of player's tool is "&6★ &9&lLista &6&lParkourow &6★":
- execute player command "/gui start %player%"
- stop
- on place chest:
- if name of player's tool is "&6★ &9&lLista &6&lParkourow &6★":
- cancel event
- command /znajomy [<text>] [<offlineplayer>]:
- trigger:
- if arg 1 is not set:
- send "&a&l/znajomy dodaj/usun <nick>"
- stop
- if arg 1 is "dodaj" or "add":
- if arg 2 is set:
- if arg 2 is online:
- add arg 2 to {znajomy.parkour::*}
- send "&fDodales gracza &a&l%arg 2%&f do znajomych!"
- stop
- else:
- send "&fGracza &a&l%arg 2% &fNie ma na serwerze!"
- stop
- else:
- send "&fPodaj gracza!&a /znajomy dodaj <nick>"
- stop
- if arg 1 is "remove" or "usun":
- if arg 2 is set:
- if arg 2 is online:
- if arg 2 is {znajomy.parkour::*}:
- remove arg 2 from {znajomy.parkour::*}
- send "&fUsunales gracza &a&l%arg 2% &fze znajomych!"
- stop
- else:
- send "&fGracza &a&l%arg 2% &fnie ma w twoich znajomych!"
- stop
- if arg 1 is "list" or "lista":
- if arg 2 is not set:
- if size of {znajomy.parkour::*} is 0:
- send "&fNie masz znajomych!"
- stop
- else:
- send "&fTwoi znajomi &a[&2%size of {znajomy.parkour::*}%&a]&f: &a&l{znajomy.%player%::*}"
- stop
- command /list:
- trigger:
- open chest with 6 rows named "&a&lOnlin&a&le:" to player
- wait 1 tick
- loop all players:
- add 1 to {_online}
- if player is an op:
- format slot {_online}-1 of player with 1 of red wool named "%loop-player%" to close
- else:
- format slot {_online}-1 of player with 1 of light green wool named "%loop-player%" to close
- on right click with cactus green:
- if name of player's tool is "&6★ &9&lGracze &a&lpokazani &6★":
- cancel event
- hide all players from player
- wait 1 tick
- set player's tool to orange dye
- set name of the player's tool to "&6★ &9&lGracze &6&lznajomi &6★"
- send "&6Pokazales znajomych"
- stop
- on right click with orange dye:
- if name of player's tool is "&6★ &9&lGracze &6&lZnajomi &6★":
- cancel event
- hide all players from player
- reveal {znajomi.parkour::*} to player
- wait 1 tick
- set player's tool to rose red
- set name of the player's tool to "&6★ &9&lGracze &c&lukryci &6★"
- send "&cUkryles graczy"
- stop
- on right click with rose red:
- if name of player's tool is "&6★ &9&lGracze &c&lukryci &6★":
- cancel event
- reveal all players to player
- wait 1 tick
- set player's tool to cactus green
- set name of the player's tool to "&6★ &9&lGracze &a&lpokazani &6★"
- send "&aPokazales graczy"
- stop
- command /event [<text>] [<player>]:
- trigger:
- if player has permission "{@name_pex}":
- if arg 1 is not set:
- send "&3&l/event spawn &f- ustawia spawn na mapie eventowej"
- stop
- if arg 1 is "ustaw" or "spawn":
- set {event.spawn} to location of player
- send "&1Ustawiles spawn dla mapy eventowej!"
- stop
- if arg 1 is "start":
- if arg 2 is set:
- set {event.parkour} to true
- set {event.parkour.start} to true
- display "&5&l§nEvent od &6&l########&4&l%arg-2%&6&l########" on bossbar with 100 percent by 5 seconds for player
- stop
- every 1800 second:
- if {event.parkour} is false:
- set {event.parkour} to true
- broadcast "{@tag} &fEvent rozpocznie sie za &a&l30s&f!"
- wait 10 seconds
- broadcast "{@tag} &fEvent rozpocznie sie za &a&l20s&f!"
- wait 10 seconds
- broadcast "{@tag} &fEvent rozpocznie sie za &a&l10s&f!"
- wait 5 seconds
- broadcast "{@tag} &fEvent rozpocznie sie za &a&l5s&f!"
- play raw sound "random.pop" at {spawn.spawn} with pitch 1 volume 5
- wait 1 seconds
- broadcast "{@tag} &fEvent rozpocznie sie za &a&l4s&f!"
- play raw sound "random.pop" at {spawn.spawn} with pitch 1 volume 5
- wait 1 seconds
- broadcast "{@tag} &fEvent rozpocznie sie za &a&l3s&f!"
- play raw sound "random.pop" at {spawn.spawn} with pitch 1 volume 5
- wait 1 seconds
- broadcast "{@tag} &fEvent rozpocznie sie za &a&l2s&f!"
- play raw sound "random.pop" at {spawn.spawn} with pitch 1 volume 5
- wait 1 seconds
- broadcast "{@tag} &fEvent rozpocznie sie za &a&l1s&f!"
- play raw sound "random.pop" at {spawn.spawn} with pitch 1 volume 5
- wait 1 seconds
- if {event.parkour} is true:
- set {event.parkour.start} to true
- broadcast "{@tag} &fEvent wystartowal!"
- stop
- on right click with nether star:
- if name of player's tool is "&6★ &9&lTeleport na &6&lEvent &6★":
- if {event.parkour} is true:
- add player to {event.status::*}
- teleport player to {event.spawn}
- set {pk.dolacz.%player%} to false
- set {pk.start.%player%} to false
- set level of the player to 0
- set level progress of the player to 0.0
- set {pk.timer.%player%.mili} to 0
- set {pk.timer.%player%.sec} to 0
- set {pk.timer.%player%.mili} to 0
- set {pk.timer.%player%.event} to 0
- set {pk.timer.%player%.ev} to 0
- set {event.dolacz::%player%} to true
- clear {pk.%player%}
- remove bossbar from player
- set {_l} to size of {event.status::*}
- send "{@tag} &fGracz &a&l%player% &2[&a%{_l}%&2] &fdolaczyl do eventu!" to {event.status::*}
- stop
- else:
- send "{@tag} &fAktualnie nie ma zadnego eventu!"
- stop
- every 0.1 second:
- loop all players:
- if {event.parkour} is true:
- if {event.dolacz::%loop-player%} is true:
- add 1 to {pk::timer::%loop-player%::event}
- add 0.1 to level progress of the loop-player
- if {pk.timer.%loop-player%.event} is 10:
- set level progress of the loop-player to 0.0
- set {pk.timer.%loop-player%.event} to 0
- add 1 to {pk.timer.%loop-player%.ev}
- set the loop-player's level to {pk.timer.%loop-player%.ev}
- display "&5&lTwoj czas to &6%{pk.timer.%loop-player%.ev}%,%{pk.timer.%loop-player%.event}% &5&lsek" on bossbar with 100 percent by 0.1 seconds for loop-player
- on walk on {@bloki}:
- Loop blocks below player:
- Loop-block is end stone:
- if {event.parkour} is true:
- if {event.dolacz::%player%} is true:
- teleport player to {event.spawn}
- set {pk.timer.%player%.event} to 0
- set {pk.timer.%player%.ev} to 0
- on any move:
- if player is {event.status::*}:
- if {event.parkour} is true:
- if {event.parkour.start} is false:
- teleport player to {event.spawn}
- on walking on blue wool:
- if block underneath event-block is sponge:
- if {event.parkour.start} is true:
- set {event.parkour} to false
- set {event.parkour.start} to false
- set {event.dolacz::*} to false
- teleport {event.status::*} to {spawn.spawn}
- clear {event.status::*}
- set {_r} to random integer between 15 and 150
- add {_r} to {exp.%player%}
- add {_r} to {punkty::%player%}
- broadcast "{@tag} &fEvent zakonczony! Wygrywa &a&l%player% &2[&a%{_r}%&2]&fexp"
- display "&5&lEvent zakonczony! Wygrywa &4&l%player% &6[&c%{_r}%&6]&4&lexp" on bossbar with 100 percent by 5 seconds for player
- stop
- command /daj:
- trigger:
- if player have permission "{@name_pex}":
- clear player's inventory
- add 1 cactus green named "&6★ &9&lGracze &a&lpokazani &6★" to player's inventory
- add 1 chest named "&6★ &9&lLista &6&lParkourow &6★" to player's inventory
- add 1 blaze rod named "&6★ &9&lTeleport na &6&lSpawn &6★" to player's inventory
- add 1 nether star named "&6★ &9&lTeleport na &6&lEvent &6★" to player's inventory
- add 1 bed named "&6★ &9&lCheck point &6★" to the player's inventory
- add 1 blaze powder named "&6★ &9&lEfekty&6★" to player's inventory
- stop
- on right click with blaze rod:
- if name of player's tool is "&6★ &9&lTeleport na &6&lSpawn &6★":
- set {pk.dolacz.%player%} to false
- set {pk.start.%player%} to false
- set level of the player to 0
- set level progress of the player to 0.0
- set {pk.timer.%player%.mili} to 0
- set {pk.timer.%player%.sec} to 0
- set {event.parkour} to false
- set {event.parkour.start} to false
- set {check.%player%} to false
- remove player from {event.status::*}
- clear {pk.%player%}
- teleport player to {spawn.spawn}
- remove bossbar from player
- display board named "&6===Top &5&l[&6%{_arena}%&5&l]===" to player
- stop
- on drop:
- cancel event
- stop
- command /osiagniecia [<text>] [<text>] [<player>]:
- aliases: o
- trigger:
- if arg 1 is "1x180":
- if arg 2 is "spawn":
- if arg 3 is not set:
- set {1x180.parkour} to location of player
- send "&8> &7Ustawiles spawn dla osiagniecia &61x180'tka"
- stop
- else:
- send "&8> &7Uzycie: &6/o 1x180 spawn"
- stop
- if arg 2 is "dolacz":
- if arg 3 is set:
- teleport arg 3 to {1x180.parkour}
- set {1x180.%arg-3%.dolacz} to true
- else:
- teleport player to {1x180.parkour}
- set {1x180.%player%.dolacz} to true
- if arg 2 is "opusc":
- if arg 3 is set:
- set {1x180.%arg-3%.dolacz} to false
- else:
- set {1x180.%player%.dolacz} to false
- if arg 1 is "2x180":
- if arg 2 is "spawn":
- if arg 3 is not set:
- set {2x180.parkour} to location of player
- send "&8> &7Ustawiles spawn dla osiagniecia &62x180'tka"
- stop
- else:
- send "&8> &7Uzycie: &6/o 2x180 spawn"
- stop
- if arg 2 is "dolacz":
- if arg 3 is set:
- teleport arg 3 to {2x180.parkour}
- set {2x180.%arg-3%.dolacz} to true
- else:
- teleport player to {2x180.parkour}
- set {2x180.%player%.dolacz} to true
- if arg 2 is "opusc":
- if arg 3 is set:
- set {2x180.%arg-3%.dolacz} to false
- else:
- set {2x180.%player%.dolacz} to false
- if arg 1 is "3x180":
- if arg 2 is "spawn":
- if arg 3 is not set:
- set {3x180.parkour} to location of player
- send "&8> &7Ustawiles spawn dla osiagniecia &63x180'tka"
- stop
- else:
- send "&8> &7Uzycie: &6/o 3x180 spawn"
- stop
- if arg 2 is "dolacz":
- if arg 3 is set:
- teleport arg 3 to {3x180.parkour}
- set {3x180.%arg-3%.dolacz} to true
- else:
- teleport player to {3x180.parkour}
- set {3x180.%player%.dolacz} to true
- if arg 2 is "opusc":
- if arg 3 is set:
- set {3x180.%arg-3%.dolacz} to false
- else:
- set {3x180.%player%.dolacz} to false
- if arg 1 is "4kratki":
- if arg 2 is "spawn":
- if arg 3 is not set:
- set {4kratki.parkour} to location of player
- send "&8> &7Ustawiles spawn dla osiagniecia 4 Kratki"
- stop
- else:
- send "&8> &7Uzycie: &6/o 4kratki spawn"
- stop
- if arg 2 is "dolacz":
- if arg 3 is set:
- teleport arg 3 to {4kratki.parkour}
- set {4kratki.%arg-3%.dolacz} to true
- else:
- teleport player to {4kratki.parkour}
- set {4kratki.%player%.dolacz} to true
- if arg 2 is "opusc":
- if arg 3 is set:
- set {4kratki.%arg-3%.dolacz} to false
- else:
- set {4kratki.%player%.dolacz} to false
- on walk on green stained clay:
- if block underneath event-block is sponge:
- if {1x180.%player%.dolacz} is true:
- if {1x180.%player%.done} is false:
- set {1x180.%player%.done} to true
- set {1x180.%player%.dolacz} to false
- teleport player to {spawn.spawn}
- send "&fZdobyto osiagniecie &a&l180'tka"
- stop
- on walk on yellow stained clay:
- if block underneath event-block is sponge:
- if {2x180.%player%.dolacz} is true:
- if {2x180.%player%.done} is false:
- set {2x180.%player%.done} to true
- set {2x180.%player%.dolacz} to false
- teleport player to {spawn.spawn}
- send "&fZdobyto osiagniecie &a&lpodwojna 180'tka"
- stop
- on walk on red stained clay:
- if block underneath event-block is sponge:
- if {3x180.%player%.dolacz} is true:
- if {3x180.%player%.done} is false:
- set {3x180.%player%.done} to true
- set {3x180.%player%.dolacz} to false
- teleport player to {spawn.spawn}
- send "&fZdobyto osiagniecie &a&lpotrojna 180'tka"
- stop
- on walk on wood:
- if block underneath event-block is sponge:
- if {3x180.%player%.dolacz} is true:
- teleport player to {3x180.parkour}
- send "&5Upssss! Spad³es!"
- stop
- if {2x180.%player%.dolacz} is true:
- teleport player to {2x180.parkour}
- send "&5Upssss! Spad³es!"
- stop
- if {1x180.%player%.dolacz} is true:
- teleport player to {1x180.parkour}
- send "&5Upssss! Spad³es!"
- stop
- if {4kratki.%player%.dolacz} is true:
- teleport player to {1x180.parkour}
- send "&5Upssss! Spad³es!"
- stop
- # if {cos tam} is more than liczba
- command /zeroj [<text>] [<player>]:
- trigger:
- if player has permission "parkour.*":
- if arg 1 is "1x180":
- set {1x180.%arg-2%.done} to false
- send "&l&2>>>>&4z zerowano 1x180 gracza &5%arg-2%"
- stop
- if arg 1 is "2x180":
- set {2x180.%arg-2%.done} to false
- send "&l&2>>>>&4z zerowano 2x180 gracza &5%arg-2%"
- stop
- if arg 1 is "3x180":
- set {3x180.%arg-2%.done} to false
- send "&l&2>>>>&4z zerowano 3x180 gracza &5%arg-2%"
- stop
- if arg 1 is "4kratki":
- set {4kratki.%arg-2%.done} to false
- send "&l&2>>>>&4z zerowano Skok na 4 kratki gracza &5%arg-2%"
- Stop
- if arg 1 is "staty":
- clear {punkty::%arg-2%}
- clear {lvl.%arg-2%}
- clear {exp.%arg-2%}
- send "&l&2>>>>&4z zerowano statystyki gracza &5%arg-2%"
- Stop
- if arg 1 is "all":
- set {3x180.%arg-2%.done} to false
- set {2x180.%arg-2%.done} to false
- set {1x180.%arg-2%.done} to false
- set {4kratki.%arg-2%.done} to false
- send "&l&2>>>>&4z zerowano wszystkie osi¹gniêcia gracza &5%arg-2%"
- stop
- command /setspawn:
- trigger:
- if player has permission "essentials.*":
- set {spawn.spawn} to location of player
- send "&6&lUstawiles spawn dla graczy"
- stop
- command /lvl [<offlineplayer>] [<text>] [<integer>]:
- trigger:
- if arg 1 is not set:
- send "&f&l>======================="
- send "&f&l> &aPosiadasz: &f&l%{exp.%player%}% &aexpa"
- send "&f&l> &alvl: &f&l%{lvl.%player%}%"
- send "&f&l>======================="
- stop
- if arg 1 is set:
- if arg 2 is not set:
- send "&f&l>======================="
- send "&f&l> &aGracz &f&l%arg 1%&a:"
- send "&f&l> &aexp: &f&l%{exp.%arg 1%}%"
- send "&f&l> &alvl: &f&l%{lvl.%arg 1%}%"
- send "&f&l>======================="
- stop
- if arg 2 is "set" or "ustaw":
- if arg 3 is not set:
- if player has permission "{@name_pex}":
- send "&f&l> &aPodaj liczbe expa!"
- stop
- else:
- send "{@pex}"
- stop
- if arg 3 is set:
- if player has permission "{@name_pex}":
- set {lvl.%arg 1%} to 0
- set {exp.%arg 1%} to 0
- add arg 3 to {lvl.%arg 1%}
- send "&f&l> &aUstawiles &f%arg 3% &alvl dla gracza &f%arg 1%"
- stop
- else:
- send "{@pex}"
- stop
- if arg 2 is "remove" or "usun":
- if arg 3 is not set:
- if player has permission "{@name_pex}":
- set {lvl.%arg 1%} to 0
- set {exp.%arg 1%} to 0
- send "&f&l> &aUsunales lvl dla gracza &f&l%arg 1%"
- stop
- else:
- send "{@pex}"
- stop
- else:
- send "&f&l> &a/lvl %arg 1% remove"
- stop
- if arg 2 is "add" or "dodaj":
- if arg 3 is set:
- if player has permission "{@name_pex}":
- add arg 3 to {lvl.%arg 1%}
- send "&f&l> &aDodales &f&l%arg 3% &alvl dla gracza &f&l%arg 1%"
- stop
- else:
- send "{@pex}"
- stop
- else:
- send "&f&l> &aPodaj liczbe expa!"
- stop
- on chat:
- if {lvl.%player%} < 3:
- cancel event
- send "&cMozesz pisac od 3 lvl!"
- stop
- if {lvl.%player%} > 2:
- cancel event
- set {_chat} to "{@chat}"
- replace all "{DISPLAY}" with "%display name of player%" in {_chat}
- replace all "{MESSAGE}" with "%message%" in {_chat}
- replace all "{LVL}" with "%{lvl.%player%}%" in {_chat}
- send "%{_chat}%" to all players
- command /easy [<text>] [<player>]:
- trigger:
- if arg 1 is "1":
- execute arg 2 command "/pk join easy1"
- if arg 1 is "2":
- execute arg 2 command "/pk join easy2"
- if arg 1 is "3":
- execute arg 2 command "/pk join easy3"
- if arg 1 is "4":
- execute arg 2 command "/pk join easy4"
- if arg 1 is "5":
- execute arg 2 command "/pk join easy5"
- if arg 1 is "6":
- execute arg 2 command "/pk join easy6"
- if arg 1 is "7":
- execute arg 2 command "/pk join easy7"
- if arg 1 is "8":
- execute arg 2 command "/pk join easy8"
- if arg 1 is "9":
- execute arg 2 command "/pk join easy9"
- if arg 1 is "10":
- execute arg 2 command "/pk join easy10"
- command /medium [<text>] [<player>]:
- trigger:
- if arg 1 is "1":
- execute arg 2 command "/pk join medium1"
- if arg 1 is "2":
- execute arg 2 command "/pk join medium2"
- if arg 1 is "3":
- execute arg 2 command "/pk join medium3"
- if arg 1 is "4":
- execute arg 2 command "/pk join medium4"
- if arg 1 is "5":
- execute arg 2 command "/pk join medium5"
- if arg 1 is "6":
- execute arg 2 command "/pk join medium6"
- if arg 1 is "7":
- execute arg 2 command "/pk join medium7"
- if arg 1 is "8":
- execute arg 2 command "/pk join medium8"
- if arg 1 is "9":
- execute arg 2 command "/pk join medium9"
- if arg 1 is "10":
- execute arg 2 command "/pk join medium10"
- command /hard [<text>] [<player>]:
- trigger:
- if arg 1 is "1":
- execute arg 2 command "/pk join hard1"
- if arg 1 is "2":
- execute arg 2 command "/pk join hard2"
- if arg 1 is "3":
- execute arg 2 command "/pk join hard3"
- if arg 1 is "4":
- execute arg 2 command "/pk join hard4"
- if arg 1 is "5":
- execute arg 2 command "/pk join hard5"
- if arg 1 is "6":
- execute arg 2 command "/pk join hard6"
- if arg 1 is "7":
- execute arg 2 command "/pk join hard7"
- if arg 1 is "8":
- execute arg 2 command "/pk join hard8"
- if arg 1 is "9":
- execute arg 2 command "/pk join hard9"
- if arg 1 is "10":
- execute arg 2 command "/pk join hard10"
- command /osiagi [<text>] [<player>]:
- trigger:
- if arg 1 is "1":
- execute arg 2 command "/osiagniecia 1x180 dolacz %arg-2%"
- if arg 1 is "2":
- execute arg 2 command "/osiagniecia 2x180 dolacz %arg-2%"
- if arg 1 is "3":
- execute arg 2 command "/osiagniecia 3x180 dolacz %arg-2%"
- if arg 1 is "4":
- execute arg 2 command "/osiagniecia 4kratki dolacz %arg-2%"
- command /ef [<text>] [<player>]:
- trigger:
- if arg 1 is "1":
- execute arg 2 command "/pk join speed"
- if arg 1 is "2":
- execute arg 2 command "/pk join speed2"
- if arg 1 is "3":
- execute arg 2 command "/pk join speed3"
- if arg 1 is "4":
- execute arg 2 command "/pk join speed4"
- if arg 1 is "5":
- execute arg 2 command "/pk join speed5"
- if arg 1 is "6":
- execute arg 2 command "/pk join jump1"
- if arg 1 is "7":
- execute arg 2 command "/pk join jump2"
- if arg 1 is "8":
- execute arg 2 command "/pk join jump3"
- if arg 1 is "9":
- execute arg 2 command "/pk join jump4"
- if arg 1 is "10":
- execute arg 2 command "/pk join jump5"
- on place bed:
- if name of player's tool is "&6★ &9&lCheck point &6★":
- cancel event
- on right click with bed:
- if name of player's tool is "&6★ &9&lCheck point &6★":
- if {pk.start.%player%} is true:
- set {zapis.%player%} to location of player
- set {check.%player%} to true
- message "&1&lUstawiono checkpoint"
- else:
- send "&4&lNie jestes na pakurze"
- On hunger meter change:
- cancel event
- on damage:
- cancel event
- stop
- on sign change:
- if line 1 of event-block is "pk":
- set line 1 of event-block to "&8[&6PK&8]"
- if line 2 of event-block is "stop":
- set line 2 of event-block to "&c&lStop"
- if block above event-block is not air:
- send "&6Ustawiono &c&lStop"
- else:
- send "&cPostaw nad tabliczka blok!"
Advertisement
Add Comment
Please, Sign In to add comment