Description
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.
Material Rule Compiler is part of Reverie Projects, check out our other mods as well.
How does this mod work?
Material rule compiler compiles material rules into a simple bytecode and then into method handles, which the jvm automatically compiles into jvm bytecode on continued execution.
How fast is it?
About 30-40% decrease in surface builder execution times.
Socials
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!


