Menü ?

Thraenkost

Lapis Toplayıcısı
En iyi cevaplar
1
Arkadaşlar şimdi şöyle bir şey olabilir mi ? Örneğin menü açılcak sonra 5. slota bir item koyunca "Örnek: Diamond Sword" 7. Slotta 5 tane elmas çıkması mümkün müdür ?
 

Blueyescat

Bedrock Kaşifi
En iyi cevaplar
0
Mantıken böyle. Çalışır diye düşünüyorum sen denersin :)

WildSkript ve skQuery gerektirir.
PHP:
command /test:
    trigger:
        open chest with 1 rows named "&c&l5. Slota Elmas Kilic Koy" to player

on inventory click:
    if player's inventory name is "&c&l5. Slota Elmas Kilic Koy":
        if slot is 4:
            if slot 4 of player is Diamond Sword:
                format slot 6 of player with 5 of Diamond to be unstealable
(Slotlar 0 dan başladığı için 4. slotu kontrol ediyoruz.)
 

Blueyescat

Bedrock Kaşifi
En iyi cevaplar
0
Unstealbe gördüm alınmıyormuş :D neyse buton ile yaparız artık.
Şunu söyleyeyim ki benim yazdığım kodun aynısını kullanmak zorunda değilsin.

Chest menüsünden item alınıyor diye biliyorum almayı iptal etmemenin bildiğim tek yolu da şu:
PHP:
format slot 6 of player with 5 of Diamond to run ""
Yada senin istediğin şu olabilir:
PHP:
format slot 6 of player with 5 of Diamond to close then run [give 5 diamond to player]
Yada:
PHP:
format slot 6 of player with 5 of Diamond to close then run [execute console command "give %player% diamond 5"]
 

Thraenkost

Lapis Toplayıcısı
En iyi cevaplar
1
Şunu söyleyeyim ki benim yazdığım kodun aynısını kullanmak zorunda değilsin.

Chest menüsünden item alınıyor diye biliyorum almayı iptal etmemenin bildiğim tek yolu da şu:
PHP:
format slot 6 of player with 5 of Diamond to run ""
Yada senin istediğin şu olabilir:
PHP:
format slot 6 of player with 5 of Diamond to close then run [give 5 diamond to player]
Yada:
PHP:
format slot 6 of player with 5 of Diamond to close then run [execute console command "give %player% diamond 5"]
Teşekkürler.

Mantıken böyle. Çalışır diye düşünüyorum sen denersin :)

WildSkript ve skQuery gerektirir.
PHP:
command /test:
    trigger:
        open chest with 1 rows named "&c&l5. Slota Elmas Kilic Koy" to player

on inventory click:
    if player's inventory name is "&c&l5. Slota Elmas Kilic Koy":
        if slot is 4:
            if slot 4 of player is Diamond Sword:
                format slot 6 of player with 5 of Diamond to be unstealable
(Slotlar 0 dan başladığı için 4. slotu kontrol ediyoruz.)
Tamam çalışıyorda fakat şöyle sorun var elmas çıkmıyor.
 

Thraenkost

Lapis Toplayıcısı
En iyi cevaplar
1
Anlamadım. şu an okulda kurstayim. Gelince konusuruz.

Sanırım menüyü açtıktan hemen sonra slotları ayarlamamış gerekiyormuş. Tıkladıktan sonra menüyü yeniden açtırmak işine yararsa öyle yap :)
Yani tıklayınca menüyü açtır sonrada format kodunu koy.
Nasıl yapıcaz ?
 
S

Switcher

Ziyaretçi
Kod:
on inventory click:
    "%inventory name of current inventory of player%" contains "Deneme"
    cursor item isn't air
    wait 15 ticks
    slot 5 of player's current inventory is diamond sword:
        set slot 5 of player's current inventory to 5 diamond
    stop
command /x:
    trigger:
        open chest with 1 rows named "&cDeneme" to player
 
Üst