options:
p: &eTakas > #Mesaj başlarındaki prefix
cubukismi: &aTakas Çubuğu #Sandıktaki itemleri dönüştürmek için tıklanılacak çubuğun ismi
command /çubuk:
trigger:
give 1 stick named "{@cubukismi}" to player
on leftclick on chest with stick:
if name of player's tool is "{@cubukismi}":
if {chests::%player%::*} contains location of clicked chest:
if clicked chest contains 128 stone:
set 128 to number of all stone in clicked chest
remove 128 of stone from clicked chest's inventory
execute console command "give %player% iron_ingot 1"
send "{@p} &a128 taş satıldı. Kazanılan demir: &c1"
else:
send "{@p} &aSadece kendi sandığındaki madenleri satabilirsin."
on place of chest:
add event-block's location to {chests::%player%::*}
on break of chest:
if {chests::%player%::*} contains event-block's location:
remove event-block's location from {chests::%player%::*}
Bunu denedim ama sadece chatte 'Sadece kendi sandığındaki madenleri satabilirsin' yazıyorMerhabalar, senin sorununu/sorunu kendi sorunumuz bildiğimiz için senin için başka konulardan faydalanıp bir örnek hazırladım.
Faydalandığım Konu Linki Budur
Not; Denemeye vaktim yoktu eğer ki bir sorun alırsanız lütfen benimle paylaşın.
Kod:options: p: &eTakas > #Mesaj başlarındaki prefix cubukismi: &aTakas Çubuğu #Sandıktaki itemleri dönüştürmek için tıklanılacak çubuğun ismi command /çubuk: trigger: give 1 stick named "{@cubukismi}" to player on leftclick on chest with stick: if name of player's tool is "{@cubukismi}": if {chests::%player%::*} contains location of clicked chest: if clicked chest contains 128 stone: set 128 to number of all stone in clicked chest remove 128 of stone from clicked chest's inventory execute console command "give %player% iron_ingot 1" send "{@p} &a128 taş satıldı. Kazanılan demir: &c1" else: send "{@p} &aSadece kendi sandığındaki madenleri satabilirsin." on place of chest: add event-block's location to {chests::%player%::*} on break of chest: if {chests::%player%::*} contains event-block's location: remove event-block's location from {chests::%player%::*}
↝ Discord: discord/69zTXRbDuQ
↝ İnstagram: @celikbilisimtr
↝ Facebook: @celikbilisimtr
↝ Twitter: @celikbilisimtr
↝ Eposta: [email protected]
Skript her hangi bir hata verdi mi?Bunu denedim ama sadece chatte 'Sadece kendi sandığındaki madenleri satabilirsin' yazıyor
Ve sandıgın icindeki ne tasları siliyor nede demiri veriyor
Sandığın önünde/arkasında satış tabelası yada kilit olmamalıBunu denedim ama sadece chatte 'Sadece kendi sandığındaki madenleri satabilirsin' yazıyor
Ve sandıgın icindeki ne tasları siliyor nede demiri veriyor