command /otosat:
trigger:
if {otosat::%player%} is not set:
set {otosat::%player%} to true
send "&b&lCold &8» &aOtomatik Satış aktif edildi" to player
else:
delete {otosat::%player%}
send "&b&lCold &8» &4(&c!&4)&cOtomatik Satış kapatıldı" to player
function otoSat(p: player, item: itemtype, chat: text, para: integer):
if {_p}'s inventory has 64 of {_item}:
remove 64 of {_item} from {_p}
add {_para} to {_p}'s money
set action bar of {_p} to "&9&l» &fEnvanterinizdeki %{_chat}% &a%{_para}% &ffiyatına satıldı!"
on pick up:
if {otosat::%player%} is true:
if event-item is cactus:
otoSat(player, cactus, "kaktüsler", 38400)
if event-item is prismarine:
otoSat(player, prismarine, "prizmarinler", 38400)
if event-item is dark prismarine:
otoSat(player, dark prismarine, "koyu prizmarinler", 38400)
if event-item is endstone:
otoSat(player, endstone, "end taşları", 38400)
if event-item is sponge:
otoSat(player, sponge, "süngerler", 38400)
if event-item is iron ingot:
otoSat(player, iron ingot, "demirler", 38400)
if event-item is iron block:
otoSat(player, iron block, "demir bloklar", 38400)
if event-item is gold ingot:
otoSat(player, gold ingot, "altınlar", 38400)
if event-item is gold block:
otoSat(player, gold block, "altın bloklar", 38400)
if event-item is diamond:
otoSat(player, diamond, "elmaslar", 38400)
if event-item is diamond block:
otoSat(player, diamond block, "elmas bloklar", 38400)
if event-item is emerald:
otoSat(player, emerald, "zümrütler", 38400)
if event-item is emerald block:
otoSat(player, emerald block, "zümrüt bloklar", 38400)