[BE]Beryllium

A mod that rewrites Minecraft computational code in Rust

Beryllium

Beryllium is an Architectury-based multi-loader performance mod for Minecraft, targeting Fabric and NeoForge. It offloads batch coordinate distance calculations to a Rust native backend and automatically falls back to the Java reference implementation when the native library is unavailable, aiming to improve performance during large-scale entity queries while preserving vanilla behavior.

Key Features

  • Rust-accelerated batch distance calculations
  • Nearest player / nearest entity query optimization
  • Parallel computation for range filtering and sorting
  • TargetingConditions-related query optimization
  • AABB range check optimization
  • Automatic native library loading with automatic fallback to Java on failure

Commands

  • /beryllium native: View the native backend loading status
  • /beryllium distance: Run a batch distance calculation example

Compatibility

  • Minecraft 1.21.1
  • Java 21
  • Fabric
  • NeoForge

Notes

Beryllium adopts a "shared core + thin platform adapter layers" architecture. Business logic, commands, and fallback code reside in the shared module, while platform-specific entry points are adapted separately for Fabric and NeoForge. If the native library fails to load, the mod can still run normally through the Java reference implementation.

The [BE]Beryllium Team

profile avatar
  • 1
    Projects
  • 2
    Downloads