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.
TargetingConditions-related query optimization/beryllium native: View the native backend loading status/beryllium distance: Run a batch distance calculation example1.21.121Beryllium 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.