Çözüldü "stop" komutu işlevsiz

  • Konuyu Başlatan Konuyu Başlatan ImInfiniTy
  • Başlangıç tarihi Başlangıç tarihi
  • Görüntüleme 1.256
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

ImInfiniTy

Şimdi bir Hardcore server olacaktı..
Katılım
18 Şubat 2015
Mesajlar
327
Elmaslar
90
Puan
13.710
Yaş
25
on rightclick with nether_star:
cancel event
loop all blocks in radius 2 around event-block:
if loop-block is stone:
stop
else:
send "sa"

Stop dememe rağmen, loop-block kadar "sa" yazıyor ekrana..
 
on rightclick with nether_star:
cancel event
loop all blocks in radius 2 around event-block:
if loop-block is stone:
stop
else:
send "sa"

Stop dememe rağmen, loop-block kadar "sa" yazıyor ekrana..
Kodu [ code ] etiketi ile atar mısın?
 
Kod:
on rightclick with nether_star:   
    cancel event
    loop all blocks in radius 2 around event-block:
        if loop-block is stone:
            delete loop-block
            stop
        else:
            send "sa"
 
"%loop-block%" is "stone" olarak dene.
 
Algılamıyor %loop-block% kısmını. Hata veriyor.
 
loop-block is "stone" dene. Birde hatayı atarsan güzel olur.
 
loop-block is "stone" dene. Birde hatayı atarsan güzel olur.
Son dediğinizi yaptım. There's no loop matches 'loop-block' is "stone"
Gönderi otomatik olarak birleştirildi:

loop-block is "stone" dene. Birde hatayı atarsan güzel olur.
%loop-block% şeklinde yapınca da: Can't compare '%loop-block%' with a text
Gönderi otomatik olarak birleştirildi:

Şöyle bir sorun olduğunu keşfettim:
Kod:
on rightclick with nether star:
    loop all blocks in radius 2 around event-block:
        if loop-block is stone:
            send "daşvar"
            clear loop-block's inventory
            exit loop
            stop loop
        else:
            send "sa"
            stop

"Loopladığı 2 Radius'un tamamı stone ise" olarak algılıyor skript. Ben "1 tanesi stone ise" olarak yapmak istiyorum. Nasıl olacak o?
 
Son düzenleme:
Kod:
rightclick with nether star:
    loop all blocks in radius 2 around event-block:
        if {_x} is not set:
            if loop-block is stone:
                set {_x} to true
                stop loop
            else:
                send "sa"
    if {_x} is set:
        send "daş var"
 
Kod:
rightclick with nether star:
    loop all blocks in radius 2 around event-block:
        if {_x} is not set:
            if loop-block is stone:
                set {_x} to true
                stop loop
            else:
                send "sa"
    if {_x} is set:
        send "daş var"
Taşları algılıyor onda sıkıntı yok ancak taş olmayan yerde de 20 kereden fazla sa yazıyor.
 
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