Follow the directions below to set up Minecraft for Coding.
Complete Hour of Code: AI for Good
Complete Coding Tutorials
A village needs your help to prevent the spread of a nearby forest fire. Train the Agent to identify what causes fires, remove materials that help fires spread, and then bring life back to a forest destroyed by fire – all with code!
This lesson was inspired by Microsoft’s AI for Earth team, who use artificial intelligence to help solve global environmental challenges.
Watch the video for a short introduction to the Minecraft Hour of Code and learn how to start the lesson.
Need help downloading or accessing the lesson? Check out our FAQ.
This page covers how to get started with Minecraft Education Edition, which is installed on your workstations.
Start Minecraft and sign in if you’re using Minecraft: Education Edition.
Ask Mr. Walters for your sign in information.
Press the Play button. Push the Create New button in the Worlds dialog. The Create… window will have some default templates you could choose from but make your own world with the Create New World button.
You’ll see some settings for your new world. Leave everything as you see it except for Cheats. You need to turn Activate Cheats to the "ON" position to enable all of the coding features for MakeCode.
Press Create and you can start playing in your new world.
Start in-game coding by typing “c“. The Code Builder window will show up in the game with a list of coding apps to choose from. Select Microsoft MakeCode.
The MakeCode home screen will appear in the Code Builder window. Select “New Project” in the “My Projects” gallery to start a fresh project. If you want to try a tutorial or another example instead, pick one of those from the galleries.
To run your code in Minecraft: Education Edition, go back to the game after working with your coding project. Press Resume Game. Depending on what your code is meant to do, your code might run as a chat command or maybe start when some condition in the game changes.
Minecraft has keyboard controls that help you move around and do tasks. Here’s a helpful key card that shows what they are: