Package-level declarations
Types
Can be used to work with blocks that are not in the standard block categories.
Represents the different types of value inputs in Scratch.
Properties
A reporter for the user's last answer.
Creates a CloneTarget corresponding to the sprite.
A reporter for the current costume's name.
A reporter for the current costume's name.
A reporter for the current costume's number.
A reporter for the number of days since 2000.
Creates a DistanceObject corresponding to the sprite.
Converts a Double to a text expression.
Converts an Int to a text expression.
Converts a String to a text expression.
A reporter for the length of a list.
A reporter for the microphone loudness.
A boolean reporter for whether the mouse is down.
A reporter for the mouse's x-position.
A reporter for the mouse's y-position.
Creates a Property corresponding to the variable.
Creates a PropertyTarget corresponding to the sprite.
A reporter for the sprite's rotation. Can also be used to set or change the rotation.
Creates a SensingKey corresponding to the KeyboardKey instance.
A reporter for the sprite's size. Can also be used to set or change the size.
Creates a SpecialLocation corresponding to the sprite.
Creates a 'length of' operator block.
A reporter for the timer value.
Creates a TouchObject corresponding to the sprite.
A reporter for the user's username.
A reporter for the volume. Can also be used to set or change the volume.
A reporter for the sprite's x-position. Can also be used to set or change the x-position.
A reporter for the sprite's y-position. Can also be used to set or change the y-position.
Functions
Creates an 'and' logical operator block.
Adds an 'add to list' block.
Adds an 'ask and wait' block.
Creates a block stack and adds its contents to the current script.
Adds an existing block stack's contents to the current script.
Adds a 'broadcast' block.
Adds a 'broadcast and wait' block.
Adds a 'go forward/backward layers' block.
Adds a 'change effect by' block.
Changes the opcode of a shadow expression.
Adds a 'change size by' block.
Adds a 'change sound effect by' block.
Adds a 'change variable by' block.
Adds a 'change volume by' block.
Adds a 'change x by' block.
Adds a 'change y by' block.
Adds a 'clear graphic effects' block.
Adds a 'clear sound effects' block.
Creates a 'color is touching color' boolean reporter.
Creates a 'list contains' boolean reporter.
Creates a 'contains' operator block.
Creates a block stack without adding it to the current script.
Adds a 'create clone of' block.
Adds a 'create clone of' block for a specific sprite.
Creates a 'current' time reporter.
Adds a 'delete all of list' block.
Adds a 'delete of list' block.
Adds a 'delete this clone' block.
Creates a 'distance to' reporter.
Creates a 'distance to' reporter for a specific sprite.
Creates a division operator block.
Defines the 'else' part of an 'if-else' block.
Creates an 'equals' comparison block.
Adds a 'forever' loop.
Creates an 'item of list' reporter.
Adds a 'glide to location' block.
Adds a 'glide to x, y' block.
Adds a 'go to layer' block.
Adds a 'go to location' block.
Adds a 'go to x y' block.
Creates a 'greater than' comparison block.
Adds a 'hide' block.
Adds a 'hide list' block.
Adds a 'hide variable' block.
Adds an 'if' block.
Starts an 'if-else' block.
Adds an 'if on edge, bounce' block.
Creates an 'item # of in list' reporter.
Adds an 'insert at of list' block.
Creates a 'join' operator block.
Creates a 'key pressed' boolean reporter.
Creates a 'key pressed' boolean reporter for a specific key.
Creates a 'less than' comparison block.
Creates a 'letter of' operator block.
Creates a subtraction operator block.
Modifies an existing Scratch project file (.sb3) with the generated project JSON.
Modifies an existing Scratch project file (.sb3) with the generated project JSON and optionally adds resources.
Adds a 'move steps' block.
Creates a 'not' operator block.
Creates a 'not' logical operator block.
Creates an 'or' logical operator block.
Prints the generated project JSON to the console.
Adds a 'start sound' block.
Adds a 'play sound until done' block.
Creates an addition operator block.
Adds a 'point in direction' block.
Adds a 'point towards' block.
Defines a custom block procedure.
Creates a 'property of' reporter using a string for the property name.
Creates a 'property of' reporter.
Creates a 'property of' reporter using a variable or list.
Creates a 'property of' reporter for a specific sprite using a string for the property name.
Creates a 'property of' reporter for a specific sprite.
Creates a 'property of' reporter for a specific sprite using a variable or list.
Creates a 'pick random' operator block.
Creates a 'mod' operator block.
Adds a 'repeat' loop.
Adds a 'repeat until' loop.
Adds a 'replace item of list' block.
Adds a 'reset timer' block.
Creates a 'round' operator block.
Adds a 'say' block.
Adds a 'say for secs' block.
Adds a 'set drag mode' block.
Adds a 'set effect to' block.
Adds a 'set rotation style' block.
Adds a 'set size to' block.
Adds a 'set sound effect to' block.
Adds a 'set variable to' block.
Adds a 'set volume to' block.
Adds a 'set x to' block.
Adds a 'set y to' block.
Adds a 'show' block.
Adds a 'show list' block.
Adds a 'show variable' block.
Adds a 'stop all sounds' block.
Adds a 'stop' block.
Adds a 'switch backdrop to' block.
Adds a 'switch costume to' block.
Adds a 'next backdrop' block.
Adds a 'next costume' block.
Adds a 'think' block.
Adds a 'think for secs' block.
Creates a multiplication operator block.
Converts the built project into a ProjectJson object containing the JSON string.
Creates a 'touching' boolean reporter.
Creates a 'touching' boolean reporter for a specific sprite.
Creates a 'touching color' boolean reporter.
Adds a 'turn left' block.
Adds a 'turn right' block.
Adds a 'wait' block.
Adds a 'wait until' block.
Creates a 'when backdrop switches to' hat block.
Creates a 'when this sprite clicked' hat block.
Creates a 'when loudness >' or 'when timer >' hat block.
Creates a 'when green flag clicked' hat block.
Creates a 'when I receive' hat block.
Creates a 'when I start as a clone' hat block.
Creates a 'when key pressed' hat block.
Adds a 'while' loop. This is a custom block concept, not a default Scratch block.
Adds default mutation entries to a block.
Adds an expression input to a block.
Defines a block to be used to change an expression to a certain value.
Defines a block to be used to set an expression to a certain value.
Adds mutation data to a block.
Writes the project to a .sb3 file, including all assets.
Writes the project to a .sb3 file, including the project JSON and all assets.
Writes the project JSON to a file at the specified path.