Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » a failed project...
- MagicCrayon9342
-
Scratcher
1000+ posts
a failed project...
Following the documentation to link mocha-gui and mocha-vm
- CST1229
-
Scratcher
1000+ posts
a failed project...
Where is scratch-gui loading the blocks from, and where can I modify that module.scratch-blocks for the actual blocks, and scratch-vm for the behavior.
For extensions, the blocks are also defined in the vm.
- MagicCrayon9342
-
Scratcher
1000+ posts
a failed project...
So, what's some base code and knowledge I need to write a block.Where is scratch-gui loading the blocks from, and where can I modify that module.scratch-blocks for the actual blocks, and scratch-vm for the behavior.
For extensions, the blocks are also defined in the vm.
- NFlex23
-
Scratcher
1000+ posts
a failed project...
(#24)https://scratch.mit.edu/discuss/topic/289503/So, what's some base code and knowledge I need to write a block.Where is scratch-gui loading the blocks from, and where can I modify that module.scratch-blocks for the actual blocks, and scratch-vm for the behavior.
For extensions, the blocks are also defined in the vm.
- CST1229
-
Scratcher
1000+ posts
a failed project...
Use existing blocks as a base.So, what's some base code and knowledge I need to write a block.Where is scratch-gui loading the blocks from, and where can I modify that module.scratch-blocks for the actual blocks, and scratch-vm for the behavior.
For extensions, the blocks are also defined in the vm.
Blockly.Msg.* values are from scratch-blocks/msg/messages.js iirc.
The actual block palette is in scratch-gui/src/lib/make-toolbox-xml.js (scratch-blocks/blocks_vertical/default-toolbox.js is only for the scratch-blocks playground).
- MagicCrayon9342
-
Scratcher
1000+ posts
a failed project...
If I wanted to download the source of, and use existing custom extensions for Scratch. Where can I find some extensions, the source, and where to put the files.
- MagicCrayon9342
-
Scratcher
1000+ posts
a failed project...
I have discovered the correlation between scratch-vm, scratch-blocks, and scratch-gui in terms of creating blocks.
- MagicCrayon9342
-
Scratcher
1000+ posts
a failed project...
First block!
Not in the intended way though.

Not in the intended way though.

- dhuls
-
Scratcher
1000+ posts
a failed project...
(#27)A few custom extensions
If I wanted to download the source of, and use existing custom extensions for Scratch. Where can I find some extensions, the source, and where to put the files.
Their source (bitwise.js and fetch.js)
- PoIygon
-
Scratcher
1000+ posts
a failed project...
First block!Why do you make topics for things that haven’t been finished or in a working state?
Not in the intended way though.
Why are you the way you are?
- MagicCrayon9342
-
Scratcher
1000+ posts
a failed project...
This is for help making it work lmao.First block!Why do you make topics for things that haven’t been finished or in a working state?
Not in the intended way though.
Why are you the way you are?
- PoIygon
-
Scratcher
1000+ posts
a failed project...
You can make a topic for making it work and then you can make a topic for mocha once you have a working piece of softwareThis is for help making it work lmao.First block!Why do you make topics for things that haven’t been finished or in a working state?
Not in the intended way though.
Why are you the way you are?
(and optionally a website for it)
Last edited by PoIygon (April 24, 2022 20:51:49)
- MagicCrayon9342
-
Scratcher
1000+ posts
a failed project...
What do you.. think I did..You can make a topic for making it work and then you can make a topic for mocha once you have a working piece of softwareThis is for help making it work lmao.First block!Why do you make topics for things that haven’t been finished or in a working state?
Not in the intended way though.
Why are you the way you are?
- PoIygon
-
Scratcher
1000+ posts
a failed project...
That was for the GUI flipping if it was a different languageWhat do you.. think I did..You can make a topic for making it work and then you can make a topic for mocha once you have a working piece of softwareThis is for help making it work lmao.First block!Why do you make topics for things that haven’t been finished or in a working state?
Not in the intended way though.
Why are you the way you are?
- MagicCrayon9342
-
Scratcher
1000+ posts
a failed project...
The changes have been added to all 3 repositories under commit “Attempting to add a block”
You can view the changes, I must of did something wrong or misunderstood them.
If nothings wrong, I can safely assume its a linking issue.
You can view the changes, I must of did something wrong or misunderstood them.
If nothings wrong, I can safely assume its a linking issue.
Last edited by MagicCrayon9342 (April 24, 2022 20:58:05)
- CST1229
-
Scratcher
1000+ posts
a failed project...
The changes have been added to all 3 repositories under commit “Attempting to add a block”The block ID is motion_alertTest, but in the palette it's motion_alertText.
You can view the changes, I must of did something wrong or misunderstood them.
If nothings wrong, I can safely assume its a linking issue.
- MagicCrayon9342
-
Scratcher
1000+ posts
a failed project...
Why are all my code issues spelling mistakes, it happens in every project.The changes have been added to all 3 repositories under commit “Attempting to add a block”The block ID is motion_alertTest, but in the palette it's motion_alertText.
You can view the changes, I must of did something wrong or misunderstood them.
If nothings wrong, I can safely assume its a linking issue.
- MagicCrayon9342
-
Scratcher
1000+ posts
a failed project...
How would I add another Category that'll be named “Javascript”
- MagicCrayon9342
-
Scratcher
1000+ posts
a failed project...
After fixing it its still a red block.The changes have been added to all 3 repositories under commit “Attempting to add a block”The block ID is motion_alertTest, but in the palette it's motion_alertText.
You can view the changes, I must of did something wrong or misunderstood them.
If nothings wrong, I can safely assume its a linking issue.
Update: Forgot to run prepublish in mocha-blocks
Update 2: ran prepublish on the blocks still doesn't work.
Update 3: Found another error in the source, prepublishing again
Update 4: Still nothin'
Last edited by MagicCrayon9342 (April 24, 2022 21:50:10)
- Discussion Forums
- » Advanced Topics
-
» a failed project...




