-
Notifications
You must be signed in to change notification settings - Fork 0
/
morejs.js
32 lines (31 loc) · 874 Bytes
/
morejs.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
class MoreJS {
getInfo() {
return {
"id": "MoreJS",
"name": "MoreJS",
"blocks": [
{
"opcode":"testblock",
"blockType": "reporter",
"text": "TestBlock [num1] ^ [num2]",
"arguments": {
"num1": {
"type":"number",
"defaultValue":"2"
},
"num2": {
"type":"number",
"defaultValue":"8"
}
}
}
],
"menus": {
}
}
}
testblock(num1,num2) {
return num1**num2
}
}
Scratch.extensions.register(new MoreJS())