How to generate code with clicking a block ?


I know the way of generating code with Blockly , but how to generate code with Scratch3.0 ?


the same way :slight_smile:


Thank you !but these commands are a little difficult for me , can you make it clear ?I really want to know it.


hi @ericanst, just try to treat scratch-blocks as blockly-blocks,the only difference between them is the UI.

You need to know how to rebuild scratch-blocks(read their document), and then, treat it as blockly-blocks.