A 23 KB project that allows you to convert blocks to text and back. It uses some of the latest features in Snap!
# of slots of () block (it's hidden) counts the number of slots in variadic inputs by taking the list version of the block, removing all the inputs for a variadic input one at a time, and counting the difference between the original block and the modified block.
Converts the specified block to a string.
Converts text from the previous block back to block form.
Creates a library of blocks. Use this in the list input of the previous block. You can also store the value in a variable if you plan to generate lots of blocks and want to speed up the process.
You can convert any block to text as long as it's in the library.