Even if you haven’t played it, you’ve probably heard of Minecraft. For those unfamiliar, Minecraft is an open-world, sandbox game in which players can build 3D environments with various blocks. 

The game exploded in popularity after its release in 2011, and has since attracted a devoted following of players. IGN ranked Minecraft as the #3 best-selling game of all time, with 70 million copies sold over a variety of platforms (Xbox 360, Xbox One, PC, Mobile).

In conjunction with the Hour of Code movement and TeacherGamingMojang, the developers behind Minecraft, have learned ways to incorporate programming into the game. 

Hour of Code is a global initiative designed to introduce students to the fundamentals of computer science. Launched by Code.org and Computer Science Education Week, Hour of Code helps bring programming and computer science to students at the grassroots level. 

When starting out you don’t even have to purchase Minecraft. Simply visit https://code.org/mc, where after a short introductory video by Minecraft’s lead developer “Jeb,” you’ll enter a version of Minecraft. Using Blockly, a visual programming editor that displays bits of code as connected blocks, you will help “Alex” or “Steve” (The two Minecraft characters) navigate the Minecraft world by solving a series of puzzles.

Each time you solve a puzzle, you are given the option to view the code behind what you just created. The code you are writing, while helping Alex or Steve build a house or plant crops, is actually JavaScript, a programming language used for HTML, the Web and various other functions.  JavaScript is a popular language for people new to coding, so by using Minecraft, players can learn JavaScript fundamentals in a fun and interactive environment. 


Learning programming with Minecraft is not limited to this online coding activity. MinecraftEdu, an independent learning project by TeacherGaming supported by Mojang, uses Minecraft gameplay to teach a variety of subjects. MinecraftEdu has an Hour of Code activity package as well, in which students use a Minecraft mod called ComputerCraft.

Created by modder Dan200, the mod incorporates interactive blocks dubbed “turtles” into Minecraft to teach students programming and computer science through new ways to interact with the game. MinecraftEdu comes equipped with ComputerCraftEdu, or the mod can be downloaded and applied to the regular Minecraft game. If students or teachers want to delve deeper into Minecraft-based learning there is now a full expansion of MinecraftEdu called Minecraft: Education Edition, which will be released as an early access program for educators this summer.   

To account for students without regular access to the internet or Minecraft, there is even an option for a printable MinecraftEdu board game! Another option is the Minecraft edition offered through Raspberry Pi. The Pi 3 comes pre-loaded with a version of Minecraft, that can teach players how to code with the programming language Python

It can be scary to dive into programming, especially if you have no prior experience with computer science. Game-based learning, like learning to code with Minecraft, is helping to alleviate some of these hurdles by making coding fun and interactive. These types of initiatives are changing the norms of not only what we learn, but how we learn. Who knows, in the next few years game-based learning and interactive e-learning activities could become standard over traditional teaching methods.