on mine of diamond ore:
player's tool is diamond pickaxe
chance of 50%:
drop gold ingot
Saol birader hiç bişeyi eksik etmiyorsun.Şu kodu biraz düzenleyerek yüzdelik şans faktörünü ve düşecek şeyi değiştirebilirsin.
Kod:on mine of diamond ore: player's tool is diamond pickaxe chance of 50%: drop gold ingot
on mine of diamond ore:
wait 1 tick
if player's tool is diamond pickaxe:
chance of 90%:
send "Şansınız yaver gitmedi, başaramadınız!" to player
clear dropped items in radius 0.75 around event-location
else:
send "Başarıyla bu madeni kazdınız!" to player
else:
clear dropped items in radius 0.75 around event-location
on mine of diamond ore:
if player's tool is diamond pickaxe:
chance of 90%:
cancel event
send "Şansınız yaver gitmedi, başaramadınız!" to player
set block to air
else:
send "Başarıyla bu madeni kazdınız!" to player
else:
cancel event
set block to air