First, download and run the Minecraft EDU v 1.7.10 jar installer (I have) and install the client only (for students).
Then, download the McpiApiMod and put it in Library / Application Support / minecraftedu / minecraft / mods folder. This folder is tricky to get to. Open Finder, click Go and press option key, click Library, etc.
Run your Minecraft EDU launcher, click Mods, and under Client Mods make sure Minecraft Pi API is checked.
Then, download and unzip kbsriram MCPIAPI library. Find inside of that they mcpimods folder, and move that folder to Library / Application Support / minecraftedu / minecraft folder.
To make it easier to get here in the future, drag the mcpimods folder to your dock, next to the downloads folder.
Now you should be ready to code some Python in Minecraft!
UPDATE: I've made a shell script that studetns use to get everything set up for each programming session. This assumes they have a file in the python folder named sandbox.py.
- Open Terminal
- Type "nano script.command" and hit return.
- In the window that opens copy and paste the following:#!/bin/shecho "Hello"printf "What is your account name? -> "read NAMEopen "/Users/$NAME/Library/Application Support/minecraftedu/minecraft/mcpimods/python"open -a "Sublime Text" "/Users/$NAME/Library/Application Support/minecraftedu/minecraft/mcpimods/python/sandbox.py"open -a "Terminal" "/Users/$NAME/Library/Application Support/minecraftedu/minecraft/mcpimods/python"open -a "MinecraftEdu Launcher"
- Hit control + x, then 'y', then return.
- Now in Terminal type "chmod +x script.command" and hit enter
- Finally, to run it, find the file in your Finder and double click it. If you like you can move it to your desktop.
No comments :
Post a Comment