Language

Material Rule Compiler

Material Rule Compiler

Modrinth

A vanilla worldgen optimization mod. Works my compiling material rules to bytecode and optimizing material rules.

53.9k downloads 14 followers updated 10h ago
latest v1.1.0+26.2 Modrinth
Fabric Quilt 26.2 – 26.3 OptimizationWorldgen

Keep Android Open | Contact Regulators to stop Google's lockdown of Android

Material Rule Compiler is an experimental worldgen optimization mod, that works to improve surface builder times by compiling material rules into static functions.

Does the mod change world generation? The mod maintains vanilla parity, including with any datapacks. Do keep in mind, Vanilla non-determinism.

Can I use custom worldgen mods with this? Yes, the mod will fallback to normal execution where it encounters modded content. Though, it is possible to have mod incompatibilites. I do test against major worldgen mods like terratonic etc.

Note Fast Noise is needed for optimal speed

Material Rule Compiler is part of Reverie Projects, check out our other mods as well.

Available on codeberg Available on curseforge Available on modrinth Support me on Ko-Fi

How does this mod work?

Material rule compiler compiles material rules into classfiles using asm library, optimized for every unique set of biomes. It also reduces allocations for random splitters in material rules and predicts biomes for material rules.

How fast is it?

About 30-40% decrease in surface builder execution times.

Socials

Chat with us on discord Chat with me on mastodon Chat with us on Gitter

Credits

  • Ishland for suggesting method handle api
  • Taumc members for discussing compat and surface rules
  • DJ for testing and benchmarking

Reverie Projects

Consider joining the Reverie Projects for sneak peeks and updates on development! By joining, you can:

  • Get installation help and technical support for alot of awesome projects
  • Get the latest updates about development
  • Talk with and collaborate with our team
  • And just hang out with the rest of our community!

Versions

Release
1.1.0+26.2
fabric, quilt · 26.2 · 10h ago
- backport 1.1.0
1.5k
Release
1.1.0+26.3
fabric, quilt · 26.3 · 13h ago
## Fixes: - revert depth based cutoff compile (fixes rare crashes) # Performance - only compile after a material rule is requested certain no. of times - pack…
2.4k
Release
1.0.0+26.2
fabric, quilt · 26.2 · 3d ago
- backport 1.0.0
4.3k
Release
1.0.0+26.3
fabric, quilt · 26.3 · 6d ago
We are stable now
11.1k
Beta
1.0.0-rc.3+26.3
fabric, quilt · 26.3 · 7d ago
- add max depth config entry - rename cache size config entry - speed up mod by limiting the depth of generated programs
295
Beta
1.0.0-rc.2+26.3
fabric, quilt · 26.3 · 8d ago
- reduce time spent inside sync blocks - speedup key gen a bit
168
Beta
1.0.0-rc.1+26.3
fabric, quilt · 26.3 · 10d ago
- First release candidate - Speed up class generation - compile all static conditions into a single class one time instead of generating every time
6.7k
Beta
1.0.0-beta.9+26.3
fabric, quilt · 26.3 · 11d ago
- fix water condition - reduce cache key size by 4x
294
Beta
1.0.0-beta.7+26.2
fabric, quilt · 26.2 · 14d ago
- rework class gen to be faster (to generate and run) - known issue: probably high memory usage w/ lithostitched rules
6.6k
Beta
1.0.0-beta.7+26.3
fabric, quilt · 26.3 · 14d ago
- rework class generation to be faster (to generate and run) - known issues: lithostitched datapacks may cause ooms
7.9k
Beta
1.0.0-beta.6+26.2
fabric, quilt · 26.2 · 18d ago
- fix crash in production
404
Beta
1.0.0-beta.6+26.3
fabric, quilt · 26.3 · 18d ago
- fix crash in production
6.3k

Comments 0

No comments yet. Be the first to share your thoughts.

FAQ

How do I install Material Rule Compiler?

Download the file for your Minecraft version and loader from this page, then drop the .jar into your mods (or plugins) folder and launch the game.

Is Material Rule Compiler free?

Material Rule Compiler is free to download on Modgrid — we link straight to the official source, no paywall or bundled installer.

Which Minecraft versions does Material Rule Compiler support?

Works with Fabric, Quilt. Supports versions 26.2–26.3. See the download section on this page for the full list of supported versions and loaders.

Download Material Rule Compiler

Files are served directly from the original source. Modgrid does not host or modify them.