跳到正文
DEV Community· GitHubOpenSource·· 3 小時前AI 評分54

Horizon 以 Rust 從頭實作 Minecraft Java Edition 開源引擎

Play Minecraft in Rust - Open Source Engine

AI 導讀

Horizon 是以 Rust 從頭實作的 Minecraft Java Edition 獨立引擎,採用 Vulkan、Wgpu 等圖形 API,並透過自訂啟動器從用戶現有安裝準備遊戲素材。它支援原版世界生成、生物、紅石和指令,也可透過 horizon-ctl 程式化控制遊戲。項目以 281 個差異測試組核對原版相容性,目前仍追蹤數百項相容差距。

正文

Cover image for Play Minecraft in Rust - Open Source Engine

GitHubOpenSource

TL;DR: Horizon implements Minecraft Java Edition from scratch in Rust, sitting on top of modern graphics APIs like Vulkan and Wgpu while relying on a custom launcher to prepare game assets from an existing user installation.
Best for: Rust developers and Minecraft enthusiasts wanting native performance and programmatic agent control.
Repository snapshot: ⭐ 6 226 stars · 🍴 854 forks · Rust · MIT
Daily picks: Follow GitHub Open Source on Telegram


What it is

Horizon is an independent implementation of Minecraft Java Edition written from scratch in Rust. It bypasses the Java virtual machine to deliver native performance, advanced rendering features, and a programmatic control interface.

How it works

The engine relies on modern graphics stacks like Vulkan and Wgpu for rendering. It uses a custom launcher to prepare game assets from an existing user installation and employs 281 differential harnesses to check parity against the vanilla game.

Key features

  • Run vanilla world generation, mobs, redstone, and commands without Java
  • Render distant terrain up to 1024 chunks using modern graphics APIs
  • Control the game programmatically or over control interfaces using horizon-ctl
  • Import CurseForge and Modrinth modpacks containing content and data packs
  • Manage and host servers locally or on a VPS without Java dependencies

Getting started

Clone the repository from GitHub, ensure you have a Rust toolchain installed, and use the Horizon launcher to prepare your game assets from an existing legitimate installation.

When not to use it

Do not use this if you expect complete zero-bug compatibility today, as the project is still tracking hundreds of open parity gaps with the original Java release.


Discuss

Which modpack would you test first on a non-JVM engine?

Curated from the repository README and metadata. No hands-on test is claimed; evaluate it in a sandbox before production use.

來源:DEV Community · dev.to