on break:
if event-block is stone:
if {TurboDrop::%player%}:
chance of 100%:
give 1 diamond to player
if {DropMessages::%player%}:
send "Znalazles diament" to player
# ...
else:
chance of 20%:
give 1 diamond to player
if {DropMessages::%player%}:
send "Znalazles diament"
# ...
else if event-block is ore:
cancel event
set block to air
send "Drop z tego bloku jest wylaczony"
on join:
if {DropMessages::%player%} is not set:
set {DropMessages::%player%} to true
if {TurboDrop::%player%} is not set:
set {TurboDrop::%player%} to true
command /powiadomienia <text>:
usage: /powiadomienia <on/off>
trigger:
if arg-1 is "on":
set {DropMessages::%player%} to true
send "Wlaczyles powiadomienia"
else if arg-1 is "off":
set {DropMessages::%player%} to false
send "Wylaczyles powiadomienia"
else:
send "Nie rozpoznano polecenia"
command /turbodrop <text> [<text>]:
usage: /turbodrop <on/off> [nick/all]
permission: admin.admin
permission message: &4Brak uprawnien!
trigger:
if arg-1 is "on":
if arg-2 is "all":
loop all players:
set {TurboDrop::%loop-player%} to true
broadcast "Wszyscy gracze otrzymali turbodrop"
set action bar of player to "wiadomość"
else:
set {_p} to player
if arg-2 parsed as offlineplayer is online:
set {_p} to arg-2 parsed as player
set {TurboDrop::%{_p}%} to true
send "Otrzymales turbodrop"
else if arg-1 is "off":
if arg-2 is "all":
loop all players:
set {TurboDrop::%loop-player%} to false
broadcast "TurboDrop dla wszystkich graczy zostal wylaczony"
else:
set {_p} to player
if arg-2 parsed as offlineplayer is online:
set {_p} to arg-2 parsed as player
set {TurboDrop::%{_p}%} to false
send "Wylaczono twoj turbodrop"
else:
send "Nie rozpoznano polecenia"
i juz tlumacze w czym problem. Chce zeby po wpisaniu komendy /turbodrop all on turbodrop byl na 30 minut + zeby wyswietlala sie wiadomosc na action barze Turbodrop 30 minut i sie co sekunde zmienialo na 29 59; 29 58, itp. Jest takie cos mozliwe do zrobienia? Bylbym wdzieczny.
Pytanie
xJedynskir 1
Witam mam nastepujacy kod:
on break:
if event-block is stone:
if {TurboDrop::%player%}:
chance of 100%:
give 1 diamond to player
if {DropMessages::%player%}:
send "Znalazles diament" to player
# ...
else:
chance of 20%:
give 1 diamond to player
if {DropMessages::%player%}:
send "Znalazles diament"
# ...
else if event-block is ore:
cancel event
set block to air
send "Drop z tego bloku jest wylaczony"
on join:
if {DropMessages::%player%} is not set:
set {DropMessages::%player%} to true
if {TurboDrop::%player%} is not set:
set {TurboDrop::%player%} to true
command /powiadomienia <text>:
usage: /powiadomienia <on/off>
trigger:
if arg-1 is "on":
set {DropMessages::%player%} to true
send "Wlaczyles powiadomienia"
else if arg-1 is "off":
set {DropMessages::%player%} to false
send "Wylaczyles powiadomienia"
else:
send "Nie rozpoznano polecenia"
command /turbodrop <text> [<text>]:
usage: /turbodrop <on/off> [nick/all]
permission: admin.admin
permission message: &4Brak uprawnien!
trigger:
if arg-1 is "on":
if arg-2 is "all":
loop all players:
set {TurboDrop::%loop-player%} to true
broadcast "Wszyscy gracze otrzymali turbodrop"
set action bar of player to "wiadomość"
else:
set {_p} to player
if arg-2 parsed as offlineplayer is online:
set {_p} to arg-2 parsed as player
set {TurboDrop::%{_p}%} to true
send "Otrzymales turbodrop"
else if arg-1 is "off":
if arg-2 is "all":
loop all players:
set {TurboDrop::%loop-player%} to false
broadcast "TurboDrop dla wszystkich graczy zostal wylaczony"
else:
set {_p} to player
if arg-2 parsed as offlineplayer is online:
set {_p} to arg-2 parsed as player
set {TurboDrop::%{_p}%} to false
send "Wylaczono twoj turbodrop"
else:
send "Nie rozpoznano polecenia"
i juz tlumacze w czym problem. Chce zeby po wpisaniu komendy /turbodrop all on turbodrop byl na 30 minut + zeby wyswietlala sie wiadomosc na action barze Turbodrop 30 minut i sie co sekunde zmienialo na 29 59; 29 58, itp. Jest takie cos mozliwe do zrobienia? Bylbym wdzieczny.
Odnośnik do komentarza
https://skript.pl/temat/33640-turbodrop-actionbar/Udostępnij na innych stronach
2 odpowiedzi na to pytanie
Rekomendowane odpowiedzi
Dołącz do dyskusji
Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.