Our Discord Find a crew to play with. Join
Discord
Education

Minecraft Hour of Code

Free coding lessons set in the world of Minecraft, from Code.org and Mojang. No account, no installation, right in your browser.

What is the Hour of Code?

The Hour of Code is a global initiative by Code.org that aims to bring coding to everyone, whatever their age or experience. Minecraft joined the project in 2015, when Mojang and Microsoft Education released the first course that combined block-based coding with the game's mechanics.

The idea is simple: instead of typing code by hand, you drag colored blocks that stand for commands (move forward, turn, repeat 5 times) and arrange them in sequences. A character in the Minecraft world carries out your instructions. If something goes wrong, you see the result right away and fix your algorithm. It's learning by experimenting, which is exactly how programming works in the real world.

All the courses run in a web browser. You don't need to install Minecraft, have an account or pay anything. Just go to code.org/minecraft and click "Start".

Available Minecraft courses

Code.org offers several courses set in the world of Minecraft. Each one teaches different programming concepts and takes about 45-60 minutes:

Voyage Aquatic

The newest course, inspired by Minecraft's underwater world. You control a character exploring the ocean: you program its moves, collect resources and avoid dangers. The course introduces loops, conditional statements (if… then…) and nested conditions. Ideal if you're starting from zero.

Hero's Journey

A story-driven course in which you travel through different Minecraft biomes and solve logic puzzles. It introduces variables, functions and more complex loops. The difficulty ramps up gradually: the first tasks are simple sequences, and the last ones make you combine several concepts at once.

Minecraft Designer

A creative course: instead of solving ready-made puzzles, you design your own Minecraft-style mini-game. You learn about events (when the player touches an item, do something), infinite loops and interactions between objects. At the end, you can share your game with friends through a link.

Adventurer (classic)

The first Minecraft course on Code.org: simpler than the others and focused on basic sequences and repetition. It's still available, although Voyage Aquatic and Hero's Journey have a more modern interface and more content.

How to start, step by step

  1. Open your browser: Chrome, Firefox, Edge or Safari. The courses work on computers and tablets.
  2. Go to code.org/minecraft: you'll see a list of the available courses with descriptions.
  3. Pick a course: if you've never coded before, start with Voyage Aquatic. If you want to create something, pick Minecraft Designer.
  4. Click "Start": you don't need to create an account. You can sign in to save your progress, but it's optional.
  5. Drag blocks and test: every task has instructions on the left and a workspace on the right. Arrange the blocks, click "Run" and watch what happens.
  6. Try again as often as you like: there's no limit on attempts. If you get stuck, click "Hints" and the course will point you toward the solution without giving you the answer.

The whole thing takes from 30 minutes (for fast learners) to 90 minutes (with experimenting and repeating tasks). At the end you get a certificate of completion that you can print or share.

Who these lessons are for

Officially, the Minecraft Hour of Code courses are for kids aged 6 and up, but in practice people of all ages use them. These groups get the most out of them:

  • Kids aged 6-10: block-based coding is intuitive, and the Minecraft theme holds their attention. Younger kids may need help reading the instructions.
  • Students aged 10-15: the Hero's Journey and Designer courses introduce concepts you'll find in real programming languages (variables, functions, events).
  • Teachers: Code.org offers ready-made lesson plans with a lesson timeline, learning objectives and worksheets. There's more in the Education section of our site.
  • Parents: if your child spends time in Minecraft, the Hour of Code turns that passion into a lesson in logical thinking.

The Hour of Code in Polish schools

In Poland, the Hour of Code (Godzina Kodowania in Polish) takes place every December, during Computer Science Education Week. Many Polish schools use the Minecraft courses as an introduction to coding in computer science classes and extracurricular activities.

Code.org has a Polish version of its interface, so the instructions and hints appear in Polish. Not every course is fully translated, but Voyage Aquatic and Adventurer work in Polish without any problems.

If you're a teacher and want to use Minecraft in education beyond a one-off lesson, see our section on Minecraft Education Edition: a complete learning environment with lessons, chemistry, Python coding and classroom management tools.

What to do after the Hour of Code

Finishing a course is just the beginning. If you enjoyed block-based coding, here are the natural next steps:

  • Minecraft Education Edition: the full game with a built-in code editor (MakeCode and Python). You can program agents, automate building and create interactive lessons. More about coding in Minecraft.
  • Scratch: a visual programming environment from MIT, similar to the block coding in the Hour of Code, but with more creative freedom.
  • MakeCode for Minecraft: Microsoft's editor that combines block-based coding with JavaScript. It works with Bedrock Edition and Education Edition.
  • Python and JavaScript: if you want to move on to real code, Minecraft Education offers Python integration, and community-made mods (Forge, Fabric) use Java.

Related pages