
Ambient Engine is a client-side library for Fabric, Forge, and NeoForge on 1.18.2 through 26.3. Your mod registers an effect. The engine runs it: vanilla weather, block surfaces, a shared particle budget, and camera-relative translucent quads.
The public API lives in se.miljo.beef.ambient.api and contains no Fabric, Forge, or NeoForge types. The engine does not replace Minecraft's weather, or any other systems, and does not ship premade environmental effects for example.
The API reference is the documentation site: https://im-theslimeguy.github.io/ambient-engine/
Quick start
For more details, refer to Modrinth's description when viewing a release on the Versions tab.
Add Modrinth's Maven repository.
Depend on
maven.modrinth:<project id>:<version id>.Use
modImplementationon Loom and ForgeGradle.Implement
AmbientPlugin.Inside
register, declare config keys and register oneAmbientEffect. Registration closes at the end of startup.Fabric discovers the class from the
ambient-engineentrypoint infabric.mod.json. Forge and NeoForge discover it fromMETA-INF/services/se.miljo.beef.ambient.api.AmbientPlugin, one class name per line. Use one path. Both paths register the effect twice.Depend on the mod id
ambient-engine. On Forge and NeoForge, setside = "CLIENT".
Import se.miljo.beef.ambient.api only. se.miljo.beef.ambient.client is the implementation and can change without notice.
| You need | Type |
|---|---|
| Startup registration | AmbientPlugin |
| One effect | AmbientEffect |
| Weather, time, place, light | Environment |
| Block shape, sky, exposure | Surfaces |
| Vanilla particles | ParticleScheduler |
| Textured quads | AmbientDraw |
| Saved settings | ConfigBuilder, written to config/ambient-engine.json |
| Frame budget | PerformanceView |
There is a debug overlay. With F6 you can open the Debug overlay, and with F7 the settings. These only turn on when debugKeys is true in the config (config/ambient-engine.json). The keys are bound at startup.