Çözüldü Chest SP HATASI

  • Konuyu Başlatan Konuyu Başlatan LquenS
  • Başlangıç tarihi Başlangıç tarihi
  • Görüntüleme 639
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

LquenS

Bir Kömür Göründü Kaptanım!
Katılım
16 Eylül 2017
Mesajlar
113
Elmaslar
19
Puan
0
Hata;

Kod:
'block at <...>' can only accept a single text, not more (chestsp.sk, line 20: add 5 iron ingot to block at {spawner::*}')

Skript;

Kod:
on place of chest:
    if name of player's tool is "&6&lDemir &2&lChest":
        add location to {spawner::*}
        set {_location} to location of targeted block
        set {spawner::%{_location}%} to {_location}
        create holo object "&6&lDemir &2&lChest;;&2&lSahip &5&l%player%" with id "%location%"  at location 2.5 meters above event-block
        send player title "&6&lDemir &2&lChest" with subtitle "&2&lYerleştirildi" for 3 seconds

on break of chest:
    if {spawner::%location of targeted block%} is set:
        clear {spawner::%location of targeted block%}
        remove location of targeted block from {spawner::*}
        cancel event
        set block to air    
        give 1 chest named "&6&lDemir &2&lChest" to player
        delete holo object "%location%"
        send player title "&6&lDemir &2&lChest" with subtitle "&4&lKaldırıldı" for 3 seconds
       
every 10 seconds:
    add 5 iron ingot to block at {spawner::*}


command /sp-ver:
    permission: chestsp.ver
    trigger:
        give a chest named "&6&lDemir &2&lChest" to player
 
Kod:
every 10 seconds:
    loop {spawner::*}:
        add 5 iron ingot to block at {spawner::*}
 
Kod:
every 10 seconds:
    loop {spawner::*}:
        add 5 iron ingot to block at {spawner::*}
Bu kısmı aşağıdaki şekilde değiştir.

Kod:
every 10 seconds:
    loop {spawner::*}:
        add 5 iron ingot to block of {spawner::*}
 
@EmektaR_03 [21:28:37 ERROR]: 'block of <...>' can only accept a single location, not more (chestsp.sk, line 21: add 5 iron ingot to block of {spawner::*}')
 
Hata;

Kod:
'block at <...>' can only accept a single text, not more (chestsp.sk, line 20: add 5 iron ingot to block at {spawner::*}')

Skript;

Kod:
on place of chest:
    if name of player's tool is "&6&lDemir &2&lChest":
        add location to {spawner::*}
        set {_location} to location of targeted block
        set {spawner::%{_location}%} to {_location}
        create holo object "&6&lDemir &2&lChest;;&2&lSahip &5&l%player%" with id "%location%"  at location 2.5 meters above event-block
        send player title "&6&lDemir &2&lChest" with subtitle "&2&lYerleştirildi" for 3 seconds

on break of chest:
    if {spawner::%location of targeted block%} is set:
        clear {spawner::%location of targeted block%}
        remove location of targeted block from {spawner::*}
        cancel event
        set block to air   
        give 1 chest named "&6&lDemir &2&lChest" to player
        delete holo object "%location%"
        send player title "&6&lDemir &2&lChest" with subtitle "&4&lKaldırıldı" for 3 seconds
      
every 10 seconds:
    add 5 iron ingot to block at {spawner::*}


command /sp-ver:
    permission: chestsp.ver
    trigger:
        give a chest named "&6&lDemir &2&lChest" to player
Hatalı kısmı şöyle değiştirin:

Kod:
every 10 seconds:
    drop 5 iron ingot to block at {spawner::*}
 
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