NEW Explore the Scratch Block Dictionary, tutorials, textbook, and classroom guides

Start learning →

Custom Block Number / Text Inputs — Scratch Block Guide

📌 What you will learn

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.

Example using Custom Block Number / Text Inputs
  1. Define (Jump height)
  2. Change y by height
  3. Wait 0.2 seconds
  4. 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.

Back to My Blocks See the overview and patterns for My Blocks. Learn more → Scratch Block Dictionary (All Categories) Browse Motion, Looks, Sound, Events, Control, Sensing, Operators, Variables, and Extensions. Learn more →

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.