Witam ogólnie mam skrypt na meteoryty od pana Helios1993 ale mam pytanie czy mógłby mi ktoś dopisać że przy każdym pojawieniu się meteorytu zostanie wysłana wiadomość na chacie z dokładnymi koordynatami tego meteorytu? Potrzebuje również komende /meteoryty która będzie pokazywała wszystkie meteoryty jakie są na świecie oraz ich koordynaty.
function meteoryt():
set {_x} to random integer between -500 and 500
set {_z} to random integer between -500 and 500
set {_loc} to location of highest block at location at (random integer between -500 and 500), 256, (random integer between -500 and 500) in world "world"
set block at {_loc} to air
remove 1 from y-loc of {_loc}
set {meteoryt::%{_loc}%} to true
set block at {_loc} to obsidian
while {meteoryt::%{_loc}%} is set:
loop all players in radius 6 around {_loc}:
apply slowness to loop-player for 2 second
apply poison to loop-player for 2 second
wait 2 second
on rightclick on obsidian:
if {meteoryt::%location at event-block%} is set:
clear {meteoryt::%location at event-block%}
set event-block to air
drop 5 diamonds at event-block
every 10 minutes:
meteoryt()
command /meteoryt [<text>]:
permission: skript.command.meteoryt
trigger:
meteoryt()
Pytanie
Gość Usunięty#19006
Witam ogólnie mam skrypt na meteoryty od pana Helios1993 ale mam pytanie czy mógłby mi ktoś dopisać że przy każdym pojawieniu się meteorytu zostanie wysłana wiadomość na chacie z dokładnymi koordynatami tego meteorytu? Potrzebuje również komende /meteoryty która będzie pokazywała wszystkie meteoryty jakie są na świecie oraz ich koordynaty.
function meteoryt(): set {_x} to random integer between -500 and 500 set {_z} to random integer between -500 and 500 set {_loc} to location of highest block at location at (random integer between -500 and 500), 256, (random integer between -500 and 500) in world "world" set block at {_loc} to air remove 1 from y-loc of {_loc} set {meteoryt::%{_loc}%} to true set block at {_loc} to obsidian while {meteoryt::%{_loc}%} is set: loop all players in radius 6 around {_loc}: apply slowness to loop-player for 2 second apply poison to loop-player for 2 second wait 2 second on rightclick on obsidian: if {meteoryt::%location at event-block%} is set: clear {meteoryt::%location at event-block%} set event-block to air drop 5 diamonds at event-block every 10 minutes: meteoryt() command /meteoryt [<text>]: permission: skript.command.meteoryt trigger: meteoryt()Kodzik
Odnośnik do komentarza
https://skript.pl/temat/42561-meteoryty/Udostępnij na innych stronach
3 odpowiedzi na to pytanie
Rekomendowane odpowiedzi