Loop block

The_Dark_Brawlers

Kızıltaş Madencisi
Mesajlar
439
En iyi cevaplar
0
Beğeniler
16
Puanları
0
every 1 second:
loop all blocks in radius 10 around location at {44.xyz}:
loop-blocks are 35:4
set loop-blocks to 35:1
stop trigger

bu alandaki blokları tek tek değiştiriyor ben hepsini bir anda değiştirmesini istiyorum
 


Axel102

Hayalet Avcısı
Mesajlar
2,564
En iyi cevaplar
6
Beğeniler
1,002
Puanları
3,390
Kod:
every 1 second:
 loop blocks in radius 10 around {44.xyz}:
  if loop-block is 35:4:
   set block at loop-block to 35:1
   stop loop
 

ShiodomeMiuna

Nether Yerlisi
Mesajlar
2,351
En iyi cevaplar
11
Beğeniler
1,190
Puanları
3,300
stop loop'un amacı nedir? tam kodu atarmısın?

stop loop'u kaldır. çünkü stop loop bir kere tekrarlar,sonra durdurur. stop loop yazmasanda zaten duracak.
 

The_Dark_Brawlers

Kızıltaş Madencisi
Mesajlar
439
En iyi cevaplar
0
Beğeniler
16
Puanları
0
stop loop'un amacı nedir? tam kodu atarmısın?

stop loop'u kaldır. çünkü stop loop bir kere tekrarlar,sonra durdurur. stop loop yazmasanda zaten duracak.

command /xyzayarla:
trigger:
player is op:
set to block below
set {44.xyz} to block below 0 east of player
send "Başarılı."

Kod:
every 1 second:
loop blocks in radius 10 around {44.xyz}:
  if loop-block is 35:4:
   set block at loop-block to 35:1
   stop loop
tek tek yerleştiriyor hala
 

Celebrex

Goḓ of̖͎ ͉s̹̻k̟͍r̳̭̻̝̺̩i͚̞͉̦͇̲̖pt̻̞͔̩͖̺̜
Mesajlar
71
En iyi cevaplar
0
Beğeniler
74
Puanları
0
PHP:
every second:
    loop all blocks in radius 10 around location at {44.xyz}:
        if loop-block is 35:4:
            set loop-block to 35:1
stopu bilmeden heryerde kullanmayınız
 

The_Dark_Brawlers

Kızıltaş Madencisi
Mesajlar
439
En iyi cevaplar
0
Beğeniler
16
Puanları
0
PHP:
every second:
    loop all blocks in radius 10 around location at {44.xyz}:
        if loop-block is 35:4:
            set loop-block to 35:1
stopu bilmeden heryerde kullanmayınız
on step on Yellow Wool:
loop blocks in radius 10 around {44.xyz}:
if loop-block is Yellow Wool:
if player has permission "blue":
set loop-block to red Wool

bu şekilde düzelttim çalışıyor çok saol fakat adam basmıyorken sarı yüne dönüşmesini nasıl yaparız?
 

Celebrex

Goḓ of̖͎ ͉s̹̻k̟͍r̳̭̻̝̺̩i͚̞͉̦͇̲̖pt̻̞͔̩͖̺̜
Mesajlar
71
En iyi cevaplar
0
Beğeniler
74
Puanları
0
on step on Yellow Wool:
loop blocks in radius 10 around {44.xyz}:
if loop-block is Yellow Wool:
if player has permission "blue":
set loop-block to red Wool

bu şekilde düzelttim çalışıyor çok saol fakat adam basmıyorken sarı yüne dönüşmesini nasıl yaparız?
bikac lokasyon kaydet
sonra sürekli o lokasyonların etrafında player varmı diye loopla eger yoksa(if loop-player is not set: ) ordaki blokları loopla eger loop-block kırmızı yünse sarı yap
 

The_Dark_Brawlers

Kızıltaş Madencisi
Mesajlar
439
En iyi cevaplar
0
Beğeniler
16
Puanları
0
bu şeklide neden olmuyor? 2 side olmuyor?
PHP:
every 1 second:
    loop all players in radius 10 around location at {44.xyz}:
        loop-entity is player:
            set {_a} to 1
        else:
            loop blocks in radius 10 around {44.xyz}:
                if loop-block is red Wool:
                    set loop-block to yellow Wool
PHP:
every 1 second:
    loop all players in radius 10 around location at {44.xyz}:
        if loop-entity is player:
            set {_a} to 1
        if loop-player is not set:
            loop blocks in radius 10 around {44.xyz}:
                if loop-block is red Wool:
                    set loop-block to yellow Wool

2 side olmuyor :(
 

Celebrex

Goḓ of̖͎ ͉s̹̻k̟͍r̳̭̻̝̺̩i͚̞͉̦͇̲̖pt̻̞͔̩͖̺̜
Mesajlar
71
En iyi cevaplar
0
Beğeniler
74
Puanları
0
bu şeklide neden olmuyor? 2 side olmuyor?
PHP:
every 1 second:
    loop all players in radius 10 around location at {44.xyz}:
        loop-entity is player:
            set {_a} to 1
        else:
            loop blocks in radius 10 around {44.xyz}:
                if loop-block is red Wool:
                    set loop-block to yellow Wool
PHP:
every 1 second:
    loop all players in radius 10 around location at {44.xyz}:
        if loop-entity is player:
            set {_a} to 1
        if loop-player is not set:
            loop blocks in radius 10 around {44.xyz}:
                if loop-block is red Wool:
                    set loop-block to yellow Wool

2 side olmuyor :(
olmaz cünkü lokasyon kaydetmemişssin hep tek bi lokasyondan yapıyorsun onu
anlatmak istedigim şuydu;

PHP:
command /alansec:
    trigger:
        set {alan.loc} to location of targeted block
        if "%{alan.loc}%" is not "<none>":
            send "&a&lOK"

every seconds:
    loop all players in radius 5 of {alan.loc}:
        if loop-player is not set:
            loop all blocks in radius 5 of {alan.loc}:
                if loop-block is red wool:
                    set block at loop-block to yellow wool
 

The_Dark_Brawlers

Kızıltaş Madencisi
Mesajlar
439
En iyi cevaplar
0
Beğeniler
16
Puanları
0
olmaz cünkü lokasyon kaydetmemişssin hep tek bi lokasyondan yapıyorsun onu
anlatmak istedigim şuydu;

PHP:
command /alansec:
    trigger:
        set {alan.loc} to location of targeted block
        if "%{alan.loc}%" is not "<none>":
            send "&a&lOK"

every seconds:
    loop all players in radius 5 of {alan.loc}:
        if loop-player is not set:
            loop all blocks in radius 5 of {alan.loc}:
                if loop-block is red wool:
                    set block at loop-block to yellow wool
2. lokasyona neden gerek var?
 

The_Dark_Brawlers

Kızıltaş Madencisi
Mesajlar
439
En iyi cevaplar
0
Beğeniler
16
Puanları
0
sen o kullandıgın lokasyonda işlemleri yaparsan ikisi birbirini götürcek, cünkü yaptıgın iki iş bir birinin zıttı
birisi kırmızı yün koyuyor digeri sarı yün
else ile falan olmazmı?

birde
if loop-block is red Wool, yellow wool:
set loop-block to green Wool
bu virgül neden çalılmıyor?
 

Üst