In other languages

Help the wiki!

The Scratch Wiki is made by and for Scratchers. Do you want to contribute?

Learn more about joining as an editor!

See discussions in the Community Portal

Block Plugin (1.4)

This article or section documents an outdated version of Scratch (version 1.4). For this article in the current version, see 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.[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 archaic forum blocks. Scratchers could test out the blocks on [https://scratcharchive.asun.co/forums/viewtopic.php?id=90403 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.

Example:

when gf clicked
repeat until <(timer) > [10]>
  go to [mouse-pointer v]
end
think [Scripts in your posts!] 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: Warning 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 old block plugin is still in use on the forum archive site. source here.

References

  1. https://scratcharchive.asun.co/forums/viewtopic.php?id=88009
  • This page was last modified on 24 July 2017, at 01:24.