# Chapter 12: My Blocks (Custom Functions & Parameters) > Break large scripts into named, reusable building blocks with custom inputs. Chapter 12: My Blocks (Custom Functions & Parameters) — Scratch Daizen English Textbook. Break large scripts into named, reusable building blocks with custom inputs. ## Lesson goal & core concept Reduce duplicate code and use "Run without screen refresh" safely for instant drawing or collision resolution. When a custom block is called, Scratch runs its definition from top to bottom and returns right back to the caller. ## Step-by-step practice Work through these steps in the Scratch editor, predicting each result before clicking the green flag. - Identify repeated code (like drawing a shape or resetting the player). - Create a My Block with clear parameter names (e.g., sides, size). - Call the same block multiple times with different numbers. - Keep "wait" blocks out of "Run without screen refresh" definitions. **Chapter 12: My Blocks (Custom Functions & Parameters) — Example** - Define (Draw Polygon (sides) (size)) - Repeat (sides) - Move (size) steps - Turn clockwise ((360) / (sides)) degrees Try it: Draws triangles, squares, or octagons with one clean custom block. ## Mini challenge & next steps Call Draw Polygon three times in a row with different sizes to create nested geometric art. - [Scratch Learning Textbook Home](/en/textbook/): Return to the full 4-stage curriculum overview. - [Scratch Block Dictionary](/en/dictionary/): Look up any block used in this chapter. Updated: 2026-11-23 Author: [Takamasa Suzuki](https://scratch.gmnavi.jp/about/author/) Japanese Edition: https://scratch.gmnavi.jp/textbook/ch12-functions/ [Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)