options:# Czym jest rzucane TNT na twoim serwerze
rzucane-item: tnt named "&cRzucane TNT"# Czas cooldownu (odnowienia)rzucane-cooldown:20 seconds
# Wiadomość wysyłana przy próbie zbyt szybkiego wyrzucenia TNT (gdy cooldown jeszcze obowiązuje)rzucane-cooldownMessage:"&cNie możesz jeszcze użyć rzucanego TNT!"# Czas odliczania
rzucane-countdown:10 seconds
# Wiadomość przy próbie zbyt szybkiego wyrzucenia TNT (gdy odliczanie trwa)rzucane-countingMessage:"&cOdliczanie już trwa!"# Wiadomość przy odliczaniu
rzucane-countdownMessage:"&cRzucane TNT zostanie &6wystrzelone za &e%{@rzucane-countdown} - loop-number%&6..."# Moc wyrzutu TNT (może być to liczba po przecinku, np.0.8)rzucane-force:0.5
on place:
player's tool is {@rzucane-item}
cancel event
on right click:
player's tool is {@rzucane-item}
if {countdown::rzucaneTnt::%player%} is set:
send {@rzucane-countingMessage} to player
stop
if {cooldown::rzucaneTnt::%player%} is set:
difference between {cooldown::rzucaneTnt::%player%} and now is less than {@rzucane-cooldown}
send {@rzucane-cooldownMessage} to player
stop
set {countdown::rzucaneTnt::%player%} to true
loop 10times:
if player's tool is not {@rzucane-item}:
clear {countdown::rzucaneTnt::%player%}
stop
send action bar {@rzucane-countdownMessage} to player
set {cooldown::rzucaneTnt::%player%} to now
clear {countdown::rzucaneTnt::%player%}
shoot a tnt from player at speed {@rzucane-force}
on load:
register new shaped recipe for {@rzucane-item} using tnt, tnt, tnt, tnt, tnt, tnt, tnt, tnt, tnt
Problem jest taki że gdy wyrzucam tnt to nie usuwa się z ekwipunku.
Pytanie
godnikumi 0
Problem jest taki że gdy wyrzucam tnt to nie usuwa się z ekwipunku.
Odnośnik do komentarza
Udostępnij na innych stronach
4 odpowiedzi na to pytanie
Rekomendowane odpowiedzi