Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » How to use the Scratch Blocks Library
- ejanaj
-
Scratcher
43 posts
How to use the Scratch Blocks Library
There is a Scratch blocks library (not actual Scratch) that was made by the Scratch foundation on GitHub. I looked at the wiki, but it didn’t help. Can someone explain this to me?
Last edited by ejanaj (Aug. 1, 2023 05:31:23)
- EngineerRunner
-
Scratcher
1000+ posts
How to use the Scratch Blocks Library
it's basically the programming interface for Scratch. scratch 3 is broken up into scratch-vm (the thing that runs the actual code), scratch-blocks (the blocks themselves, which can run on its own but is pretty useless without vm/an alternative) scratch-gui (the thing that puts everything together) and a bunch of other parts that don't matter to this discussion.
- ejanaj
-
Scratcher
43 posts
How to use the Scratch Blocks Library
I know what it is, I just don't know how to use it.
- ejanaj
-
Scratcher
43 posts
How to use the Scratch Blocks Library
I want to use it to create blocks, that look like scratch blocks.
- Redstone1080
-
Scratcher
1000+ posts
How to use the Scratch Blocks Library
I want to use it to create blocks, that look like scratch blocks.Oh, it's on the forums. Just do this in a forum post:
[scratchblocks]
// ... insert scratch blocks
[/scratchblocks]
This BBCode snippet:
[scratchblocks]
when green flag clicked // hello world
move (10) steps :: looks
cursed block <touching [mouse pointer v]?> [text] (123) [dropdown v] :: #00ff00 cap
[/scratchblocks]
when green flag clicked // hello worldHope this helps!
move (10) steps :: looks
cursed block <touching [mouse pointer v]?> [text] (123) [dropdown v] :: #00ff00 cap
Last edited by Redstone1080 (Aug. 1, 2023 00:32:18)
- ejanaj
-
Scratcher
43 posts
How to use the Scratch Blocks Library
Thanks, but that's just on the forums. I meant that I wanted to use it outside of the scratch website.
- ejanaj
-
Scratcher
43 posts
How to use the Scratch Blocks Library
I am talking about this library (which was created by the scratch foundation):
https://github.com/scratchfoundation/scratch-blocks
However, you're talking about a library that isn't associated with scratch (which I totally understand how to use).
https://github.com/scratchfoundation/scratch-blocks
However, you're talking about a library that isn't associated with scratch (which I totally understand how to use).
- dhuls
-
Scratcher
1000+ posts
How to use the Scratch Blocks Library
(#9)That's not what that library does. It's basically just the block editor, not a tool for creating images of blocks, nor does it provide one.
I am talking about this library (which was created by the scratch foundation):
https://github.com/scratchfoundation/scratch-blocks
However, you're talking about a library that isn't associated with scratch (which I totally understand how to use).
The forums, as well as the wiki, use the other library I linked to render their block images.
- Mrcomputer1
-
Scratcher
500+ posts
How to use the Scratch Blocks Library
Since scratch-blocks is based on Google's Blockly library, the Blockly documentation is useful for understanding how to use scratch-blocks. You can find the Blockly documentation at https://developers.google.com/blockly/guides/get-started/web.
If that doesn't help you or you want more help, please explain exactly what you are trying to do with scratch-blocks so we can actually help you.
If that doesn't help you or you want more help, please explain exactly what you are trying to do with scratch-blocks so we can actually help you.
I want to use it to create blocks, that look like scratch blocks.This doesn't help us know what you want to do with scratch-blocks. Do you want to create blocks that are just displayed on a web page (although, for that you don't want to use scratch-blocks)? Do you want to create blocks that you can drag around and connect (like you can in the Scratch editor)? Do you want to make a mod of Scratch with additional blocks?
- ejanaj
-
Scratcher
43 posts
How to use the Scratch Blocks Library
I want to create blocks that can be dragged and connected.
Last edited by ejanaj (Aug. 3, 2023 02:45:27)
- Discussion Forums
- » Advanced Topics
-
» How to use the Scratch Blocks Library