Minecraft coding for kids: a parent's guide
By the Home Ed Stars team · Last reviewed 15 October 2026
Minecraft in two minutes
Minecraft is a building game in which everything is made of cubes, called blocks. Two versions matter here:
- Minecraft: the ordinary game most children play.
- Minecraft Education: a separate version made for schools, with ready-made lessons and a built-in coding tool called Code Builder.
Inside Code Builder, children control the Agent, a small robot that follows their instructions. They can code it with MakeCode Blocks, where each instruction is a coloured block dragged into place, or in Python, a typed language used by professional programmers.
Free ways to start, and what costs money
- Code.org Minecraft tutorials (free, in a web browser). Four of Code.org's Minecraft activities run in a web browser: Minecraft Adventurer, Minecraft Designer, Hero's Journey and Voyage Aquatic. They use drag-and-drop blocks and need no copy of the game.
- Free one-hour lessons in Minecraft Education. Code.org says anyone can download the Minecraft Education app to do its Hour of Code and Hour of AI lessons, such as TimeCraft.
- School accounts. Children at school may already have access.
- A paid licence. Cheaper licences are only for qualifying schools. Everyone else, including home-educating families, needs a "commercial" licence, listed on the US site at $36 per user per year. Check the UK price, and try the free lessons first.
What it teaches from the curriculum
At Key Stage 2 (Years 3 to 6), the computing curriculum asks children to use sequence, selection and repetition, and to find and fix errors. At Key Stage 3 (Years 7 to 9), they must use two or more programming languages, at least one of which is textual, meaning typed rather than built from blocks. Minecraft coding covers all of this.
| Curriculum idea | What it means | In Minecraft |
|---|---|---|
| Sequence (KS2) | Steps in the right order | Move the Agent forward 4, then turn left |
| Repetition (KS2) | A loop: doing something again without rewriting it | “Repeat 4 times” to build a wall 4 rows high |
| Selection (KS2) | “If this, then that” | If the Agent finds a block in front, dig it |
| Debugging (KS2) | Finding and fixing mistakes | The wall comes out crooked, so you work out which step was wrong |
| Textual language (KS3) | Typing code instead of dragging blocks | Writing the same Agent program in Python |
Three first activities
1. Be the Agent (no screen, any age)
- Your child writes instructions on paper to get you from the sofa to the door, using only "forward 1", "turn left" and "turn right".
- Follow them exactly, even when they're wrong. Bumping into the table is a bug.
- Fix the steps together, then look for any part that repeats and rewrite it as "repeat 3 times: forward 1".
2. Code.org Minecraft Adventurer (browser, from about age 7)
- Go to code.org/minecraft and choose Minecraft Adventurer.
- Each puzzle shows a goal. Your child drags blocks into a list and presses Run to watch the character follow them.
- When it goes wrong, ask what they expected to happen and what actually happened, before helping.
3. Make the Agent build a wall with a loop (Minecraft Education, best on a computer)
This follows MakeCode's own Agent Wall tutorial.
- Create a new world. If the Agent won't place blocks, check that Activate Cheats is switched on in the world settings (the setting that lets code change the world).
- In the game, press C to open Code Builder, choose Microsoft MakeCode, then New Project. The blocks are sorted into coloured categories down the left: "on chat command" is under Player, the Agent's blocks under Agent, and "repeat" under Loops. Snap each new block under the one before, inside "on chat command".
- Change the word in the "on chat command" block to "wall". Typing it will run the program.
- Add "agent teleport to player", then "agent move forward 4".
- Add two "agent place on move" blocks, choose "destroy obstacles" from the drop-down in the second, and click both switches to on, so the Agent lays blocks as it walks.
- Add "agent set block" with a count of 4 (this gives the Agent blocks to lay; pick any building block from the picture). Then add two more "agent move forward" blocks: set the first to 3, and in the second change the drop-down from "forward" to "up" and leave it at 1.
- Press the green play button, go back to the game, press T to open chat and type "wall". You get one row.
- Now wrap the last three blocks in "repeat 4 times" and add two "agent turn left" blocks inside, so the Agent faces back the other way for each row. Run it again for a wall four rows high.
For Key Stage 3, MakeCode has Python versions of its tutorials, such as Agent Moves. In any project, the Blocks / JavaScript switch at the top of the editor (use its small arrow to choose Python instead) shows the same program as typed code, a good bridge between the two.
Keeping it safe
- Minecraft's UK Xbox store listing shows it rated PEGI 7 (suitable for ages 7 and over) for mild violence and scenes that may frighten young children.
- In the ordinary game, shared online worlds called servers let children chat with strangers. Younger children are best in single-player or a private world with people you know.
- Set spending limits in your device's parental controls, as the game sells extras.
Home Ed Stars has computing lessons that follow the English National Curriculum from Year 3 to Year 11, with progress tracked objective by objective.
Start your free trial7-day free trial · no credit card required
Minecraft is a trademark of Microsoft Corporation (© Mojang AB). Not an official Minecraft product. Not approved by or associated with Mojang or Microsoft.