Sandığa Belirli İtemleri Rastgele Koyma

H

HardCore2

Ziyaretçi
Merhaba Arkadaşlar, Yine Bu Gün Sizden Yardım İsteyeceğim. Arkadaşlar Ben Bir Sandığa Rastgele İtem Koymak İstiyorum Kısacası..
/itemkoy Yazdığım Zaman Dünyaya Koyulmuş Olan Tüm Sandıkların İçine Elma Ve Taş Girsin Bunu Nasıl Yapabiliriz? Bir Kaç Kaynağı Araştırdım Ama Bulamadım Bu Konuda İse Çözümlenmemiş; Güncellemek Yerine Yeni Konu Açtım. Ayrıca
Linki görebilmek için üye olmanız gerekiyor. Giriş yap veya üye ol.
Kaynağada Baktım Ama Skript Biraz Karışık Geldi Doğrusu. Yardımcı Olan Herkese Teşekkürler.
 
Son düzenleme:

Rosenrot

LAGOMORPHA
En iyi cevaplar
0
Kod:
command /itemkoy:
    trigger:
        loop all blocks:
            loop-block is a chest:
                add an apple to loop-block's inventory
                add a stone block to loop-block's inventory
 

HqeS

Lapis Toplayıcısı
En iyi cevaplar
0
Kod:
on rightclick on chest:
          chance of 50%:
          set 1st slot of clicked block to Stone
          set 2nd slot of clicked block to Diamond Sword
          set 3rd slot of clicked block to Golden Apple
          chance of 50%:
          set 1st slot of clicked block to paper
          set 2nd slot of clicked block to string
          set 3rd slot of clicked block to stick

muhtemelen çalışır :D
 
H

HardCore2

Ziyaretçi
Kod:
command /itemkoy:
    trigger:
        loop all blocks:
            loop-block is a chest:
                add an apple to loop-block's inventory
                add a stone block to loop-block's inventory
teşekkürler ama ilk baştaki alma ekleme kodunda "an" kullanmışsın 2. stone ekleme kodunda ise "a" kullanmışsın bunun sebebi nedir?
 
H

HardCore2

Ziyaretçi
Kod:
on rightclick on chest:
          chance of 50%:
          set 1st slot of clicked block to Stone
          set 2nd slot of clicked block to Diamond Sword
          set 3rd slot of clicked block to Golden Apple
          chance of 50%:
          set 1st slot of clicked block to paper
          set 2nd slot of clicked block to string
          set 3rd slot of clicked block to stick

muhtemelen çalışır :D
teşekkürler ama bu chest her açılışında item koyuyor
 

KaanGunlu

Işık Taşı Madencisi
En iyi cevaplar
0
command "/itemkoy":
player has permission "enbuyukkurucu.op"
loop all blocks:
loop-block is a chest:
add a apple to loop-block's inventory
add a stone block to loop-block's inventory​
 
Üst