Leaked version of Minecraft Legacy Console Edition. Not for commercial purposes
Find a file
2026-04-09 12:23:45 +04:00
.devcontainer Dockerfile: change to use llvm/clang toolchain 2026-04-08 02:09:54 -05:00
.github fix: actually fix nightly CI (#398) 2026-04-04 17:05:34 -05:00
.github-assets Removed the now unused button images. 2026-04-08 17:24:53 +00:00
docs rename Minecraft.Assets to resources 2026-04-01 13:13:27 -05:00
scripts Revert "Initial Android Support" 2026-04-05 21:16:01 +04:00
subprojects refactor: convert DLC string data directly to UTF-8 w/ simdutf 2026-04-08 01:41:34 -05:00
targets fix: properly detect/skip UTF-8 text modifier character 2026-04-08 01:41:56 -05:00
.clang-format run clang-format to order includes, fix include ordering errors 2026-04-01 15:59:19 -05:00
.git-blame-ignore-revs add a blamignore for the last 3 commits 2026-03-13 17:12:26 -05:00
.gitattributes chore: add .gitattributes for LF normalization 2026-03-09 22:01:02 +11:00
.gitignore rename minecraft folder to `targets 2026-04-01 13:27:58 -05:00
.gitmodules Added Doxygen + GitHub Pages 2026-03-13 23:00:35 -04:00
CONTRIBUTING.md feat: add clang-format config and formatting workflows 2026-03-13 15:09:54 -05:00
flake.lock Update Inputs. 2026-04-09 09:50:56 +02:00
flake.nix Fix Nix Package. 2026-04-05 10:37:12 +02:00
meson.build refactor: convert DLC string data directly to UTF-8 w/ simdutf 2026-04-08 01:41:34 -05:00
meson.options new culler 2026-03-29 20:56:00 -05:00
README.md Update README.md 2026-04-08 14:58:30 +04:00

Logo 4JCraft


4JCraft is a modified version of the Minecraft Console Legacy Edition, aimed at porting old Minecraft to different platforms (such as Linux, Android, Emscripten, etc.) and refactoring the codebase to improve organization and use modern C++ features.

Scope & Platform Support

At the moment, we're aiming to support the following platforms:

Please note that these percentages are estimates and do not necessarily reflect the final playability of the game on each platform.

  • Linux (~90%)
  • Emscripten (~10%) [Check the Emscripten Branch]
  • macOS (not started) [No official support but people have been able to run the game on MacOS]
  • iOS (not started)
  • Android (~35%)

Warning

There is NO Windows support, for that, go to smartcmd/MinecraftConsoles.

All efforts are focused towards a native Linux port, OpenGL rendering pipeline, and modernizing the existing LCE codebase/tooling to make future platform ports easier.

Windows64 and other platforms originally supported by LCE are currently unsupported, since the original Visual Studio tooling has been stripped from this repository and replaced with our own.


Join our community:

Building (Linux)

Prerequisites

System Libraries

Debian/Ubuntu:

sudo apt-get install -y build-essential libsdl2-dev libgl-dev libglu1-mesa-dev libpthread-stubs0-dev

Arch/Manjaro:

sudo pacman -S base-devel pkgconf sdl2-compat mesa glu

Fedora/Red Hat/Nobara:

sudo dnf install gcc gcc-c++ make SDL2-devel mesa-libGL-devel mesa-libGLU-devel openssl-devel

Toolchain

This project requires a C++23 compiler with full standard library support.

If your distro ships GCC 15+, you're good - just use the system compiler:

meson setup build

If your distro ships an older GCC: install LLVM with libc++ and use the provided toolchain file:

# Debian/Ubuntu
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 20
sudo apt install libc++-20-dev libc++abi-20-dev
# Fedora/RHEL (if needed)
sudo dnf install clang lld libcxx-devel libcxxabi-devel

Then configure with the LLVM native file (see Configure & Build below).

Meson + Ninja

Install Meson and Ninja:

pip install meson ninja

Or follow the Meson quickstart guide.

Docker (alternative)

If you don't want to install dependencies, use the included devcontainer. Open the project in VS Code with the Dev Containers extension, or build manually:

docker build -t 4jcraft-dev .devcontainer/
docker run -it --rm -v $(pwd):/workspaces/4jcraft -w /workspaces/4jcraft 4jcraft-dev bash

Configure & Build

# If using system GCC 15+
meson setup build

# If using LLVM/libc++
meson setup --native-file ./scripts/llvm_native.txt build

# Compile
meson compile -C build

The binary is output to:

./build/targets/app/Minecraft.Client

Clean

To perform a clean compilation:

meson compile --clean -C build

...or to reconfigure an existing build directory:

meson setup --native-file ./scripts/llvm_native.txt build --reconfigure

...or to hard reset the build directory:

rm -r ./build
meson setup --native-file ./scripts/llvm_native.txt build

Running

Game assets are automatically copied to the build output directory during compilation. Run from that directory:

cd build/targets/app
./Minecraft.Client

View the online documentation here.


Generative AI Policy

Submitting code to this repository authored by generative AI tools (LLMs, agentic coding tools, etc...) is strictly forbidden (see CONTRIBUTING.md). Pull requests that are clearly vibe-coded or written by an LLM will be closed. Contributors are expected to both fully understand the code that they write and have the necessary skills to maintain it.