forked from Hardmath123/hardmath123.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathext.js
More file actions
25 lines (21 loc) · 702 Bytes
/
ext.js
File metadata and controls
25 lines (21 loc) · 702 Bytes
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
(function(ext) {
// Cleanup function when the extension is unloaded
ext._shutdown = function() {};
// Status reporting code
// Use this to report missing hardware, plugin or unsupported browser
ext._getStatus = function() {
return {status: 2, msg: 'Should be working!'};
};
//=====My blocks=====
ext.when_true_hat = function(boolean) {
while (!boolean) {};
return true;
// Block and block menu descriptions
var descriptor = {
blocks: [
['h', 'when %b', 'when_true_hat']
]
};
// Register the extension
ScratchExtensions.register("wizzwizz4's Extra Blocks for Scratch!", descriptor, ext);
})({});