- This article or section documents an outdated version of Scratch (version 1.4). For this article in Scratch 2.0, see Eng:Block Plugin (2.0).
The Block Plugin is a plugin for the Scratch Forums and Scratch Wiki, made by JSO, that allows script images to be constructed through text that is parsed and rendered. 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 archaic forum blocks. Scratchers could test out the blocks on this forum thread or on the Wiki's Sandbox.
when gf clicked repeat until <(timer) > > go to [mouse-pointer v] end think [Scripts in your posts!] for (3) secs
- 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
The basic syntax of for the Block Plugin is as follows:
Note: This is rendered using the Scratch 2.0 system, the old one is no longer available, although the syntax still works.
|block name||a block||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)|
|(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?>|
|[#FFFFFF]||a color input||<touching color [#FF0000]?>|
<touching color [#FF0000]?>
|// comment text||a comment||hide//Text|
- Main article: Block Plugin (1.4)/Bugs
The blocks plugin has many bugs. A list of current and past bugs can be seen in the main article above.
- The old block plugin is still in use on the forum archive site. source here.