**[Dr. Alvaro Perez-Diaz](https://alvarop.me)** _Researcher & Data Scientist_ _Senseye Predictive Maintenance, Siemens_ (#) PythonTool Mod: Python inside Minecraft!

This project consisted in the creation of PythonTool, a Minecraft mod which allows visual and interactive in-game execution of Python scripts which alter the Minecraft world in real time. It makes use of existing software libraries such as mcpi and RaspberryJam-Mod, and tries to improve and ease the programming experience. A non-traditional programming workflow using Jupyter Notebook is also proposed to complement the mod. This project was developed at the University of Southampton under the supervision of Prof Hans Fangohr.

Skills: Java, Python, Jekyll, continuous integration.

How-to: <a href="https://ngcm.github.io/PythonTool-Mod/" target="_blank">official website</a>, code available on <a href="https://github.com/ngcm/PythonTool-Mod" target="_blank">GitHub</a>, how-to also hosted at <a href="https://www.instructables.com/id/Interactive-Python-Programming-for-Minecraft-Pytho/" target="_blank">Instructables</a>.

Awards: The <i>Best new activity</i> award at the University of Southampton Science and Engineering Festival 2017 was given to all <a href="http://ngcm.soton.ac.uk/">NGCM</a> participants and activities, including the workshop with PythonTool-Mod.

PythonTool Mod

<br> The game Minecraft has been extremely successful in the last five years, with over 106 million copies sold, making it the second best-selling video game up to date. Its educational capabilities have been exploited in a variety of ways already across the world. In this project, we try to improve the ways that programming can be taught to young learners, by employing a modification (mod) of the game. The possibility to employ Python to alter a Minecraft world in real time has been around for a number of years, provided by the game's creators. However, we believe that the usual text editor & console duo is daunting for young learners or people with limited programming experience. To overcome these difficulties, this mod attempts to *gamify* the programming experience, where players can write Python scripts which get ported inside the game as Python script objects, which can be held, dropped, and used with the click of a mouse. This resembles the way that any other weapon, tool or block is used within the game. Any number of different Python scripts can be put in the player's inventory, and they can be all used together in an interactive way. Detailed installation and user guides can be found in the project's website. We recommend the book <a href="https://www.wiley.com/en-gb/Adventures+in+Minecraft-p-9781118946916" target="_blank">Adventures in Minecraft</a> by David Whale and Martin O'Hanlon to learn more about Python programming and Minecraft. From a technical perspective, PythonTool is made with Java using the <a href="https://files.minecraftforge.net/" target="_blank">Forge</a> modding framework. It supports several recent versions of Minecraft and the mod's `.jar` files are built automatically using <a href="https://www.circleci.com" target="_blank">CircleCI</a> upon Github commits, and uploaded to the downloads section of the official website. <hr> ![](https://img.shields.io/badge/License-MIT-yellow.svg) <a rel="license" href="https://zenodo.org/badge/latestdoi/65482833" target="_ blank"><img alt="https://zenodo.org/badge/latestdoi/65482833" style="border-width:0" src="https://zenodo.org/badge/65482833.svg"/></a>