First post here, wondering if you can help me out. I’m coding an activity where students mine blocks that are stored in an array. Subsequently, when they use a stick, the array is depleted. All that is good.
I want to set a “target” variable to hold the kind of block they must mine, either using the BLOCK block (:D) or the “block by id”.
Problem: Makecode assumes that “On block broken (target)” comes before “on start” and issues an error.
I was able to get a workaround by basically moving the “on block broken” to someplace after the initialization of target, but this has to be done every time the code runs.
Does anyone know of a solution for this? It’s not a major issue, but it is kind of annoying :D.
Thank you all
Anyone know of a