Tutoring

Learn

Resources

What are My Blocks in Scratch? [Scratch Blocks Explained!]

Updated By

Reviewed By

What are My Blocks in Scratch?
Image

My blocks in Scratch: Scratch programming is a block-based coding language, designed especially for children between the ages of 8 to 16 to learn how to code. It is a visual block-based programming language, which means that the codes are in the form of blocks, divided across nine categories depending on their function and characteristics, and all you have to do is drag these blocks and drop them onto the coding area and arrange them strategically, according to your project goal, for your project to run.


This is Chapter 4.9 in the
Scratch Tutorial for Beginners


What are My blocks in Scratch?

My blocks are one of the 9 categories of blocks in Scratch. My Blocks are pink-colored blocks that specifically hold the procedure for selected sprites. They are the combination of more than one block that can be grouped together to form a single block.

Unlike all the other blocks, My Blocks doesn’t have any sub-types of blocks under it. My Blocks are also known by the name of custom blocks as using my blocks other blocks can be designed that perform different functions depending on the situation. In previous versions of Scratch, my blocks were known by the name of More Blocks. My Blocks are shaped in such a way that they can be placed above or below other blocks to complete the coding.

Uses of My blocks in Scratch

My Blocks help in organizing and simplifying your code. My Blocks give the users the ability to combine more than one block to ease the coding process.

My Blocks also allows running the code and scripts without screen fresh, that is, it eliminates the extremely short period between the running processes of two blocks. It enhances the working of sprites and code.

How to use My blocks in Scratch?

In Scratch, my blocks are one of the 9 categories of blocks available in the block palette. My blocks are used to hold the procedure for selected sprites.

To use this block, just follow the following steps:

  • Step 1: Click on the “My Blocks” button which is a pink-colored circle available on the left side of the screen.
my blocks
  • Step 2: Then click on a box saying “Make a Block” to create your own customized block.
Make a block
  • Step 3: Once you click on the “Make a Block” option, the following screen will show up allowing the user to make a procedure.
Make a block
  • Step 4: To add a number or text to your customized block, click on the first option of the three available options present at the extreme left.
Add a number
  • Step 5: To add a Boolean value to your customized block, click on the second option of the three available options present in the middle.
add a Boolean value
  • Step 6: To add a label to your customized block, click on the third option of the three available options present at the extreme right.
Add a Label
  • Step 7: After creating the block and giving it a name, click on “OK” to move forward.
Click on OK
  • Step 8: If you want to run your block without the screen fresh, click on the tick box, as shown below:
Run without screen fresh
  • Step 9: Once you click on “OK”, the new block will appear in the block palette and an empty definition will appear in the coding area.
my block

How to edit and delete My blocks in Scratch?

To edit a My Block, right-click on the block and select “Edit”. This will take you to the initial My Block creation screen. Now, you can edit the name of the block or add the input values or labels as per the requirement.

edit a custom block

To delete a My Block, right-click on the block and select “Delete”. This will simply delete the block.

delete a custom block

Different types of blocks in Scratch

  1. Motion Blocks
  2. Events Blocks
  3. Looks Blocks
  4. Sound Blocks
  5. Control Blocks
  6. Sensing Blocks
  7. Operator Blocks
  8. Variables Blocks
  9. My Blocks

Frequently asked questions (FAQs)

What are my blocks in Scratch?
My blocks are one of the 9 categories of blocks available in Scratch that are used to hold the procedure for selected sprites

How do I get my blocks?
To use my blocks in Scratch, just click on the “My Blocks” button which is a pink-colored circle available on the left side of the screen, and then click on the “Make a Block” option to create your own customized block.

What is the advantage of running scripts and code without a screen fresh in Scratch?
Running the code and scripts without screen fresh eliminates the extremely short time between the running processes of two blocks. It also enhances the working of sprites and code. 

Which block is grouped in yellow color in Scratch?
In Scratch, the Events block is grouped in orange color.

How to edit a My Block in Scratch?
To edit a My Block, right-click on the block and select “Edit”. This will take you to the initial My Block creation screen and allows you to edit the name of the block or add the input values or label as per the requirement.

We hope you understand what My Blocks in Scratch are and how to use them. If you have any doubts, you can ask your doubts in the comment section. For further learning, you can read our blog on how to create games on Scratch.

Get 1-on-1 online Scratch classes
Don't forget to share this post!
tutor Pic
tutor Pic

First Lesson Free

No Credit Card

No Subscription