Skip to content

Instantly share code, notes, and snippets.

@bob1171
Created September 25, 2017 16:31
Show Gist options
  • Save bob1171/61fe098c23cdf27ff02b2c815c91c84c to your computer and use it in GitHub Desktop.
Save bob1171/61fe098c23cdf27ff02b2c815c91c84c to your computer and use it in GitHub Desktop.
new (function() {
var ext = this;
var descriptor = {
blocks: [
['b','installed','installed'],
],
url : '' // This is the URL for when someone clicks "learn more"
};
ext._shutdown = function() {
};
ext._getStatus = function() {
return {status:2, msg:'Ready'}; // Returning status defines the colour of the light beside the blocks.
};
ext.installed = function(){return true}
ScratchExtensions.register('bob', descriptor, ext); // Name of the extension.
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment