Witam ZNOWU mam skrypt na meteoryty od pana Helios1993 i mam pytanie czy da sie zrobić aby na actionbarze pokazywało się ile zostało do spadnięcia meteorytu licząc od 10min??
function meteoryt():
set {_x} to random integer between -50 and 50
set {_z} to random integer between -50 and 50
set {_loc} to location of highest block at location at (random integer between -500 and 500), 90, (random integer between -50 and 50) 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
broadcast "&6Meteoryt spadł na koordynatach: &e%{_loc}%&6!"
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 prismarine shard of sharpness 5 named "&bMagiczny Odłamek" at event-block
broadcast "&6Gracz &e%player% &6zdobył meteoryt!"
every 10 minute:
meteoryt()
command /meteoryt [<text>]:
permission: skript.command.meteoryt
trigger:
meteoryt()
command /meteoryty:
trigger:
send "&bLokalizacje meteorytów:" to sender
loop {meteoryt::*}:
send "&7- &6%loop-value%" to sender
Mam jeszcze jeden problem (wiem że to sie nadaje do innego działu ale chciałem aby ktoś mi to naprawił przy okazji) ponieważ pan Kormic zrobił mi komende /meteoryty ale ona nie działa tzn. działa ale nie pokazuje koordynatów tylko 'true'
Pytanie
Gość Usunięty#19006
Witam ZNOWU mam skrypt na meteoryty od pana Helios1993 i mam pytanie czy da sie zrobić aby na actionbarze pokazywało się ile zostało do spadnięcia meteorytu licząc od 10min??
function meteoryt(): set {_x} to random integer between -50 and 50 set {_z} to random integer between -50 and 50 set {_loc} to location of highest block at location at (random integer between -500 and 500), 90, (random integer between -50 and 50) 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 broadcast "&6Meteoryt spadł na koordynatach: &e%{_loc}%&6!" 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 prismarine shard of sharpness 5 named "&bMagiczny Odłamek" at event-block broadcast "&6Gracz &e%player% &6zdobył meteoryt!" every 10 minute: meteoryt() command /meteoryt [<text>]: permission: skript.command.meteoryt trigger: meteoryt() command /meteoryty: trigger: send "&bLokalizacje meteorytów:" to sender loop {meteoryt::*}: send "&7- &6%loop-value%" to senderMam jeszcze jeden problem (wiem że to sie nadaje do innego działu ale chciałem aby ktoś mi to naprawił przy okazji) ponieważ pan Kormic zrobił mi komende /meteoryty ale ona nie działa tzn. działa ale nie pokazuje koordynatów tylko 'true'
[INFO] Lokalizacje meteorytów: [INFO] - true [INFO] - true [INFO] - true [INFO] - true [INFO] - trueOdnośnik do komentarza
https://skript.pl/temat/42562-meteoryty-2/Udostępnij na innych stronach
11 odpowiedzi na to pytanie
Rekomendowane odpowiedzi