Leaked version of Minecraft Legacy Console Edition. Not for commercial purposes https://discord.gg/2s2JzXCf8k
  • Arc 61.7%
  • PLSQL 20.8%
  • C++ 16.4%
  • C 1%
Find a file
JuiceyDev 56245448d3
Merge pull request #160 from vekidev/patch-1
the biggest pr of them all
2026-03-10 10:37:46 +01:00
.devcontainer build(docker): add clang and lld for llvm compilation support 2026-03-08 22:39:41 +01:00
.github/workflows ci: build and bundle debug binary alongside release 2026-03-06 10:07:32 +01:00
.github-assets OH SHIT 2026-03-01 22:10:23 +04:00
4J.Input Merge branch 'dev' into refactor/untangle-assets-mess 2026-03-09 01:20:45 -05:00
4J.Profile refactor: rename Build -> Platform in Minecraft.World 2026-03-08 21:33:18 -05:00
4J.Render chore: add comments for 4jcraft-added functionality, undo #135 2026-03-09 19:46:54 -05:00
4J.Storage refactor: rename Build -> Platform in Minecraft.World 2026-03-08 21:33:18 -05:00
Minecraft.Assets Add platform archive source arrays 2026-03-09 13:25:38 +00:00
Minecraft.Client chore: add comments for 4jcraft-added functionality, undo #135 2026-03-09 19:46:54 -05:00
Minecraft.World chore: add comments for 4jcraft-added functionality, undo #135 2026-03-09 19:46:54 -05:00
scripts Fix error where rmtree is called in an awkward setup 2026-03-09 17:56:18 +00:00
.gitattributes chore: add .gitattributes for LF normalization 2026-03-09 22:01:02 +11:00
.gitignore fix new folder 2026-03-08 23:37:39 +01:00
CONTRIBUTING.md docs: clarify comment policy 2026-03-09 20:35:02 -05:00
flake.lock added flake for reproducible builds on NixOS 2026-03-03 05:55:42 +01:00
flake.nix Add missing python3 dependency to flake.nix 2026-03-09 20:51:07 +01:00
meson.build fix: adjust compiler options to not silence warning, remove likely AI-written comments 2026-03-09 10:07:30 -05:00
README.md the biggest commit of them all 2026-03-10 10:27:24 +01:00

Logo 4JCraft

Ported version of Minecraft Legacy Console edition to other systems


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

Join our community:

Scope & Platform Support

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

  • Linux (~85%, rough estimate)
  • Emscripten (not started)
  • macOS (not started)
  • iOS (not started)
  • Android (not started)

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.


Building (Linux)

Dependencies

Install the following packages before building (Debian/Ubuntu names shown):

sudo apt install \
  build-essential cmake \
  libglfw3-dev libgl-dev libglu1-mesa-dev \
  libopenal-dev libvorbis-dev \
  libpng-dev libpthread-stubs0-dev

Arch/Manjaro

sudo pacman -S base-devel gcc pkgconf cmake glfw-x11 mesa openal libvorbis glu

Tip

If you are on wayland, you may swap glfw-x11 to glfw-wayland for native wayland windowing instead of xwayland.

Fedora/Red Hat/Nobara

sudo dnf in gcc gcc-c++ make cmake glfw-devel mesa-libGL-devel mesa-libGLU-devel openal-soft-devel libvorbis-devel libpng-devel openssl-devel

Docker

If you don't want to deal with installing dependencies, you can use the included devcontainer. Open the project in VS Code with the Dev Containers extension and it will set everything up for you - GCC 15, Meson, Ninja, lld, and all the libraries.

Alternatively, you can build and use the container manually:

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

Configure & Build

This project uses the Meson build system (with Ninja).

Important

If you are using GCC, then GCC 15 or newer is currently required to build this project. Ubuntu installations in particular may have older versions preinstalled, so verify your compiler version with gcc --version.

Install Tooling

Follow this Quickstart guide for installing or building Meson and Ninja on your respective distro.

Configure & Build

# 1. Configure a build directory (we'll name it `build`)
meson setup build

# 2. Compile the project
meson compile -C build

Tip

For the fastest compilation speeds, you may want to use the compilers and linkers provided by an LLVM toolchain (clang/lld) over your system compiler and linker. To do this, install clang and lld, and configure your build using the llvm_native.txt nativescript in /scripts:

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

...or if you've already configured a build directory:

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

The binary is output to:

./build/Minecraft.Client/Minecraft.Client

Clean

To perform a clean compilation:

meson compile --clean -C build

...or to reconfigure an existing build directory:

meson setup build --reconfigure 

...or to hard reset the build directory:

rm -rf ./build
meson setup build

Running

In order to run the compiled binary, you have a compiled copy of the game's assets in your current working directory. These assets are automatically copied to the Minecraft.Client folder in your build directory. To run the game, your current working directory must be in this folder.

cd build/Minecraft.Client
./Minecraft.Client

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.