Skip to content
mdmrkPublic

About

Minecraft Beta 1.7.3 rewritten from scratch in Zig

Resources

Stars

39 stars

Watchers

0 watching

Forks

Latest commit

 

History

514 Commits

Folders and files

Repository files navigation

Rosebed

license ci

Minecraft Beta 1.7.3 rewritten in Zig, with a client and a dedicated server. It is a port of the original game's decompiled source, obtained with RetroMCP-Java, and matches it: same behavior, same worlds from the same seed, and multiplayer that works with it.

Important

The whole game is implemented. Anything that behaves differently from the real b1.7.3 is a bug. If you find one, open an issue saying what you did and what the original does instead.

Index

Play

Play in the browser

Or download a build:

Platform Stable Nightly
Linux (x86_64) tar.gz tar.gz
Windows (x86_64) zip zip
macOS (arm64) tar.gz tar.gz
Web tar.gz tar.gz
Android (arm64) apk apk
iOS (arm64) ipa ipa
./rosebed          # client
./rosebed-server   # server

Server options:

Option Default Description
--port <n> 25565 Port to listen on
--world <name> world Save folder
--seed <n> random Seed for a new world
--difficulty <name> easy peaceful, easy, normal, hard
--pvp <bool> true Whether players can hurt each other
--ticks <n> Stop after this many ticks

Extras not in b1.7.3

  • Chat and commands in single player: /help, /give, /tp, /time, /weather, /fill, /freecam, ...
  • Chat input editing (history, ctrl+backspace, paste) and a chat log you can scroll back through.
  • A fullscreen option in Video Settings (vanilla only has F11).
  • Optional mipmaps and anisotropic filtering in Video Settings, off by default.
  • Touch controls on Android and iOS: fixed, floating or d-pad movement, a minimal button layout, and auto-jump.
  • Gamepad support on every platform.

Build

You need Zig 0.17.0.

zig build fetch-assets      # once: downloads the game assets
zig build -Doptimize=fast   # builds into zig-out/bin

Other commands:

zig build run                # run the client
zig build run-server         # run the server
zig build test               # run the tests
zig build bench -Doptimize=fast   # time world generation, meshing and ticks
zig build run-server -- --port 25566   # pass arguments after --

Debug builds (plain zig build) may be too slow to play.

Web

You need emscripten and a patched copy of the Zig standard library:

cp -r "$(zig env | sed -n 's/^ *\.lib_dir = "\(.*\)",$/\1/p')" ziglib
chmod -R u+w ziglib
patch -p1 -d ziglib < .github/zig-emscripten.patch

sysroot="$(em-config CACHE)/sysroot"
ZIG_LIB_DIR="$PWD/ziglib" zig build -Dtarget=wasm32-emscripten -Doptimize=fast \
  --sysroot "$sysroot" -Demscripten-sysroot="$sysroot"

The site ends up in zig-out/www.

Android

You need the Android NDK, the Android SDK (with build-tools and a platform), zip and keytool.

zig build fetch-android-sdl   # once: downloads SDL3
zig build -Dtarget=aarch64-linux-android -Doptimize=fast \
  -Dandroid-ndk="$ANDROID_NDK_HOME" -Dandroid-sdk="$ANDROID_HOME"

If ANDROID_NDK_HOME and ANDROID_HOME are set, you can leave out the two -D options.

iOS

You need macOS with Xcode, zip, and a patched copy of the Zig standard library:

cp -r "$(zig env | sed -n 's/^ *\.lib_dir = "\(.*\)",$/\1/p')" ziglib
chmod -R u+w ziglib
patch -p1 -d ziglib < .github/zig-ios.patch

zig build fetch-ios-sdl   # once: downloads SDL3
ZIG_LIB_DIR="$PWD/ziglib" zig build -Dtarget=aarch64-ios -Doptimize=fast

The iPhoneOS SDK is found with xcrun; pass -Dios-sdk=<path> if that fails.

License

GPLv3, see LICENSE. Not affiliated with Mojang or Microsoft.

About

Minecraft Beta 1.7.3 rewritten from scratch in Zig

Resources

Stars

39 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages