Custom Block Number / Text Inputs — Scratch Block Guide
Passes parameter values (like size, steps, or message text) into a custom block.
What this block does
Passes parameter values (like size, steps, or message text) into a custom block.
Build one flexible "Draw Square (size)" or "Jump (height)" block instead of five separate scripts.
- Category: My Blocks
- Key tip: Drag the pink input oval from the define header into any block inside the definition.
Working Scratch example
Try building this small script in the Scratch editor, predict what will happen, then click the green flag to test it.
- Define (Jump height)
- Change y by height
- Wait 0.2 seconds
- Change y by (0 - height)
Try it: Lets you call Jump (30) for a small hop or Jump (70) for a high leap.
Related block guides
Explore other blocks in the same category or return to the full English Block Dictionary.
FAQ
When should I use "Custom Block Number / Text Inputs" in Scratch?
Build one flexible "Draw Square (size)" or "Jump (height)" block instead of five separate scripts. Drag the pink input oval from the define header into any block inside the definition.
This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.