Environment

To set up your environment in to get ready to code, follow these steps.

  1. First, download and run the Minecraft EDU v 1.7.10 jar installer. Don't check the server launcher.
  2. Then, download the McpiApiMod and put it in Library / Application Support / minecraftedu / minecraft / mods / 1.7.10 folder. This folder is tricky to get to. Open Finder, click Go and press option key, click Library, etc.
  3. Run your Minecraft EDU launcher, click Mods, and under Client Mods make sure Minecraft Pi API is checked.
  4. Then, download and unzip kbsriram MCPIAPI library. Find the mcpimods folder and move it to Library / Application Support / minecraftedu / minecraft folder.
  5. To make it easier to get to this folder in the future, drag the mcpimods folder to your dock, next to the downloads folder.
  6. Download and install Sublime Text.
  7. Now you should be ready to code some Python in Minecraft!

Each time you want to code and run Python programs, here is what you need to do to get set up.

  • Open your mcpimods folder from the folder link you put in your dock.
  • Open your Terminal application.
  • Drag the python folder that's inside your mcpimods folder and drop it into your Terminal window. Move the cursor back to the beginning and add cd, so your Terminal window looks like this, then hit return.
  • Now back to your Finder and right click the Python file you want to edit, click Open with, and choose Sublime Text.
  • When you are ready to run your program, save it.
  • Open MinecraftEDU Launcher and Start Minecraft EDU. Set login mode to Minecraft EDU and click Launch.
  • Type in the name you want, choose your skin, and Connect.
  • Once you're in the world, go back to Terminal.
  • Type (without the quotes) "python filename.py"
  • Switch back to your Minecraft window and see if your code was successful. Look for any errors in the Terminal window if it wasn't.