

You can also include commandline arguments (e.g., to draw an icosahedron, do /py polyhedron 14 and to do a dodecahedron do /py polyhedron 14 faces). The script must be found in your internal storage's /scripts folder. (Omit the ".py" extension.) This will launch the script inside QPython (you can press the back button several times to switch back to Minecraft to watch it run make sure you allow the console to continue running in the background). Just tap on the chat button in the upper right corner, and once you get the keyboard (you may need to tap on the keyboard icon), type /py scriptnameĪnd press next or enter. You can also run a script right from within Minecraft (started within BlockLauncher). You will need an Android 2.3 or higher device (but devices from the 2.3 era may be too slow for the more complex scripts) a copy of Minecraft PE, and some free software. (A Bluetooth keyboard is recommended, but not necessary.) In this Instructable I will explain how to install my mod and get started with Python coding for Minecraft on Pocket Edition on a phone or tablet.

Source code is here and an installer is on Google Play. The code runs more slowly than the desktop edition, but you can still draw knots, fractals, L-system based plants, have fun with turtle graphics, etc. I now made a mod that lets you do all this with the Android Pocket Edition of Minecraft. There is a great book by Whale and O'Hanlon on Python scripting for Minecraft, and O'Hanlon's site has a lot of information. The same thing can be done on a desktop version with my Raspberry Jam Mod ( here is my Instructable on how to use it), as well as with a server-side mod. The Raspberry PI version of Minecraft lets you script in Python, making fractal designs, drawings, turtle graphics, simple games, etc.
