Block Codification
Did you want to store scripts in a DB or external website? This category is for you! The Block Codification category gives you 8 blocks to convert and manage blocks data. Just go to the project and export the blocks! A tutorial is included here and in the project. Don't forget to give your opinion!
Tutorial
Click to see Tutorial
() as string
This is the block to convert the blocks into text. Reports a JSON format text. Here are examples of how to use it:
() as blocks
This is the counterpart of the previous block. Reports the blocks from the string. Here are examples of how to use it:
() blocks data
Reports a list with all the data of the blocks. The data format is CSV. Can be used to track both default, custom and extension blocks!
is () recorded?
Checks if the given blocks have been mapped. It is very useful if you don't want to map a block again or to get errors.
map () blocks data
Maps the given type of blocks data automatically. Always remember to check the version the block was made to get the newest blocks.
map () with data ()
Maps the given block manually, and additional data is required:
Key | Definition | Default value |
---|---|---|
string |
The block converted to string. In some cases the string gets cut by default, so you have to set it manually | |
type |
The type of the block (default, extension or custom). Extension blocks are considered as default blocks by default. | |
category |
The category of the block. Custom categories are accepted. | Other |
With this, custom blocks are fully supported and can be mapped. Just remember that the project you are sending the information has to have the same data to be converted successfully.
clear () blocks data
Clears the given type of blocks data. Can be used to reset all the data of both default, custom or extension blocks.
delete () block data
Deletes the given block data manually. Use it when a block is no longer required for your conversions!
FAQ
Click to see FAQ
When should I use it?
Use it when you cannot store commands/reporters/predicates, for example in a browser database. Can be used to send them to an external website as well.
Why should I choose this?
Because it doesn't use Codification Support blocks. And you can manage the blocks data easily with the given blocks. Also, it uses a technology that you had never seen before.
How can I use this?
Just go to the official project made by @ScratchModification. You can edit it to make your project, or export the blocks and import it to your projects! The actual version is v1.0.1
.
(C) 2022 ScratchModification