From Test-Scratch-Wiki
< Eng:Scratch File Format (2.0)
The following is an incomplete list of block selectors and their corresponding blocks. Block selectors are used in the Scratch File Format (2.0)
All blocks that appear in the block palette also appear in this list, but not all obsolete blocks are listed.
Selector | Block |
---|---|
-
|
|
*
|
|
/
|
() / () |
&
|
|
%
|
|
+
|
|
<
|
() < () |
=
|
|
>
|
() > () |
abs
|
|
answer
|
|
append:toList:
|
|
backgroundIndex
|
Backdrop # |
bounceOffEdge
|
|
broadcast:
|
|
changeGraphicEffect:by:
|
|
changePenHueBy:
|
|
changePenShadeBy:
|
|
changePenSizeBy:
|
|
changeSizeBy:
|
|
changeTempoBy:
|
|
changeVar:by:
|
|
changeVolumeBy:
|
|
changeXposBy:
|
|
changeYposBy:
|
|
clearPenTrails
|
|
CLR_COUNT
|
Clear Counter |
color:sees:
|
|
comeToFront
|
|
computeFunction:of:
|
() of () (Operators block) |
concatenate:with:
|
|
contentsOfList:
|
() (List block) |
costumeIndex
|
Costume # |
costumeName
|
Costume Name |
COUNT
|
Counter |
createCloneOf
|
|
deleteClone
|
|
deleteLine:ofList:
|
|
distanceTo:
|
|
doAsk
|
|
doBroadcastAndWait
|
|
doForever
|
|
doForeverIf
|
|
doForLoop
|
For Each () in () |
doIf
|
|
doIfElse
|
|
doPlaySoundAndWait
|
|
doRepeat
|
|
doReturn
|
|
doUntil
|
|
doWaitUntil
|
|
doWhile
|
While () |
drum:duration:elapsed:from:
|
|
filterReset
|
|
forward:
|
|
fxTest
|
|
getAttribute:of:
|
() of () (Sensing block) |
getLine:ofList:
|
|
getParam
|
custom block parameter |
getUserId
|
|
getUserName
|
|
glideSecs:toX:y:elapsed:from:
|
|
goBackByLayers:
|
|
gotoSpriteOrMouse:
|
|
gotoX:y:
|
|
heading
|
|
heading:
|
|
hide
|
|
hideAll
|
|
hideList:
|
|
hideVariable:
|
|
INCR_COUNT
|
Incr Counter |
insert:at:ofList:
|
|
instrument:
|
|
isLoud
|
|
keyPressed:
|
|
letter:of:
|
|
lineCountOfList:
|
Length of () (List block) |
list:contains:
|
|
lookLike:
|
|
midiInstrument:
|
|
mousePressed
|
|
mouseX
|
|
mouseY
|
|
nextCostume
|
|
nextScene
|
|
not
|
|
noteOn:duration:elapsed:from:
|
|
obsolete
|
Obsolete |
penColor:
|
|
penSize:
|
|
playDrum
|
|
playSound:
|
|
pointTowards:
|
|
putPenDown
|
|
putPenUp
|
|
randomFrom:to:
|
|
readVariable
|
() (Variables block) |
rest:elapsed:from:
|
|
rounded
|
|
say:
|
|
say:duration:elapsed:from:
|
|
sayNothing
|
|
scale
|
|
sceneName
|
|
scrollAlign
|
|
scrollRight
|
|
scrollUp
|
|
senseVideoMotion
|
|
sensor:
|
|
sensorPressed:
|
|
setGraphicEffect:to:
|
|
setLine:ofList:to:
|
|
setPenHueTo:
|
|
setPenShadeTo:
|
|
setRotationStyle
|
|
setSizeTo:
|
|
setTempoTo:
|
|
setVar:to:
|
|
setVideoState
|
|
setVideoTransparency
|
|
setVolumeTo:
|
|
show
|
|
showList:
|
|
showVariable:
|
|
soundLevel
|
|
sqrt
|
Sqrt () |
stampCostume
|
|
startScene
|
|
startSceneAndWait
|
|
stopAll
|
|
stopAllSounds
|
|
stopScripts
|
|
stopSound:
|
Stop Sound () |
stringLength:
|
Length of () (Operators block) |
tempo
|
|
think:
|
|
think:duration:elapsed:from:
|
|
timeAndDate
|
|
timer
|
|
timerReset
|
|
timestamp
|
|
touching:
|
|
touchingColor:
|
|
turnAwayFromEdge
|
|
turnLeft:
|
Turn () Degrees |
turnRight:
|
Turn () Degrees |
undefined
|
Undefined |
volume
|
|
wait:elapsed:from:
|
|
warpSpeed
|
|
whenClicked
|
|
whenCloned
|
|
whenGreenFlag
|
|
whenIReceive
|
|
whenKeyPressed
|
|
whenSceneStarts
|
|
whenSensorGreaterThan
|
|
xpos
|
|
xpos:
|
|
xScroll
|
|
ypos
|
|
ypos:
|
|
yScroll
|