Hello, I wrote a script, but it doesn't work when you type lapis ore or redstone from config, and when some blocks are broken, don't you help those processes?
What code can I write for all blocks in the game to work
What code can I write for all blocks in the game to work
Code:
on break of any ore:
if {kredi::blok-tur} is "%event-block%": # I'll pull this part out of config
if {kredi::blok-modu} is "Açık" or "Aktif":
if {blok.%player%} is greater than {kredi::blok-max}-1:
add {kredi::blok-kredi-miktar} to {kredi.%player%}
remove {kredi::blok-max} from {blok.%player%}
set {_bloktebrik} to {kredi::blok-tebrik-mesaj}
replace all "{BLOK-MAX}" with "%{kredi::blok-max}%" in {_bloktebrik}
replace all "{BLOK-KREDI}" with "%{kredi::blok-kredi-miktar}%" in {_bloktebrik}
replace all "{BLOK-KIRILAN}" with "%{blok.%player%}%" in {_bloktebrik}
replace all "{KREDI}" with "%{kredi.%player%}%" in {_bloktebrik}
message "%{kredi::prefix}%%{_bloktebrik}%"
else:
add 1 to {blok.%player%}
set {_blokkazılıyor} to {kredi::blok-kazılma-mesaj}
replace all "{BLOK-MAX}" with "%{kredi::blok-max}%" in {_blokkazılıyor}
replace all "{BLOK-KREDI}" with "%{kredi::blok-kredi-miktar}%" in {_blokkazılıyor}
replace all "{BLOK-KIRILAN}" with "%{blok.%player%}%" in {_blokkazılıyor}
replace all "{KREDI}" with "%{kredi.%player%}%" in {_blokkazılıyor}
set action bar of player to "%{_blokkazılıyor}%"
if {kredi::blok-modu} is "Kapalı" or "Kapat":
stop