Çözüldü yerdeki özel bir bloğa sağ tıklandığında mesaj gönerme

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

BarisBingol2

Bir Kömür Göründü Kaptanım!
Katılım
22 Mart 2018
Mesajlar
106
Elmaslar
10
Puan
6.420

Discord:

@Deagle#8994

mesela her yerde taş olacak ama bizim sectiğimiz bir tanesine tıkladığımız zaman oyuncuya mesaj gönderecek
 
on rightclick on stone:
display name of event-block is "&6İsim":
send "helal be"

Mobildeyim tabları ayarlarsınız
 
on rightclick on stone:
display name of event-block is "&6İsim":
send "helal be"

Mobildeyim tabları ayarlarsınız
Lütfen düzgün okuyun, her yerde taş olacak ama bizim seçtiğimiz taşa tıklayınca mesaj gönderecek demiş ^^
 
Kod:
command /taşayarla:
    trigger:
        if player has permission "taş.admin":
            if targeted block is stone:
                if {ozeltas::%location of targeted block%} is not set:
                    set {_loc} to location of targeted block
                    set {ozeltas::%{_loc}%} to {_loc}
                    send "{@Prefix} Artık önünüzdeki taş özel taştır!."
                    stop
                else if {ozeltas::%location of targeted block%} is set:
                    clear {ozeltas::%location of targeted block%}
                    send "{@Prefix} Artık önünüzdeki taş özel taş değildir."
            else:
                send "{@Prefix} Bunu kullanabilmek için bir taşa bakman gerek!"
        else:
            send "{@Prefix} Bunun için iznin yok"
           
on click stone:
    if {ozeltas::%location of event-block%} is set:
        send "özel taşa tıkladınız" to player
 
Kod:
command /tasayarla:
    trigger:
        if player has permission "tas.ayarla":
            if targeted block is stone:
                if {tas::%location of targeted block%} isn't set:
                    set {_tas} to location of targeted block
                    set {tas::%{_tas}%} to {_tas}
                    send "&eBaktığın taş ayarlandı!"
                else if {tas::%location of targeted block%} is set:
                    send "&eeBaktığın taş zaten ayarlı."
            else:
                send "&eBir taşa bakman gerek!"
        else:
            send "&etas.ayarla yetkisine sahip değilsin!"


on right click:
    if targeted block is stone:
        if {tas::%location of targeted block%} is set:
            send "&aSeçilmiş taşa tıkladın!"


Galiba geç kaldım :D
 
Kod:
command /tasayarla:
    trigger:
        if player has permission "tas.ayarla":
            if targeted block is stone:
                if {tas::%location of targeted block%} isn't set:
                    set {_tas} to location of targeted block
                    set {tas::%{_tas}%} to {_tas}
                    send "&eBaktığın taş ayarlandı!"
                else if {tas::%location of targeted block%} is set:
                    send "&eeBaktığın taş zaten ayarlı."
            else:
                send "&eBir taşa bakman gerek!"
        else:
            send "&etas.ayarla yetkisine sahip değilsin!"


on right click:
    if targeted block is stone:
        if {tas::%location of targeted block%} is set:
            send "&aSeçilmiş taşa tıkladın!"


Galiba geç kaldım :D


Yazdığınız kodun bu kadar benzer olması biraz dikkat çekici
 
Kod:
command /tasayarla:
    trigger:
        if player has permission "tas.ayarla":
            if targeted block is stone:
                if {tas::%location of targeted block%} isn't set:
                    set {_tas} to location of targeted block
                    set {tas::%{_tas}%} to {_tas}
                    send "&eBaktığın taş ayarlandı!"
                else if {tas::%location of targeted block%} is set:
                    send "&eeBaktığın taş zaten ayarlı."
            else:
                send "&eBir taşa bakman gerek!"
        else:
            send "&etas.ayarla yetkisine sahip değilsin!"


on right click:
    if targeted block is stone:
        if {tas::%location of targeted block%} is set:
            send "&aSeçilmiş taşa tıkladın!"


Galiba geç kaldım :D
Aynısı ? aa pardon {ozeltaş} variablelerini {taş} yapmışsınız pardon.
 
Aynısı ? aa pardon {ozeltaş} variablelerini {taş} yapmışsınız pardon.
Yemin ederim sizden kopyalamadım, dikkatli bakarsanız çok fark var. Skripti yazdıktan sonra foruma bakayım dedim birisi atmış dedim belki çalışmaz benimkinide atayım.
 
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