Çözüldü kişiye özel sandık

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 bir skript yazdım oyuncu hiçlik isimli kazmayla bir sandığı seçiyor ver artık kırdığı bloklar o sandığa gidiyor ama bazı sorunlar var yardım eder misiniz
seçilen sandık başka oyuncu tarafından kırılmasın ve seçilemesin

Kod:
on rightclick on a chest:
    if player is holding a netherite pickaxe:
        custom model data of player's tool is 6
        player is sneaking
        if {sandıkseçildi.%player%} is false:
            send "&f &7» Hiçlik sandık seçildi." to player
            set {chestloc::%player%} to block
            set {sandıkseçildi.%player%} to true
            create hologram "&dHiçlik Sandığı" with id "%player%" at block above {chestloc::%player%}
            append "%player%" to hologram with id "%player%"
        else if {sandıkseçildi.%player%} is true:
            if {chestloc::%player%} is block:
                delete {chestloc::%player%}
                send "&f &7» Hiçlik sandığı kaldırıldı." to player
                set {sandıkseçildi.%player%} to false
                delete hologram with id "%player%"               
            else if {sandıkseçildi.%player%} is true:
                send "&f &7» Hiçlik sandığı değiştirildi." to player
                set {chestloc::%player%} to event-location
                delete hologram with id "hiçlik"
                create hologram "&dHiçlik Sandığı" with id "%player%" at block above {chestloc::%player%}
                append "%player%" to hologram with id "%player%"

on break of chest:
    if {chestloc::%player%} is block:                             
            delete {chestloc::%event-block%}
            send "&f &7» Hiçlik sandığı kırıldı." to player
            set {sandıkseçildi.%player%} to false
            delete hologram with id "%player%"
on mine:
    if player is holding a netherite pickaxe:
        custom model data of player's tool is 6
        if {sandıkseçildi.%player%} is true:
            if {chestloc::%player%} doesn't have enough space for event-block:
                cancel event
                send "&f &7» Hiçlik sandığı doldu." to player
            else:
                add drops of event-block to {chestloc::%player%}'s inventory
                clear drops
        else:
            cancel event
            send "&f &7» Hiçlik sandığı seçmelisin." to player
 
arkadaşlar bir skript yazdım oyuncu hiçlik isimli kazmayla bir sandığı seçiyor ver artık kırdığı bloklar o sandığa gidiyor ama bazı sorunlar var yardım eder misiniz
seçilen sandık başka oyuncu tarafından kırılmasın ve seçilemesin

Kod:
on rightclick on a chest:
    if player is holding a netherite pickaxe:
        custom model data of player's tool is 6
        player is sneaking
        if {sandıkseçildi.%player%} is false:
            send "&f &7» Hiçlik sandık seçildi." to player
            set {chestloc::%player%} to block
            set {sandıkseçildi.%player%} to true
            create hologram "&dHiçlik Sandığı" with id "%player%" at block above {chestloc::%player%}
            append "%player%" to hologram with id "%player%"
        else if {sandıkseçildi.%player%} is true:
            if {chestloc::%player%} is block:
                delete {chestloc::%player%}
                send "&f &7» Hiçlik sandığı kaldırıldı." to player
                set {sandıkseçildi.%player%} to false
                delete hologram with id "%player%"              
            else if {sandıkseçildi.%player%} is true:
                send "&f &7» Hiçlik sandığı değiştirildi." to player
                set {chestloc::%player%} to event-location
                delete hologram with id "hiçlik"
                create hologram "&dHiçlik Sandığı" with id "%player%" at block above {chestloc::%player%}
                append "%player%" to hologram with id "%player%"

on break of chest:
    if {chestloc::%player%} is block:                            
            delete {chestloc::%event-block%}
            send "&f &7» Hiçlik sandığı kırıldı." to player
            set {sandıkseçildi.%player%} to false
            delete hologram with id "%player%"
on mine:
    if player is holding a netherite pickaxe:
        custom model data of player's tool is 6
        if {sandıkseçildi.%player%} is true:
            if {chestloc::%player%} doesn't have enough space for event-block:
                cancel event
                send "&f &7» Hiçlik sandığı doldu." to player
            else:
                add drops of event-block to {chestloc::%player%}'s inventory
                clear drops
        else:
            cancel event
            send "&f &7» Hiçlik sandığı seçmelisin." to player
kendim sıfırdan yazarak çözdüm ty.
 
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