How do i convert a blockspec to a block

How do i convert a blockspec to a block?
like
"Context >> a CommandBlockMorph ("say %s...") a VariableFrame {}"
gives like this:
image

or something like
image
idk

I don't think you can.

I suppose you could make a dictionary with all the blockspecs and respective blocks, like you can with any sort of convert a to b project, but that would require a lot of effort and is probably not worth it.

There isn't really an easy way to do it with JavaScript, either, since the blockspec string you're talking about omits a lot of required details like category and selector. I supposed you could have the options on the block (assuming the convert blockspec program would be a custom block) to choose those things, but that would require a lot of work as well (and creating and editing block morphs is frustrating to deal with).

what will be the use?

idk, im wondering if this is possible

image
why it doesnt work

thats a text string not a block
it only works with blocks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.