# Do anyone know how to make break and place block?

**URL:** <https://forum.makecode.com/t/do-anyone-know-how-to-make-break-and-place-block/38092>\
**Category:** Help\
**Tags:** game\
**Created:** [July 15, 2025, 8:13pm UTC](https://forum.makecode.com/t/do-anyone-know-how-to-make-break-and-place-block/38092 "2025-07-15T20:13:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanielZ1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/danielz1/32/21989_2.png) [@DanielZ1](https://forum.makecode.com/u/DanielZ1)\
**Post date:** [July 15, 2025, 8:13pm UTC](https://forum.makecode.com/t/do-anyone-know-how-to-make-break-and-place-block/38092/1 "2025-07-15T20:13:05Z")

</div>

Do anyone know how to make break and place block? I want to make 2d minecraft.

---

<div class="post-metadata">

**Author:** ![a012](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/a012/32/24099_2.png) [@a012](https://forum.makecode.com/u/a012)\
**Post date:** [August 25, 2025, 6:26pm UTC](https://forum.makecode.com/t/do-anyone-know-how-to-make-break-and-place-block/38092/2 "2025-08-25T18:26:44Z")

</div>

If you want to make breakable/placeable blocks like in Minecraft, here’s how you can do it in a few steps:

**Step 1: Place a tile when the A button is pressed**

- Go to **Scene** → drag **Set Tile At** into the **A button pressed** event.
- Choose the tile you want to place from the image picker.
- Example:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/0/f/0fd6c4d188b5312c634b32c324d89041d8acbaac.png)

**Step 2: Turn on the wall at that location**

- Drag **Set Wall At** and set it to **on** at the same tile location as your placed tile.
- This ensures the wall matches the tile placement, just like in Minecraft.
- Example:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/8/a/8aeeea070ecacffb0ca1ec4445d538ad4fcffa7b.png)

**Step 3: Remove the tile/wall when the B button is pressed**

- Do the same as Step 1 and Step 2, but instead of placing the tile or turning on the wall, delete or turn off the wall.
- Example:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/2/4/24427f87c4fce97112d521fb5efd61145bcde8a8.png)

**Extra Tips:**

- Always make sure the tile location for the wall matches the tile location exactly. This keeps the placement precise.
- You can create your own tiles by clicking the transparency image picker in **Set Tile At** and selecting the tile you want.

Congrats! With these steps, you now have a working break-and-place system similar to Minecraft. 🎮  
Also, here is the game:[https://makecode.com/\_iygdeEfJhdME](https://makecode.com/_iygdeEfJhdME) This is an example of how to stack blocks and delete them.
