Hey, so I have a custom block which is start_block, and I want to make this blocks a parent block which is when my other blocks are not connected to this block, the code cannot be executed, just like the Minecraft Aquatic Voyage in
code.org. And I already make it like mentioned in this conversation:
https://developers.google.com/blockly/guides/create-custom-blocks/block-paradigms#configuration
The code works fine where my other block will be disabled if it is not connected to this start_block, but since my start block is a custom block, and I still don't have the function written in my code for this block, my other block whose connected to this block cannot run. do you have any suggestion on what code I can put for the start_block function?
what code can I put here:
Blockly.JavaScript['start_block'] = function (block) {
var code = '...;\n';
return code;
}
Btw, I'm making a game like blockly maze, and I noticed blockly maze doesn't have start block but the
code.org, vex code and scratch have this block, so it is hard for me to refer