Discuss Scratch

WaffleCODEZ
Scratcher
68 posts

I need help with my extension!

Is it possible that anyone could make a Scratch to JS-Extension converter so I can use one of my custom blocks as an extension block?

My code is:

(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: 'Ready'};
    };
	
	ext.wafflesvar = function() {
        return {status: 2, msg: 'are good'};
    };
	  ext.go_to_link = function(website) {
        window.location.href = website;
	  };
	  
	  
	  
    // Block and block menu descriptions
    var descriptor = {
        blocks: [
		// Block type, block name, function name
		 ['h', 'when waffles are not good', 'when_waffles'],
		 [' ', 'Go to site %s', 'go_to_link', 'https://scratch.mit.edu'],
		 ['r', 'waffles', 'wafflesvar'],
		 ['', 'clone list %m.list onto %s', 'dupe_list'],
		 
		
		
        ]
    };
    // Register the extension
    ScratchExtensions.register('WaffleScratch', descriptor, ext);
})({});
and I want
 ['', 'clone list %m.list onto %s', 'dupe_list'], 
to run a custom block.
Please help!
Also, my block I want to use for the extension is located here, and is the
“Duplicate (dropdown list) as (string)”
block.

Last edited by WaffleCODEZ (May 26, 2018 18:06:15)


      U^ェ^U  ~ I'm Blocky, waffle's signature assistant! I protect his signature!  :: #1a1a1a cap

Donate an Internet!
My Best Game! :)

















__________
| | | | | | | | <——- A Waffle (me)
| | | 0 | 0 | |
| | | |O | | |
|_|_|_|_|_|_|_|
WaffleCODEZ
Scratcher
68 posts

I need help with my extension!

Bump.

      U^ェ^U  ~ I'm Blocky, waffle's signature assistant! I protect his signature!  :: #1a1a1a cap

Donate an Internet!
My Best Game! :)

















__________
| | | | | | | | <——- A Waffle (me)
| | | 0 | 0 | |
| | | |O | | |
|_|_|_|_|_|_|_|

Powered by DjangoBB