PDF

blockstblockst0.4.0

Render Scratch, Blockly, MakeCode and Open Roberta blocks for educational documents.

Blockly block catalog#

Every block the Blockly dialect knows, built from the locale files the parser reads (scripts/scratchblocks-wasm/data/dialects/locales/). Empty slots stand for a value () or a dropdown [ v]; write the content in your own document. The standard blocks are shown in English (language: "en"); the same blocks exist in 24 languages, German being the default, see the languages of Blockly and jwinf.

Standard blocks#

The blockly profile: Blockly’s standard blocks in today’s wording.

Schleifen#

BlockCode
count with [ v] from () to () by ()
end
for each item [ v] in list ()
end
repeat () times
end
repeat until ()
end
repeat while ()
end

Logik#

BlockCode
if ()
end
<() = ()>
<() ≥ ()>
<() > ()>
<() ≤ ()>
<() < ()>
<() ≠ ()>
<not ()>
(null)
<() and ()>
<() or ()>
(test ())

Mathe#

BlockCode
(() + ())
(() ÷ ())
(() × ())
(() ^ ())
(() - ())
(constrain () low () high ())
(remainder of () ÷ ())

Text#

BlockCode
to [ v] append text ()
item
(in text () [ v] ())
<() is empty>
(length of ())

Listen#

BlockCode
(create empty list)
<() is empty>
(length of ())
(create list with item () repeated () times)
(reverse ())

Variablen#

BlockCode
change [ v] by ()
set [ v] to ()

Funktionen#

BlockCode
to ()
end
if () return ()

jwinf#

The jwinf profile: the robot and turtle world blocks of jwinf.de, plus the standard blocks whose wording differs there. jwinf is a German competition, its world blocks exist in German only.

Start#

BlockCode
Programm
Roboter-Programm
Schildkröten-Programm

Aktionen#

BlockCode
gehe rückwärts
lege Objekt ab
gehe nach rechts
gehe
(links vom Gitterrand)
(rechts vom Gitterrand)
springe
drehe nach links
gehe nach oben
(Hindernis rechts)
(vor Hindernis)
(Hindernis oben)
(Hindernis unten)
(Hindernis links)
(auf Kiste)
(sur un lanceur laser)
(auf Zahl)
(auf Objekt)
(auf Tafel)
(Plattform darüber)
(vor Plattform)
schiebe Kiste
(vor Kiste)
(Zahl auf dem Feld)
drehe nach rechts
Rückkehr von der Schießrichtung ()
schieße Laser in Richtung ()
gehe nach unten
drehe um
gehe nach links
hebe Objekt auf
schreibe Zahl ()

Schildkroete#

BlockCode
(turtle's column)
setze Farbe ()
gehe () Schritte
gehe () Schritte zurück
setze Stift auf
hebe Stift ab
(turtle's row)
drehe (Grad) ()
drehe um ()° nach [ v]
drehe um () nach [ v]
drehe nach links ↺
drehe um ()° nach links ↺
drehe um () nach links ↺
drehe um () Grad nach links ↺
drehe nach rechts ↻
drehe um ()° nach rechts ↻
drehe um () nach rechts ↻
drehe um () Grad nach rechts ↻

TurtleInput#

BlockCode
(Eingabewert)

Schleifen#

BlockCode
wiederhole () mal:
ende

Text#

BlockCode
etwas

Listen#

BlockCode
(erzeuge Liste mit () mal dem Element ())

Debug#

BlockCode
messagebox ()
logge ()