mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-01 00:23:40 +00:00
| .github-assets | ||
| 4J.Input | ||
| 4J.Profile | ||
| 4J.Render | ||
| 4J.Storage | ||
| CMake | ||
| Minecraft.Client | ||
| Minecraft.World | ||
| scripts | ||
| x64 | ||
| .gitignore | ||
| CMakeLists.txt | ||
| CONTRIBUTING.md | ||
| flake.lock | ||
| flake.nix | ||
| MinecraftConsoles.sln | ||
| 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, swap glfw-x11 to glfw-wayland, but its doesn't matter cuz xwayland got yourself covered
Configure & Build
# 1. Configure (only needed once, or after CMakeLists changes)
cmake .
# 2. Build (use -jN with your core count)
make -j$(nproc)
The binary is output to:
Linux/Debug/Minecraft.Client
Clean
make clean
To fully reset the CMake configuration (removes cache + generated Makefiles):
rm -rf CMakeCache.txt CMakeFiles cmake_install.cmake Makefile
then re-run:
cmake . && make -j$(nproc)
Running
(this is temp)
./Linux/Debug/Minecraft.Client
(todo refactor)