Çözüldü Özel Kazma (Bundan Önce Açtığım Konunun Devamı)

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

lolib

Zombi Geldi, Beni Yedi
Katılım
9 Mart 2018
Mesajlar
250
Elmaslar
31
Puan
13.670
Yaş
25
Konum
Dünya
Minecraft
BiloliB

Discord:

BiloliB

Arkadaşlar bundan önce açtığım Özel Kazma konusunda bir skript istemiştim bir arkadaş yardımıcı olmuştu ama skript bir arza çıkarttı.

Skriptin Sorunu: Kazma ile demir cevherini kazdığımda kazma kırılmaz bir hal alıyor yanı kazmanın sağlığı azalmıyor ama taş veya kazam ile kazılacak olan blokları kazdığımda kazmanın sağlığı gidiyor ve bu sefer kazmayla demir cevheri kazdığımda demir değil demir cevheri veriyor. Önceki Konu.

Umarım yazdığımı anlamışsınızdır!
 
Kod:
command /ozelkazmaver [<player>]:
    trigger:
        arg 1 is set
        give 1 diamond pickaxe named "&bÖzel &cKazma" to arg 1

on break:
    if player's tool is diamond pickaxe named "&bÖzel &cKazma":
        if event-block is iron ore:
            cancel event
            set event-block to air
            give 1 iron ingot to player
            add 1 to durability of player's tool
        if event-block is gold ore:
            cancel event
            set event-block to air
            give 1 gold ingot to player
            add 1 to durability of player's tool

Dener misin ?
 
Son düzenleme:
Kod:
break:
    if name of player's tool is "&6Özel Kazma":
        if event-block is iron ore:
            cancel event
            set event-block to air
            add 1 to durability of player's tool
            drop a iron ingot at event-block
        if event-block is gold ore:
            cancel event
            set event-block to air
            add 1 to durability of player's tool
            drop a gold ingot at event-block
 
Kod:
command /ozelkazmaver [<player>]:
    trigger:
        arg 1 is set
        give 1 diamond pickaxe named "&bÖzel &cKazma" to arg 1

on break:
    if player's tool is diamond pickaxe named "&bÖzel &cKazma":
        if event-block is iron ore:
            cancel event
            set event-block to air
            give 1 iron ingot to player
            remove 1 from tool's durability
        if event-block is gold ore:
            cancel event
            set event-block to air
            give 1 gold ingot to player
            remove 1 from tool's durability

Dener misin ?
remove 1 yaparsan durability i arttırırsın.
 
Kod:
command /ozelkazmaver [<player>]:
    trigger:
        arg 1 is set
        give 1 diamond pickaxe named "&bÖzel &cKazma" to arg 1

on break:
    if player's tool is diamond pickaxe named "&bÖzel &cKazma":
        if event-block is iron ore:
            cancel event
            set event-block to air
            give 1 iron ingot to player
            remove 1 from tool's durability
        if event-block is gold ore:
            cancel event
            set event-block to air
            give 1 gold ingot to player
            remove 1 from tool's durability

Dener misin ?
remove -1 from tool's durability - yaptım azalıyor ama 1 kere demir verdi mi bir dahakine demir cevheri veriyor
 
Kod:
command /kazma [<player>]:
    trigger:
        if arg-1 is set:
            give 1 diamond pickaxe named "&bÖzel &cKazma" to arg 1

on break:
    if player's tool is diamond pickaxe named "&bÖzel &cKazma":
        if event-block is iron ore:
            cancel the item drops
            drop 1 iron ingot
        if event-block is gold ore:
            cancel the item drops
            drop 1 gold ingot

Sorununuz çözülmüştür diye düşünüyorum eğer droplanmasını değil de direk envantere verilmesini istiyorsan:

Kod:
command /kazma [<player>]:
    trigger:
        if arg-1 is set:
            give 1 diamond pickaxe named "&bÖzel &cKazma" to arg 1

on break:
    if player's tool is diamond pickaxe named "&bÖzel &cKazma":
        if event-block is iron ore:
            cancel the item drops
            give 1 iron ingot to player
        if event-block is gold ore:
            cancel the item drops
            give 1 gold ingot to player
 
Kod:
command /kazma [<player>]:
    trigger:
        if arg-1 is set:
            give 1 diamond pickaxe named "&bÖzel &cKazma" to arg 1

on break:
    if player's tool is diamond pickaxe named "&bÖzel &cKazma":
        if event-block is iron ore:
            cancel the item drops
            drop 1 iron ingot
        if event-block is gold ore:
            cancel the item drops
            drop 1 gold ingot

Sorununuz çözülmüştür diye düşünüyorum eğer droplanmasını değil de direk envantere verilmesini istiyorsan:

Kod:
command /kazma [<player>]:
    trigger:
        if arg-1 is set:
            give 1 diamond pickaxe named "&bÖzel &cKazma" to arg 1

on break:
    if player's tool is diamond pickaxe named "&bÖzel &cKazma":
        if event-block is iron ore:
            cancel the item drops
            give 1 iron ingot to player
        if event-block is gold ore:
            cancel the item drops
            give 1 gold ingot to player
Aynı skript aga kazma ile demir cevheri kazdığımda kazmanın sağlığı gitmiyor ama taş filan kazdığımda sağlığı gidiyor sağlığı gittikten sonra demir cevheri kazdığımda bu sefer demir değil demir cevheri veriyor sağlığı gitmeden önce demir veriyordu.
 
Konu kilit , zor geldi.
 
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