This article or section documents something not included in the current version of Scratch (3.0). It is only useful from a historical perspective. |
- This article or section documents an outdated version of Scratch (version 1.4). For this article in Scratch 2.0, see Block Plugin (2.0).
The Block Plugin was a plugin for the Scratch Forums and Scratch Wiki, made by JSO, that allowed script images to be constructed through text that is parsed and rendered.[1] It was implemented on the wiki on New Year's Day 2012 and on the Scratch Forums in late January 2012. It was designed to replace using images and the old forum blocks. Scratchers could test out the blocks on this forum thread or on the Wiki's Sandbox.
This plugin is no longer in use, having been replaced by a new version for Scratch 2.0, and later, a version for 3.0.
Basic Syntax
- Main article: Block Plugin (1.4)/Syntax
On the Scratch Wiki, code must be inserted between the <scratchblocks>...</scratchblocks>
tags, while on the forums they are inserted between [scratchblocks]...[/scratchblocks]
tags.
The basic syntax for the Block Plugin was as follows:
Note: | This is rendered using the Scratch 2.0 system, the old one is no longer available, although the syntax still works. |
Code | Use | Example | Which renders |
---|---|---|---|
block name | a block | stamp |
stamp |
end | stops a C block (only necessary in the middle of a script) | repeat (5) move (10) steps end say [Done!] |
repeat (5) move (10) steps end say [Done!] |
[text] | a text input | say [Hello World] |
say [Hello World] |
(variable) | a variable or Reporter Block | (x position) |
(x position) |
(123.4) | a number | wait (0.5) secs |
wait (0.5) secs |
[text v] | a dropdown box | broadcast [Start v] |
broadcast [Start v] |
<boolean> | a Boolean Block | <mouse down?> |
<mouse down?> |
[#FFFFFF] | a color input | <touching color [#FF0000]?> |
<touching color [#FF0000]?> |
// comment text | a comment | hide//Text |
hide//Text |
External Links
- The plugin's source code is available on asun's archive of the old forums located here.
Note: The plugin can be configured to use the icons hosted on this site as well. See this forum post.
- A snapshot of the plugin's source code is available here on the Web Archive.