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

Start learning →

define (custom block) — Scratch Block Guide

📌 What you will learn

Header block where you build the reusable steps for your own custom command.

What this block does

Header block where you build the reusable steps for your own custom command.

Organize complex platformer physics, drawing routines, and reset scripts into clean named parts.

  • Category: My Blocks
  • Key tip: Enable "Run without screen refresh" only for instant loops—never put "wait" blocks inside a no-refresh 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 define (custom block)
  1. Define Reset Player
  2. Go to x: -180 y: 0
  3. Set y_vel to 0
  4. Show

Try it: Creates a reusable "Reset Player" block you can call from anywhere in the sprite.

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 "define (custom block)" in Scratch?

Organize complex platformer physics, drawing routines, and reset scripts into clean named parts. Enable "Run without screen refresh" only for instant loops—never put "wait" blocks inside a no-refresh 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.