Bulundu Sayaç Skript

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

v0idplus

Birisi mi Spawnlandı?
Katılım
5 Ağustos 2019
Mesajlar
4
Elmaslar
0
Puan
3.745
Yaş
29
Minecraft
LucasFTW
Merhabalar bir skript isteğim var "sayaç" işlevi görücek istediğim şekil
ben /test yazdığımda 60 dklık bir sayaç başlayacak ve bunu /sayaç ile ne kadar kaldığını kontrol edebileceğim bir skript yapabilir misiniz
 
Kod:
on command "/sayaç":
    set {_difference} to difference between {sayaç.%player%} and now
    if {_difference} is less than 64 minutes:
        set  {_difference} to difference between {_difference} and 64 minutes
        set  {_difference} to "%{_difference}%"
        replace all "minutes" with "dakika" in {_difference}
        replace all "minute" with "dakika" in {_difference}
        replace all "seconds" with "saniye" in {_difference}
        replace all "hour" with "saat" in {_difference}
        replace all "saats" with "saat" in {_difference}
        replace all "and" with "ve" in {_difference}
        send "&8"
        message "&c Bu komutu 64 dakikada bir kullanabilirsiniz!"
        send " &cKalan süre: &a%{_difference}%"
        send "&8"
        cancel event
    else:
        set {sayaç.%player%} to now
Buyrun henüz test etmedim bir problem var ise geri dönüş yapınız.
 
Kısa bi test yaptım gayet güzel çalışıyor gibi duruyor teşekkür ederim :)
Gönderi otomatik olarak birleştirildi:

Evet uzun bir test sonucu komutu 2 kere yazmamız durumunda çalışıyor bunu tekli hale getirebilir misiniz :)
Gönderi otomatik olarak birleştirildi:

Kod:
on command "/sayaç":
    set {_difference} to difference between {sayaç.%player%} and now
    if {_difference} is less than 64 minutes:
        set  {_difference} to difference between {_difference} and 64 minutes
        set  {_difference} to "%{_difference}%"
        replace all "minutes" with "dakika" in {_difference}
        replace all "minute" with "dakika" in {_difference}
        replace all "seconds" with "saniye" in {_difference}
        replace all "hour" with "saat" in {_difference}
        replace all "saats" with "saat" in {_difference}
        replace all "and" with "ve" in {_difference}
        send "&8"
        message "&c Bu komutu 64 dakikada bir kullanabilirsiniz!"
        send " &cKalan süre: &a%{_difference}%"
        send "&8"
        cancel event
    else:
        set {sayaç.%player%} to now
Buyrun henüz test etmedim bir problem var ise geri dönüş yapınız.
Bu Komutu ayrıca konsola girdirmem gerekiyor
 
Son düzenleme:
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Hala Discord sunucumuza katılmadın mı?

Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!

Şimdi Katıl