Discuss Scratch

RichieNB
Scratcher
71 posts

Scratch 3.0 Extensions FAQ

What are extensions?

Extensions are JavaScript functions that are invoked via Scratch blocks. They can be used to connect to hardware, APIs or to simply provide abstractions for a JavaScript function.

How do I load an extension?

Currently, Scratch 3.0 extensions are not supported on the Scratch website and must be used in modded editors. Try SheepTester's fork for a simple alternative. To share an extension with friends, simply send then a URL of the fork with the extension query parameter added pointed to a URL: https://sheeptester.github.io/scratch-gui?extension=<extension_url>

How do I create a Scratch extension?

A YouTube video is in the works but for now, use this helpful guide by NitroCipher and the TypeScript typings.

How do I share my Scratch extension?

You'll need to upload your Scratch extension to a code hosting website and ensure it can serve JavaScript files correctly.

A GitHub Gist is a simple way to do this. Start at gist.github.com and provided you already have a GitHub account, you'll be able to create a new gist and insert your code with a filename ending in .js. Once you have saved your gist, load the Raw version by clicking the button on the resulting page.

Now, you'll need to set the correct content headers in order for the JavaScript file to be loaded correctly. With GitHack, provide the raw URL of the extension source code and use the resulting production URL to load your extension.

Where can I find extensions created by others?

You can use the Scratch 3.0 Extension Directory to find an aggregated list of extensions but the Developing Scratch Extensions subforum is also great place to find the latest in Scratch extensions.

Last edited by RichieNB (Jan. 28, 2021 00:46:54)

MikeDEV
Scratcher
1000+ posts

Scratch 3.0 Extensions FAQ

free bump
hope it gets stickied
Ihatr
Scratcher
1000+ posts

Scratch 3.0 Extensions FAQ

s t i c k y i t
MikeDEV
Scratcher
1000+ posts

Scratch 3.0 Extensions FAQ

Much, much-belated bump. This is still a useful topic, but it's not active enough. I hope this bump gets things going.
scienceexplorer1
Scratcher
100+ posts

Scratch 3.0 Extensions FAQ

bump
RichieNB
Scratcher
71 posts

Scratch 3.0 Extensions FAQ

Bump
Barthdry
Scratcher
500+ posts

Scratch 3.0 Extensions FAQ

Bump
k1412483
Scratcher
100+ posts

Scratch 3.0 Extensions FAQ

bump
KangaCoder
Scratcher
1000+ posts

Scratch 3.0 Extensions FAQ

Isn't there already a sticky like this? https://scratch.mit.edu/discuss/topic/198257/
han614698
Scratcher
1000+ posts

Scratch 3.0 Extensions FAQ

Hey there! While it is nice you are trying to help, the Scratch Team is not looking for guides at this time. Feel free to make this in a project instead!
MikeDEV
Scratcher
1000+ posts

Scratch 3.0 Extensions FAQ

wangat wrote:

Isn't there already a sticky like this? https://scratch.mit.edu/discuss/topic/198257/

That was for 2.0/ScratchX, which is now obsolete and insecure since they use Flash, which was discontinued a while ago. This thread is a continuation of that thread but updated with modern technologies, as in Scratch 3.

han614698 wrote:

Hey there! While it is nice you are trying to help, the Scratch Team is not looking for guides at this time. Feel free to make this in a project instead!

See aforementioned.

This is just updating the old thread with new content/links, the last time the 2.0 thread was updated was back in 2016, as the update info says “Last edited by savaka (Nov. 7, 2016 07:03:33)”.
theycallhermax
Scratcher
100+ posts

Scratch 3.0 Extensions FAQ

RichieNB wrote:

What are extensions?

Extensions are JavaScript functions that are invoked via Scratch blocks. They can be used to connect to hardware, APIs or to simply provide abstractions for a JavaScript function.

How do I load an extension?

Currently, Scratch 3.0 extensions are not supported on the Scratch website and must be used in modded editors. Try SheepTester's fork for a simple alternative. To share an extension with friends, simply send then a URL of the fork with the extension query parameter added pointed to a URL: https://sheeptester.github.io/scratch-gui?extension=<extension_url>

How do I create a Scratch extension?

A YouTube video is in the works but for now, use this helpful guide by NitroCipher and the TypeScript typings.

How do I share my Scratch extension?

You'll need to upload your Scratch extension to a code hosting website and ensure it can serve JavaScript files correctly.

A GitHub Gist is a simple way to do this. Start at gist.github.com and provided you already have a GitHub account, you'll be able to create a new gist and insert your code with a filename ending in .js. Once you have saved your gist, load the Raw version by clicking the button on the resulting page.

Now, you'll need to set the correct content headers in order for the JavaScript file to be loaded correctly. With GitHack, provide the raw URL of the extension source code and use the resulting production URL to load your extension.

Where can I find extensions created by others?

You can use the Scratch 3.0 Extension Directory to find an aggregated list of extensions but the Developing Scratch Extensions subforum is also great place to find the latest in Scratch extensions.
Or GitHub Pages
ericplays2021
Scratcher
58 posts

Scratch 3.0 Extensions FAQ

when green flag clicked
repeat (Forever)
<key [Coding... v] pressed?>
(☁ Creating a remake of scratch 2)
end
if <Done making a remake of scratch 2> then
stop [wanting to revisit scratch 2.0 online and visiting it v]
define Notify everyone
end

Last edited by ericplays2021 (Jan. 8, 2022 18:20:44)

1Centimillinillion
Scratcher
4 posts

Scratch 3.0 Extensions FAQ

(()^(0))
operators
HakunaJin
New Scratcher
7 posts

Scratch 3.0 Extensions FAQ

hello. Currently, I want to drive my arduino hardware by linking it to scratch.
Currently in progress using the scratch-gui and scratch-vm files.
I want to connect it to a pc using an arduino cable.
How to communicate data?
Sorry…. My English Not Gooooooooooood…….
Arielo2
Scratcher
76 posts

Scratch 3.0 Extensions FAQ

is turbowarp?
Arielo2
Scratcher
76 posts

Scratch 3.0 Extensions FAQ

that is a turbowarp block but not compitable with scratch
Arielo2
Scratcher
76 posts

Scratch 3.0 Extensions FAQ

is there a way to have extentions like sensing plus and clone plus and looks plus
ask [sensing +] and wait                     
when I start as a clone
Arielo2
Scratcher
76 posts

Scratch 3.0 Extensions FAQ

like i wish there were set x position of to ( ) and set y position of to ( )
define set x postion of  [sprite ] to [x] set y position of [sprite] to (y)
Arielo2
Scratcher
76 posts

Scratch 3.0 Extensions FAQ

when [variable v] > (10)







<this sprite is clicked ?>

Powered by DjangoBB