Описание
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](https://bugs.mojang.com/browse/MC-55596).
**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](https://modrinth.com/organization/reverie), 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
[](https://discord.gg/RFSmd7debX) [](https://mastodon.social/@ZenXArch) [](https://matrix.to/#/#zenxarchs-modding-server:gitter.im)
## Credits
- [Ishland](https://modrinth.com/user/ishland) for suggesting method handle api
- [Taumc](https://modrinth.com/organization/taumc) members for discussing compat and surface rules
- [DJ](https://modrinth.com/user/ThatDeeJay) for testing and benchmarking
## Reverie Projects
Consider joining the [Reverie Projects](https://discord.gg/6pRkrYxbGW) 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!