Çözüldü Bandaj Skriptine ek istek

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

olcayturk

Koydum Çalışma Masasını
Katılım
28 Haziran 2020
Mesajlar
71
Elmaslar
5
Puan
435
Yaş
27
Minecraft
olcayturk
Merhaba arkadaşlar. Bandaj skriptine ek yapabilir misiniz. İstediklerim Bandaja sağ tıkladıktan sonra oyuncu yere atınca veya sandığa koyunca iptal olsun istiyorum. Çünkü adam bandaja sağ tıklayıp cheste koyup veya yere atınca hem bandaj efektini alabiliyor hem de bandaj eksilmemiş oluyor ve ek olarak
Bandaj sarılıyor 3
Bandaj sarılıyor 2
Bandaj sarılıyor 1
Bandaj sarıldı
yazılarının action Bar'da görüntülenmesini istiyorum.

Kod:
on right click:
    if player is holding a paper named "&9Bandaj" with lore "&7Sağlığınızı iyileştirir" and "&7Tek kullanımlık ve kullanımdan" and "&f10&7 saniye sonra tekrar kullabilirsiniz.":
        if target block is a chest:
            stop
        if target block is a furnace:
            stop
        if target block is a sign:
            stop
        if target block is a ender chest:
            stop
        if target block is a crafting table:
            stop
        if target block is a dispenser:
            stop
        player's health is player's max health:
            message "&7Sağlığın dolu olduğu için bandaj kullanılamıyor"
            delete {cooldown.%player%}
            stop
        if {cooldown.%player%} isn't set:
            set {cooldown.%player%} to true
            set {_n} to 3
            loop 3 times:
                set player's action bar to "&cBandaj sarılıyor... &c&l%{_n}%"
                remove 1 from {_n}
            
            send "&7[&4!&7] &9Bandaj &7kullanıldı. Canın yenileniyor."
            set {_loc} to location of player
            loop 3 times:
                wait a second
                distance between {_loc} and player's location > 3:
                    send "&cHareket ettiğiniz için bandaj yenileme iptal edildi."    
                    delete {cooldown.%player%}
                    stop
            apply regeneration 2 to player for {@seconds} seconds
            remove 1 paper named "&9Bandaj" with lore "&7Sağlığınızı iyileştirir" and "&7Tek kullanımlık ve kullanımdan" and "&f10&7 saniye sonra tekrar kullabilirsiniz." from the player
            send "&7[&4!&7] &7Canın yenilendi."
            delete {cooldown.%player%}
 
Kod:
on right click:
    if player is holding a paper named "&9Bandaj" with lore "&7Sağlığınızı iyileştirir" and "&7Tek kullanımlık ve kullanımdan" and "&f10&7 saniye sonra tekrar kullabilirsiniz.":
        if target block is a chest:
            stop
        if target block is a furnace:
            stop
        if target block is a sign:
            stop
        if target block is a ender chest:
            stop
        if target block is a crafting table:
            stop
        if target block is a dispenser:
            stop
        player's health is player's max health:
            message "&7Sağlığın dolu olduğu için bandaj kullanılamıyor"
            delete {cooldown.%player%}
            stop
        if {cooldown.%player%} isn't set:
            set {cooldown.%player%} to true
            set {_n} to 3
            loop 3 times:
                player is holding a paper named "&9Bandaj" with lore "&7Sağlığınızı iyileştirir" and "&7Tek kullanımlık ve kullanımdan" and "&f10&7 saniye sonra tekrar kullabilirsiniz.":
                    set player's action bar to "&cBandaj sarılıyor... &c&l%{_n}%"
                    remove 1 from {_n}
                else:
                    stop loop
            {_n} is 3:
                send "&7[&4!&7] &9Bandaj &7kullanıldı. Canın yenileniyor."
                set {_loc} to location of player
                loop 3 times:
                    wait a second
                    distance between {_loc} and player's location > 3:
                        send "&cHareket ettiğiniz için bandaj yenileme iptal edildi."   
                        delete {cooldown.%player%}
                        stop
                apply regeneration 2 to player for {@seconds} seconds
                remove 1 paper named "&9Bandaj" with lore "&7Sağlığınızı iyileştirir" and "&7Tek kullanımlık ve kullanımdan" and "&f10&7 saniye sonra tekrar kullabilirsiniz." from the player
                send "&7[&4!&7] &7Canın yenilendi."
                delete {cooldown.%player%}
            else:
                send "&cBaşarısız"
 
Kod:
on right click:
    if player is holding a paper named "&9Bandaj" with lore "&7Sağlığınızı iyileştirir" and "&7Tek kullanımlık ve kullanımdan" and "&f10&7 saniye sonra tekrar kullabilirsiniz.":
        if target block is a chest:
            stop
        if target block is a furnace:
            stop
        if target block is a sign:
            stop
        if target block is a ender chest:
            stop
        if target block is a crafting table:
            stop
        if target block is a dispenser:
            stop
        player's health is player's max health:
            message "&7Sağlığın dolu olduğu için bandaj kullanılamıyor"
            delete {cooldown.%player%}
            stop
        if {cooldown.%player%} isn't set:
            set {cooldown.%player%} to true
            set {_n} to 3
            loop 3 times:
                player is holding a paper named "&9Bandaj" with lore "&7Sağlığınızı iyileştirir" and "&7Tek kullanımlık ve kullanımdan" and "&f10&7 saniye sonra tekrar kullabilirsiniz.":
                    set player's action bar to "&cBandaj sarılıyor... &c&l%{_n}%"
                    remove 1 from {_n}
                else:
                    stop loop
            {_n} is 3:
                send "&7[&4!&7] &9Bandaj &7kullanıldı. Canın yenileniyor."
                set {_loc} to location of player
                loop 3 times:
                    wait a second
                    distance between {_loc} and player's location > 3:
                        send "&cHareket ettiğiniz için bandaj yenileme iptal edildi."  
                        delete {cooldown.%player%}
                        stop
                apply regeneration 2 to player for {@seconds} seconds
                remove 1 paper named "&9Bandaj" with lore "&7Sağlığınızı iyileştirir" and "&7Tek kullanımlık ve kullanımdan" and "&f10&7 saniye sonra tekrar kullabilirsiniz." from the player
                send "&7[&4!&7] &7Canın yenilendi."
                delete {cooldown.%player%}
            else:
                send "&cBaşarısız"
bandaja sağ tıkladım. Direk başarısız dedi ve bandajı bir daha kullandırtmadı.
 
{_n} is 3: bu kısmı {_n} < 1: yaparmısın
Gönderi otomatik olarak birleştirildi:

olmazsa bunu denermisin
Kod:
on right click:
    if player is holding a paper named "&9Bandaj" with lore "&7Sağlığınızı iyileştirir" and "&7Tek kullanımlık ve kullanımdan" and "&f10&7 saniye sonra tekrar kullabilirsiniz.":
        if target block is a chest:
            stop
        if target block is a furnace:
            stop
        if target block is a sign:
            stop
        if target block is a ender chest:
            stop
        if target block is a crafting table:
            stop
        if target block is a dispenser:
            stop
        player's health is player's max health:
            message "&7Sağlığın dolu olduğu için bandaj kullanılamıyor"
            delete {cooldown.%player%}
            stop
        if {cooldown.%player%} isn't set:
            set {cooldown.%player%} to true
            set {_n} to 3
            loop 3 times:
                player's tool is paper:
                name of player's tool is "&9Bandaj"
                set player's action bar to "&cBandaj sarılıyor... &c&l%{_n}%"
                remove 1 from {_n}
            {_n} < 1:
                send "&7[&4!&7] &9Bandaj &7kullanıldı. Canın yenileniyor."
                set {_loc} to location of player
                loop 3 times:
                    wait a second
                    distance between {_loc} and player's location > 3:
                        send "&cHareket ettiğiniz için bandaj yenileme iptal edildi."   
                        delete {cooldown.%player%}
                        stop
                apply regeneration 2 to player for {@seconds} seconds
                remove 1 paper named "&9Bandaj" with lore "&7Sağlığınızı iyileştirir" and "&7Tek kullanımlık ve kullanımdan" and "&f10&7 saniye sonra tekrar kullabilirsiniz." from the player
                send "&7[&4!&7] &7Canın yenilendi."
                delete {cooldown.%player%}
            else:
                send "&cBaşarısız"
 
{_n} is 3: bu kısmı {_n} < 1: yaparmısın
bandajı yere atınca tekrar kullanıyor heal efektini alıyor ve Bandaj sarılıyor 1 yazıyor sadece. Geri sayım olmuyor 3-2-1 bandaj sarıldı diye.
 
wait a seconds eklememişsiniz
loop 3 times:
player's tool is paper:
name of player's tool is "&9Bandaj"
set player's action bar to "&cBandaj sarılıyor... &c&l%{_n}%"
remove 1 from {_n}
bu kısma wait a seconds eklerseniz sorununuz çözülücekdir
 
Son düzenleme:
wait a tick eklememişsiniz
loop 3 times:
player's tool is paper:
name of player's tool is "&9Bandaj"
set player's action bar to "&cBandaj sarılıyor... &c&l%{_n}%"
remove 1 from {_n}
bu kısma wait a seconds eklerseniz sorununuz çözülücekdir
ekledim fakat yine aynı
 
geri saymıyormu ? sayması gerek item elinizdemi ?
 
direk mi yazıyor yoksa hiçmi yazmıyor
 
direk mi yazıyor yoksa hiçmi yazmıyor
{_n} is 3: bu kısmı {_n} < 1: yaparmısın
Gönderi otomatik olarak birleştirildi:

olmazsa bunu denermisin
Kod:
on right click:
    if player is holding a paper named "&9Bandaj" with lore "&7Sağlığınızı iyileştirir" and "&7Tek kullanımlık ve kullanımdan" and "&f10&7 saniye sonra tekrar kullabilirsiniz.":
        if target block is a chest:
            stop
        if target block is a furnace:
            stop
        if target block is a sign:
            stop
        if target block is a ender chest:
            stop
        if target block is a crafting table:
            stop
        if target block is a dispenser:
            stop
        player's health is player's max health:
            message "&7Sağlığın dolu olduğu için bandaj kullanılamıyor"
            delete {cooldown.%player%}
            stop
        if {cooldown.%player%} isn't set:
            set {cooldown.%player%} to true
            set {_n} to 3
            loop 3 times:
                player's tool is paper:
                name of player's tool is "&9Bandaj"
                set player's action bar to "&cBandaj sarılıyor... &c&l%{_n}%"
                remove 1 from {_n}
            {_n} < 1:
                send "&7[&4!&7] &9Bandaj &7kullanıldı. Canın yenileniyor."
                set {_loc} to location of player
                loop 3 times:
                    wait a second
                    distance between {_loc} and player's location > 3:
                        send "&cHareket ettiğiniz için bandaj yenileme iptal edildi." 
                        delete {cooldown.%player%}
                        stop
                apply regeneration 2 to player for {@seconds} seconds
                remove 1 paper named "&9Bandaj" with lore "&7Sağlığınızı iyileştirir" and "&7Tek kullanımlık ve kullanımdan" and "&f10&7 saniye sonra tekrar kullabilirsiniz." from the player
                send "&7[&4!&7] &7Canın yenilendi."
                delete {cooldown.%player%}
            else:
                send "&cBaşarısız"
[13:43:30] [Server thread/WARN]: Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (bandaj.sk, line 56: player's tool is paper:')

hata veriyor
 
attıgınız skript bende hata verdi hatasız hali:
Kod:
on right click:
    if player's tool is a paper named "&9Bandaj":
        if target block is a chest:
            stop
        if target block is a furnace:
            stop
        if target block is a sign:
            stop
        if target block is a ender chest:
            stop
        if target block is a crafting table:
            stop
        if target block is a dispenser:
            stop
        player's health is player's max health:
            message "&7Sağlığın dolu olduğu için bandaj kullanılamıyor"
            delete {cooldown.%player%}
            stop
        if {cooldown.%player%} isn't set:
            set {cooldown.%player%} to true
            set {_n} to 3
            loop 3 times:
                player's tool is paper
                name of player's tool is "&9Bandaj"
                show action bar "&cBandaj sarılıyor... &c&l%{_n}%" to player
                remove 1 from {_n}
                wait a seconds
            {_n} < 1:
                send "&7[&4!&7] &9Bandaj &7kullanıldı. Canın yenileniyor."
                set {_loc} to location of player
                loop 3 times:
                    wait a second
                    distance between {_loc} and player's location > 3:
                        send "&cHareket ettiğiniz için bandaj yenileme iptal edildi." 
                        delete {cooldown.%player%}
                        stop
                apply regeneration 2 to player for {@seconds} seconds
                remove 1 paper named "&9Bandaj" from player's inventory
                send "&7[&4!&7] &7Canın yenilendi."
                delete {cooldown.%player%}
            else:
                send "&cBaşarısız"
                delete {cooldown.%player%}
skripti denedigimde geri sayım oluyordu
 
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
Üst