Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class NitroBlock {
- getInfo() {
- return {
- "id": "NitroBlock",
- "name": "NitroBlock",
- "blocks": [{
- "opcode": "substringy",
- "blockType": "reporter",
- "text": "letters [num1] through [num2] of [string]",
- "arguments": {
- "num1": {
- "type": "number",
- "defaultValue": "2"
- },
- "num2": {
- "type": "number",
- "defaultValue": "5"
- },
- "string": {
- "type": "string",
- "defaultValue": "hello world"
- }
- }
- },
- }],
- "menus": { //we will get back to this in a later tutorial
- }
- };
- }
- Scratch.extensions.register(new NitroBlock());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement