#Change
on sign change:
line 1 of event-block contains "[OTOSAT]":
block 1 behind event-block is chest:
add event-block's location to {otosat::*}
message "&cOto satış eklendi."
else:
message "&cOtosat için tabelayı sandığın önüne koymalısınız."
#Break
on break of sign:
"%{otosat::*}%" contains "%location of event-block%"
remove location of event-block from {otosat::*}
message "&cOtosat iptal edildi." to player
#Every
every 15 seconds:
loop {otosat::*}:
set {_x} to block 1 behind loop-value's location
#Diamond Sword
{_x}'s inventory contains diamond sword:
add number of diamond sword in {_x}'s inventory*50 to player's balance
remove all diamond sword from {_x}'s inventory
message "&cOtomatik satıştan %number of diamond sword in {_x}'s inventory*50%$ kazandınız." to player