Go to file
2024-02-10 20:47:45 -05:00
.settings Upload src 2024-02-08 20:09:35 -05:00
gradle/wrapper TeaVM 0.9.2 2024-02-10 13:54:22 -05:00
jars Compile resources 2024-02-09 10:07:55 -05:00
md5 Upload src 2024-02-08 20:09:35 -05:00
offline_download Compile 2024-02-10 15:37:59 -05:00
resources Compile resources 2024-02-09 10:07:55 -05:00
src/main/java Fixed splash text 2024-02-10 20:47:45 -05:00
web Fixed splash text 2024-02-10 20:47:45 -05:00
.classpath Upload src 2024-02-08 20:09:35 -05:00
.project Upload src 2024-02-08 20:09:35 -05:00
build.gradle TeaVM 0.9.2 2024-02-10 13:54:22 -05:00
CompileEPK.bat Compile resources 2024-02-09 10:07:55 -05:00
CompileEPK.sh Compile resources 2024-02-09 10:07:55 -05:00
gradlew TeaVM 0.9.2 2024-02-10 13:54:22 -05:00
gradlew.bat TeaVM 0.9.2 2024-02-10 13:54:22 -05:00
LICENSE Initial commit 2024-02-08 20:07:53 -05:00
README.md Update README.md 2024-02-10 16:11:38 -05:00
settings.gradle TeaVM 0.9.2 2024-02-10 13:54:22 -05:00

Minecraft Alpha-v1.2.6

This is based off of real Minecraft Alpha v1.2.6, the decompiled source code has been ported to TeaVM with as minimal changes as possible. Worlds and settings are saved to your browsers local storage using IndexedDB, the reason why the world size's are so large is because I had to leave them uncompressed, whenever I tried to compress them using CompressedStreamTools, TeaVM would get stuck on an infinite loop. A newly generated world may take up around 20 MBs.

Screenshot (23)

Play the official release (No download required)

Download offline HTML file

Making a client

Gradle

After modifying files in src/main/java you can compile your changes to the javascript client by running gradlew generatejavascript, for linux run ./gradlew generatejavascript. This will then transpile the Java code into javascript files in /web/js.

Textures

The textures are compiled into resources.mc using Laxdude's EPK Compiler. The resources are located in /resources, after modifying the resources you can compile them using CompileEPK, and for Linux use ./CompileEPK.sh.

Offline Download

As of right now there is no system to compile an offline download, so you will have to manually copy and paste the javascript from /web/js/app.js into the HTML file, for the resources.mc just encode the file using Base64 and paste it into the assets div.

Muliplayer

Multiplayer has been removed because I am too lazy to rewrite it, unless you're planning on porting it yourself, do NOT ask for multiplayer, it will NOT be added anytime soon!

If you do want to try to port it then I would recommend using a diff of Alpha v1.2.6 and this project to port the original code back over, all packet classes and networking code has been completely removed.

How to decompile older Minecraft versions

To decompile older Minecraft versions you can use RetroMCP!

RetroMCP is a rewrite of MCP that adds support for many different older versions of Minecraft that were never supported by MCP. To get started head over to the RetroMCP GitHub and download the latest release. Make sure you have Java 8 (or higher) installed in order to run and decompile Minecraft versions.

Code used within this project

  • Modified version of Lax1dude's OpenGL Emulator from 0.30-WebGL
  • Decompiled Minecraft Alpha v1.2.6 source code