I wrote code like this:
and it works perfectly fine, but if I write this:
it give me an error. I tried capitilising stuff and it fixed some things but it still doesnt work correctly. This only happens on minehut else where it works fine and the only new blocks it does this for are copper or, deepslate, cobbled deepslate and deepslate copper ore. Please tell me a solution to this if you can. Thank you so much!!!
Code:
on mine:
if event-block is deepslate diamond ore:
cancel event
set event-block to bedrock
if player doesn't have enough space for 1 diamond:
drop 1 diamond
else:
give 1 diamond to player
wait 5 seconds
set event-block to deepslate diamond ore
Code:
on mine:
if event-block is Deepslate:
cancel event
set event-block to bedrock
if player doesn't have enough space for 1 deepslate:
drop 1 deepslate
else:
give 1 deepslate to player
wait 5 seconds
set event-block to deepslate