OptionaladvancedOptionalblockThe Blockly block id used to identify this block.
OptionalblockThe block definition in XML for the blockly toolbox.
OptionalgroupGroup label used to categorize block. Blocks are arranged with other blocks that share the same group.
OptionaljsDescription of code to appear in the hover text
Internal id used to refer to this block or snippet, must be unique
OptionalpyPython snippet of code to insert when dragged into editor
OptionalpyPython name used for highlighting the snippet, uses name if not defined
OptionalretThe return type of the block. This is used to determine the shape of the block rendered.
OptionalsnippetTypeScript snippet of code to insert when dragged into editor
OptionalsnippetTypeScript name used for highlighting the snippet, uses name if not defined
OptionalsnippetDisplay just the snippet and nothing else. Should be set to true for language constructs (eg. for-loops) and to false for function calls (eg. Math.random())
OptionalweightThe weight for the block. Blocks are arranged in order of they appear in the category definition's array but the weight can be specified in the case that other APIs are dynamically added to the category (eg. loops.forever())
Indicates an advanced API. Advanced APIs appear after basic ones in the toolbox