This developer squeezed a full Minecraft server onto an ESP32, and it actually works

In a remarkable demonstration of ingenuity, a developer known as angelthebox has successfully created a Minecraft server that operates on the compact ESP32-S3 microcontroller. Named Macerun, this server is built on Minecraft version 1.16.5 and has been entirely rewritten in C, eliminating the need for Java. While the experience may not rival that of high-end gaming setups, it offers a unique opportunity to engage with the beloved block-building game on a surprisingly small device.

Key Features of Macerun

Despite its limitations, Macerun manages to incorporate several core gameplay elements:

  • Players can join the server and explore the virtual world, placing and breaking blocks as they go.
  • The server generates world chunks procedurally, optimizing memory usage and enhancing performance.
  • Basic crafting mechanics are available, including some 2×2 recipes for item creation.
  • Players can communicate through an in-game chat feature, fostering a sense of community.
  • Basic physics, health, and hunger mechanics are tracked, adding depth to the gameplay.
  • Changes to blocks are saved directly to the chip’s flash memory, ensuring persistence between sessions.

However, the server does have its shortcomings. Notably, it currently lacks any mobs, compelling players to engage in a peaceful mode experience. The absence of 3×3 crafting recipes and the inability to retain player inventories and positions upon exiting the game further highlight the project’s nascent stage. Nevertheless, the accomplishments of angelthebox are commendable, showcasing what can be achieved with creativity and technical skill.

For those interested in exploring this innovative project, the source code is available on the Macerun GitHub page, inviting enthusiasts to experiment and contribute to its development.

AppWizard
This developer squeezed a full Minecraft server onto an ESP32, and it actually works