| .github/workflows | ||
| .github-assets | ||
| 4J.Input | ||
| 4J.Profile | ||
| 4J.Render | ||
| 4J.Storage | ||
| Minecraft.Client | ||
| Minecraft.World | ||
| scripts | ||
| x64 | ||
| .gitignore | ||
| CONTRIBUTING.md | ||
| flake.lock | ||
| flake.nix | ||
| meson.build | ||
| README.md | ||
| struct | ||
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.)
Join our community:
- Discord (Not currently available): https://discord.gg/zFCwRWkkUg
- Steam: https://steamcommunity.com/groups/4JCraft
Planned platforms to be supported:
- Linux (~85%)
- Emscripten (not started)
- PS3
- macOS (not started)
- iOS (not started)
- Android (not started)
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 \
libpthread-stubs0-dev
On Arch/Manjaro:
sudo pacman -S base-devel gcc pkgconf cmake glfw-x11 mesa openal libvorbis glu
If you are on wayland, you may swap glfw-x11 to glfw-wayland for native wayland windowing instead of xwayland.
Configure & Build
Important
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.
This project uses the Meson (with Ninja) as a build system and lld as a linker.
Install Tooling
-
Follow this Quickstart guide for installing or building Meson and Ninja on your respective distro.
-
Install the
lldlinker using your distro's package manager. This may be distributed as part of an LLVM toolchain.Debian/Ubuntu:
sudo apt-get install lldRedHat/Fedora:
sudo dnf install lldArch/Manjaro:
sudo pacman -S lld
Configure & Build
# 1. Configure a build directory (we'll name it `build`)
meson setup build
# 2. Compile the project
meson compile -C build
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 must obtain a copy of a Windows64 build Common folder containing compiled media assets. The Common folder should be placed at the current working directory when you run the Minecraft.Client executable.
At this time, we don't have the necessary tools to build game resources without Visual Studio, so for the time being these can be obtained from the latest MinecraftConsoles nightly.
- Download
LCEWindows64.zipand extract. - Copy the
Commondirectory to your current working directory. - Run
Minecraft.Client.