Advertisement
sadasdasdsadasd

Untitled

Aug 27th, 2023
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. class NitroBlock {
  2. getInfo() {
  3. return {
  4. "id": "NitroBlock",
  5. "name": "NitroBlock",
  6. "blocks": [{
  7. "opcode": "substringy",
  8. "blockType": "reporter",
  9. "text": "letters [num1] through [num2] of [string]",
  10. "arguments": {
  11. "num1": {
  12. "type": "number",
  13. "defaultValue": "2"
  14. },
  15. "num2": {
  16. "type": "number",
  17. "defaultValue": "5"
  18. },
  19. "string": {
  20. "type": "string",
  21. "defaultValue": "hello world"
  22. }
  23. }
  24. },
  25. }],
  26. "menus": { //we will get back to this in a later tutorial
  27. }
  28. };
  29. }
  30. Scratch.extensions.register(new NitroBlock());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement