← Back to projects
CodeCraft was my team's Hack OHI/O 2024 submission. We created a library that transpiles a subset of Python's syntax into the Minecraft command syntax, and then runs these commands on a server. The commands (and therefore the Python source file you create) can control much of the world, including its blocks, enemies, and players.
The transpilation code was written from scratch in Kotlin. One of the most challening parts of transpilation was allowing arbitrarily nested looping and conditionals -- this feature does not exist in the target language, so we had to construct the output in a very specific way to get this working.
