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%::*}