Archive.png 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.

Example:

when gf clicked
repeat until <(timer) > [10]>
  go to [mouse-pointer v]
end
think [Hmm...] for (3) secs

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 of for the Block Plugin is as follows:

Note 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

Bugs

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.

External Links

  • The plugin's source code is available on asun's archive of the old forums located here.
    • Note 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.

References

Cookies help us deliver our services. By using our services, you agree to our use of cookies.