Discuss Scratch

_nix
Scratcher
1000+ posts

Creating extensions for Scratch 3.0

NitroCipher wrote:

It would be a pain in the butt, but it might be possible for us to write a ScratchX to Ex3.0 conversion script.
This is a pretty old post, but I think this would definitely be possible, and probably not too hard…

art blog – My pronouns are they/them, btw. sparrows one word to the paragraph
s2online: Run Scratch 2.0 in your browser; edit and back up any 1.4 or 2.0 project.
NathanTGMPlays
Scratcher
7 posts

Creating extensions for Scratch 3.0

If Arduino could be supported in later versions of Scratch that would be great
define arduino main operating system
(Pin 13)
netmille2000
New to Scratch
8 posts

Creating extensions for Scratch 3.0

I am a software developer very interested in creating STEM based extensions for Scratch 3.0. I have already begun developing extensions for upcoming Scratch 3.0 and have some questions.

Questions
———–

1. Currently, I am installing my extensions as ‘built in’ extensions akin to other extensions
that are distributed with ‘scratch-gui’ project. Is this still the ‘only way’ to test custom built extensions?

2. Has an official date been determined for when Scratch Team will publish ‘final’ specifications/guidelines for “unofficial” extensions?
I understand that these extensions can only be used within the ‘offline’ version of Scratch 3.0.

3. Has an official date been determined for when Scratch Team will accept ‘extension’ to be included with ‘official’ extensions?


Please advise.
_cosei
New to Scratch
4 posts

Creating extensions for Scratch 3.0

Now I need help.
I want to implement my extension blocks and menus to be multi lingual.
So, I read Scratch-3.0-Extensions-Specification and implemented “translation_map” option. But it didn't work. For example, It always displays the default extension name “Mincramming Junior” whatever locale is.
My source is like below…
What is wrong with it?

getInfo () {
return {
id: Scratch3Micramming1Blocks.EXTENSION_ID,
name: formatMessage({
id: ‘extensionName’,
default: ‘Mincramming Junior’,
description: ‘Extension name’
}),
blocks: [
{
opcode: ‘Chat’,
text: formatMessage({
id: ‘Micramming1.ChatBlock’,
default: 'チャットする「 」',
description: ‘マインクラフトにメッセージを送ります。’
}),
blockType: BlockType.COMMAND,
arguments: {
MSG: {
type: ArgumentType.STRING,
defaultValue: formatMessage({
id: ‘Micramming1.DefaultChat’,
default: ‘こんにちは!’,
description: ‘hello: the default’
}),
description: ‘hello: the default’
}
}
},
~~~~~~~~~~~~~
~~~~~~~~~~~~~
translation_map: {
‘ja’: {
‘extensionName’: ‘マイクラミング 低学年’,
‘Chat’: 'チャットする「 」',
‘Chat.MSG_default’: ‘こんにちは!’
},
‘ja-Hira’: {
‘extensionName’: ‘マイクラミング ジュニア’,
‘Chat’: 'チャットする「 」',
‘Chat.MSG_default’: ‘こんにちは!’
},
‘en’: {
‘extensionName’: ‘Micramming Junior’,
‘Chat’: 'Send to chat ',
‘Chat.MSG_default’: ‘Hello!’
}
}

I am developing an extension with scratch-vm. And I have succeeded to make some original blocks to manipulate a Minecraft's world through Rapsberry-Pi mod.
thiyagesh
Scratcher
3 posts

Creating extensions for Scratch 3.0

If you do not have the blue tooth connection to micro: bit, how can you connect with Scratch 3. 0.
_cosei
New to Scratch
4 posts

Creating extensions for Scratch 3.0

The extension for Scrathc3.0 to program a Minecraft world, that I have almost finished build.
You can play it from below URL.

https://manaviva.github.io/scratch-gui/


Caution!!
(1) You can use blocks without “| helper” label at their tail.
These are only for memberships.
(2) This requires “raspberryjammod” based on Forge extension.
Please see below and install them before trying above extension.

https://github.com/arpruss/raspberryjammod

I hope you enjoy it.



スクラッチ3.0 でも、マインクラフトの世界をプログラミングできるようにしました。
公開したのでお試しください。

https://manaviva.github.io/scratch-gui/


注意事項!
(1) ブロックの末尾に「ヘルパー」の表示がある物は使えません。
 会員専用で、別途、ヘルパーをインストールする必要があります。

(2) 事前にラズパイmodをインストールしておく必要があります。
 もちろんmodにはForgeのインストールも必要です。詳細は以下をご覧ください。

https://github.com/arpruss/raspberryjammod

お楽しみいただければ。

Last edited by _cosei (Oct. 30, 2018 05:57:05)

uwedamm
New to Scratch
1 post

Creating extensions for Scratch 3.0

OnMax wrote:

LegoRobin6 wrote:

I want lego boost!

There's already one but it was temporarily removed as a Speech extension

Hello OnMax,
could you explain a bit for a Newbee?
I found the extensions in:
https://github.com/LLK/scratch-vm/tree/develop/src/extensions/
and there was no legoboost like file inside (like you said), but unluckily I was not able to find “Speech extension”
thanx
Uwe

PS:
My goal is the following project (If there is someone with similar setup, I would be really happy to perform some review, etc.)
- RPI 3 with BLE
- Arduino nano with IR diode (I will try to create myown extension, using RS232 as interface to the Arduino
- Lego Boost with 3 motors, color/distance sensor Tilt sensors, LED controlled by BLE
- Lego train with IR (red/blue,1..4 channels)
OnMax
Scratcher
46 posts

Creating extensions for Scratch 3.0

uwedamm wrote:

OnMax wrote:

LegoRobin6 wrote:

I want lego boost!

There's already one but it was temporarily removed as a Speech extension

Hello OnMax,
could you explain a bit for a Newbee?
I found the extensions in:
https://github.com/LLK/scratch-vm/tree/develop/src/extensions/
and there was no legoboost like file inside (like you said), but unluckily I was not able to find “Speech extension”
thanx
Uwe

PS:
My goal is the following project (If there is someone with similar setup, I would be really happy to perform some review, etc.)
- RPI 3 with BLE
- Arduino nano with IR diode (I will try to create myown extension, using RS232 as interface to the Arduino
- Lego Boost with 3 motors, color/distance sensor Tilt sensors, LED controlled by BLE
- Lego train with IR (red/blue,1..4 channels)

Hi! @thisandagain said that they are testing Scratch 3.0 in schools, but then they're gonna put lego boost back. They are already there, coz I've responded very late.

wait [WHAT?! 3.0 is here!!!]::control
glowcouch
Scratcher
15 posts

Creating extensions for Scratch 3.0

How do you make extensions?
I would make blocks like these but gray.
comment:[]
comment:[]{
}

Last edited by glowcouch (Jan. 2, 2019 23:18:46)

Sheep_maker
Scratcher
1000+ posts

Creating extensions for Scratch 3.0

glowcouch wrote:

how do you make extensions?
I would make blocks like these but gray.
comment:[]
comment:[]{
}
Very simple!
  1. Know JavaScript
  2. Read this
  3. See these
  4. Get scratch-vm
  5. Add your extension the extensions folder I linked to in #3
It's that easy!

- Sheep_maker This is a kumquat-free signature. :P
This is my signature; it appears below all my posts. Make your own at https://scratch.mit.edu/discuss/settings/YOUR USERNAME/.
Screen recording has been added to Scratch 2.0!
.postsignature { overflow: auto; } .scratchblocks { overflow-x: auto; overflow-y: hidden; }
glowcouch
Scratcher
15 posts

Creating extensions for Scratch 3.0

Sheep_maker wrote:

glowcouch wrote:

how do you make extensions?
I would make blocks like these but gray.
comment:[]
comment:[]{
}
Very simple!
  1. Know JavaScript
  2. Read this
  3. See these
  4. Get scratch-vm
  5. Add your extension the extensions folder I linked to in #3
It's that easy!
Thanks that was fast.

Last edited by glowcouch (Jan. 2, 2019 23:19:21)

ScratchFoxBot
Scratcher
3 posts

Creating extensions for Scratch 3.0

Sheep_maker wrote:

Very simple!
  1. Know JavaScript
  2. Read this
  3. See these
  4. Get scratch-vm
  5. Add your extension the extensions folder I linked to in #3
It's that easy!


“Easy”

I know a lot a Javascript and have done “full-stack engineering” but this Scratch 3.0 extension stuff is still way above my head.
I'm trying to make a Speech-To-Text extension (since the ST never finished theirs) and the actual JS is very easy to code, but working it into a S3.0 extension is being a pain.

Is there no easier way to run/test/compile extensions than setting up some repository? I don't have any idea of how to test my extension even after I clone the scratch-vm. I've read almost every post in Discussion Forums » Developing Scratch Extensions about making Scratch 3.0 extension but most of them are out-dated, contradicting, and very complex.

Maybe it's because I understand little-to-nothing about Node JS (although I don't see why it's at all necessary)

I wish someone would make a YouTube video/series showing how to make a Scratch 3.0 extension from scratch and run/test it
JGames101
Scratcher
100+ posts

Creating extensions for Scratch 3.0

ScratchFoxBot wrote:

Sheep_maker wrote:

Very simple!
  1. Know JavaScript
  2. Read this
  3. See these
  4. Get scratch-vm
  5. Add your extension the extensions folder I linked to in #3
It's that easy!


“Easy”

I know a lot a Javascript and have done “full-stack engineering” but this Scratch 3.0 extension stuff is still way above my head.
I'm trying to make a Speech-To-Text extension (since the ST never finished theirs) and the actual JS is very easy to code, but working it into a S3.0 extension is being a pain.

Is there no easier way to run/test/compile extensions than setting up some repository? I don't have any idea of how to test my extension even after I clone the scratch-vm. I've read almost every post in Discussion Forums » Developing Scratch Extensions about making Scratch 3.0 extension but most of them are out-dated, contradicting, and very complex.

Maybe it's because I understand little-to-nothing about Node JS (although I don't see why it's at all necessary)

I wish someone would make a YouTube video/series showing how to make a Scratch 3.0 extension from scratch and run/test it
The reason making Scratch 3 extensions is so difficult right now is because the spec isn't done, so they haven't published proper documentation or ways to test them yet. That will be coming later this year, but for now, we're mostly on our own.
PullJosh
Scratcher
1000+ posts

Creating extensions for Scratch 3.0

ScratchFoxBot wrote:

I wish someone would make a YouTube video/series showing how to make a Scratch 3.0 extension from scratch and run/test it
I've actually been considering making one, but – as JGames101 mentioned – things are still changing, so it doesn't seem like it's worth the effort quite yet. (I wouldn't want to end up with an outdated tutorial!)

In the meantime, this post I wrote a while back might help? https://scratch.mit.edu/discuss/topic/291695/?page=54#post-3310164

Base 10 is the best number system.
FelipeNadhelBR
Scratcher
1 post

Creating extensions for Scratch 3.0

Test
<[ ] seconds passed?>
The_Imagineer_
Scratcher
89 posts

Creating extensions for Scratch 3.0

how do you make them? i understand they are made in java but like what software etc.

Legend has it that if you follow me you get great luck for life
Sheep_maker
Scratcher
1000+ posts

Creating extensions for Scratch 3.0

The_Imagineer_ wrote:

how do you make them? i understand they are made in java but like what software etc.
No, they're made in JavaScript

You need a text editor to make them and a web browser to execute them.

The ST hasn't decided on how to allow custom extensions; they'll tell us later.

- Sheep_maker This is a kumquat-free signature. :P
This is my signature; it appears below all my posts. Make your own at https://scratch.mit.edu/discuss/settings/YOUR USERNAME/.
Screen recording has been added to Scratch 2.0!
.postsignature { overflow: auto; } .scratchblocks { overflow-x: auto; overflow-y: hidden; }
MrAwesomeScratcher
Scratcher
23 posts

Creating extensions for Scratch 3.0

JGames101 wrote:

extensionURL has become extensionId!!!!!
I had to read through 3 pages before I found that.

Last edited by MrAwesomeScratcher (Jan. 13, 2019 00:11:37)



MrAwesomeScratcher

My Website
josephchuang
Scratcher
81 posts

Creating extensions for Scratch 3.0

I wish scratch have radio blocks for micro;bit





The_Imagineer_
Scratcher
89 posts

Creating extensions for Scratch 3.0

WE NEED SPEECH TO TEXT!

Legend has it that if you follow me you get great luck for life

Powered by DjangoBB

Standard | Mobile