Scratch File Format (2.0)/Block Selectors

< 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
- () - ()
* () * ()
/ () / ()
& () and ()
% () Mod ()
+ () + ()
< () < ()
= () = ()
> () > ()
| () or ()
abs Abs ()
answer Answer
append:toList: Add () to ()
backgroundIndex Backdrop #
bounceOffEdge If on Edge, Bounce
broadcast: Broadcast ()
changeGraphicEffect:by: Change () Effect by ()
changePenHueBy: Change Pen Color by ()
changePenShadeBy: Change Pen Shade by ()
changePenSizeBy: Change Pen Size by ()
changeSizeBy: Change Size by ()
changeTempoBy: Change Tempo by ()
changeVar:by: Change () by ()
changeVolumeBy: Change Volume by ()
changeXposBy: Change X by ()
changeYposBy: Change Y by ()
clearPenTrails Clear
CLR_COUNT Clear Counter
color:sees: Color () is Touching ()?
comeToFront Go to Front
computeFunction:of: () of () (Operators block)
concatenate:with: Join ()()
contentsOfList: () (List block)
costumeIndex Costume #
costumeName Costume Name
COUNT Counter
createCloneOf Create Clone of ()
deleteClone Delete This Clone
deleteLine:ofList: Delete () of ()
distanceTo: Distance to ()
doAsk Ask () and Wait
doBroadcastAndWait Broadcast () and Wait
doForever Forever
doForeverIf Forever If ()
doForLoop For Each () in ()
doIf If () Then
doIfElse If () Then, Else
doPlaySoundAndWait Play Sound () Until Done
doRepeat Repeat ()
doReturn Stop Script
doUntil Repeat Until ()
doWaitUntil Wait Until ()
doWhile While ()
drum:duration:elapsed:from: Play Drum () for () Beats
filterReset Clear Graphic Effects
forward: Move () Steps
fxTest Color FX Test ()
getAttribute:of: () of () (Sensing block)
getLine:ofList: Item () of ()
getParam custom block parameter
getUserId User ID
getUserName Username
glideSecs:toX:y:elapsed:from: Glide () Secs to X: () Y: ()
goBackByLayers: Go Back () Layers
gotoSpriteOrMouse: Go to ()
gotoX:y: Go to X: () Y: ()
heading Direction
heading: Point in Direction ()
hide Hide
hideAll Hide All Sprites
hideList: Hide List ()
hideVariable: Hide Variable ()
INCR_COUNT Incr Counter
insert:at:ofList: Insert () at () of ()
instrument: Set Instrument to ()
isLoud Loud?
keyPressed: Key () Pressed?
letter:of: Letter () of ()
lineCountOfList: Length of () (List block)
list:contains: () Contains ()
lookLike: Switch Costume to ()
midiInstrument: Set Instrument to ()
mousePressed Mouse Down?
mouseX Mouse X
mouseY Mouse Y
nextCostume Next Costume
nextScene Next Backdrop
not Not ()
noteOn:duration:elapsed:from: Play Note () for () Beats
obsolete Obsolete
penColor: Set Pen Color to ()
penSize: Set Pen Size to ()
playDrum Play Drum () for () Beats
playSound: Play Sound ()
pointTowards: Point Towards ()
putPenDown Pen Down
putPenUp Pen Up
randomFrom:to: Pick Random () to ()
readVariable () (Variables block)
rest:elapsed:from: Rest for () Beats
rounded Round ()
say: Say ()
say:duration:elapsed:from: Say () for () Secs
sayNothing Say Nothing
scale Size
sceneName Backdrop Name
scrollAlign Align Scene ()
scrollRight Scroll Right ()
scrollUp Scroll Up ()
senseVideoMotion Video () on ()
sensor: () Sensor Value
sensorPressed: Sensor ()?
setGraphicEffect:to: Set () Effect to ()
setLine:ofList:to: Replace Item () of () With ()
setPenHueTo: Set Pen Color to ()
setPenShadeTo: Set Pen Shade to ()
setRotationStyle Set Rotation Style ()
setSizeTo: Set Size to ()%
setTempoTo: Set Tempo to () bpm
setVar:to: Set () to ()
setVideoState Turn Video ()
setVideoTransparency Set Video Transparency to ()%
setVolumeTo: Set Volume to ()%
show Show
showList: Show List ()
showVariable: Show Variable ()
soundLevel Loudness
sqrt Sqrt ()
stampCostume Stamp
startScene Switch Backdrop to ()
startSceneAndWait Switch Backdrop to () and Wait
stopAll Stop All
stopAllSounds Stop All Sounds
stopScripts Stop ()
stopSound: Stop Sound ()
stringLength: Length of () (Operators block)
tempo Tempo
think: Think ()
think:duration:elapsed:from: Think () for () Secs
timeAndDate Current ()
timer Timer
timerReset Reset Timer
timestamp Days Since 2000
touching: Touching ()?
touchingColor: Touching Color ()?
turnAwayFromEdge Point Away From Edge
turnLeft: Turn () Degrees
turnRight: Turn () Degrees
undefined Undefined
volume Volume
wait:elapsed:from: Wait () Secs
warpSpeed All at Once
whenClicked When This Sprite Clicked
whenCloned When I Start as a Clone
whenGreenFlag When Green Flag Clicked
whenIReceive When I Receive ()
whenKeyPressed When () Key Pressed
whenSceneStarts When Backdrop Switches to ()
whenSensorGreaterThan When () is greater than ()
xpos X Position
xpos: Set X to ()
xScroll X Scroll
ypos Y Position
ypos: Set Y to ()
yScroll Y Scroll
  • This page was last modified on 17 October 2015, at 17:18.