Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- pot1: location(6993, 80, 7298, world "katedra")
- pot2: location(6983, 81, 7313, world "katedra")
- pot3: location(6958, 81, 7306, world "katedra")
- pot4: location(6971, 82, 7285, world "katedra")
- back: location(6997, 96, 7296, world "katedra")
- on damage of polar bear:
- "%region at attacker%" contains "4potwory_quest":
- chance of 5%:
- send "&6MlodyBog &8&l» &bBicie jest juz dawno nie w modzie..." to attacker
- send "&6MlodyBog &8&l» &bSprobuj go usmiercic w inny, bardziej wykwintny sposob" to attacker
- on enter region "4potwory_quest":
- loop all players in radius 50 around player:
- if "%region at loop-player%" contains "4potwory_quest":
- teleport player to {@back}
- send "&cw tym miejscu moze wykazac sie tylko jedna osoba w tym samym czasie"
- stop
- loop all polar bears in radius 50 around player:
- teleport loop-polar bear 100 meters below loop-polar bear
- kill loop-polar bear
- execute console command "tellraw %player% ["""",{""text"":""§lPokaz na ile cie stac i zabij "",""color"":""green""},{""text"":""§l4 potwory"",""underlined"":true,""color"":""green"",""clickEvent"":{""action"":""run_command"",""value"":""/dhaInxncuzi128u88eh7wse176w128u3nreu1""},""hoverEvent"":{""action"":""show_text"",""value"":""§cKliknijn, aby zabic wszystkie 4 potwory""}},{""text"":"" §lw trakcie 10 sekund"",""color"":""green""}]"
- loop 4 times:
- if loop-number is 1:
- spawn polar bear at {@pot1}
- if loop-number is 2:
- spawn polar bear at {@pot2}
- if loop-number is 3:
- spawn polar bear at {@pot3}
- if loop-number is 4:
- spawn polar bear at {@pot4}
- set {_bear.%loop-number%} to spawned entity
- set {_bear.%loop-number%}'s max health to 16384
- heal {_bear.%loop-number%}
- apply slowness 200 to {_bear.%loop-number%}
- set target of {_bear.%loop-number%} to player
- set name of {_bear.%loop-number%} to "&b&lPotworny Lodowy Potwor"
- loop 10 times:
- send actionbar "&c&l00:0%10-loop-number%:&kaa" to player
- wait 1 second
- if metadata value "4potwory" of player is true:
- clear metadata value "4potwory" of player
- send action bar "" to player
- stop
- end4potwory(player)
- wait 2 ticks
- clear metadata value "4potwory" of player
- on exit region "4potwory_quest":
- loop all polar bears in radius 50 around player:
- kill loop-polar bear
- set metadata value "4potwory" of player to true
- wait 1 second
- clear metadata value "4potwory" of player
- on death of polar bear:
- "%region at victim%" contains "4potwory_quest":
- clear drops
- command /dhaInxncuzi128u88eh7wse176w128u3nreu1:
- trigger:
- if "%region at player%" contains "4potwory_quest":
- loop all polar bears in radius 50 around player:
- kill loop-polar bear
- set metadata value "4potwory" of player to true
- wait 1 second
- send "&6&lBogowie sa pod wrazeniem twojego sprytu i umiejetnosci manipulacji chatem!"
- wait 2 second
- send "&4&lTeleportacja do Mefisto..."
- wait 1 second
- loop 10 times:
- strike lightning effect at player
- wait 2 ticks
- run {_p} command "warp mefisto" as op
- function end4potwory(p: player):
- if metadata value "4potwory.pozostalo" of {_p} >= 3:
- send {_p} title "&4&lNiestety" with subtitle "&fTa zagadka Cie przerasta..." for 5 seconds
- run {_p} command "warp katedra" as op
- else:
- set {_m} to metadata value "4potwory.pozostalo" of {_p}
- add 1 to {_m}
- set metadata value "4potwory.pozostalo" of {_p} to {_m}
- teleport {_p} to {@back}
- send {_p} title "&4&lPrzegrales" with subtitle "&eZostalo Ci %4 - {_m}% szans" for 5 seconds
- on disconnect:
- clear metadata value "4potwory.pozostalo" of player
- on exit region "4potwory":
- clear metadata value "4potwory.pozostalo" of player
Advertisement
Add Comment
Please, Sign In to add comment