Skip to content

Ambient Engine

A library mod that makes it easy to modify and add environmental effects to Minecraft.

<1,000 downloads Updated

No ratings yet

Be the first to rate it.

Rate it

Community listing page

Community listing page, reviews may not be monitored by the author.

About

Description

Banner

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.

  1. Add Modrinth's Maven repository.

  2. Depend on maven.modrinth:<project id>:<version id>.

  3. Use modImplementation on Loom and ForgeGradle.

  4. Implement AmbientPlugin.

    Inside register, declare config keys and register one AmbientEffect. Registration closes at the end of startup.

  5. Fabric discovers the class from the ambient-engine entrypoint in fabric.mod.json. Forge and NeoForge discover it from META-INF/services/se.miljo.beef.ambient.api.AmbientPlugin, one class name per line. Use one path. Both paths register the effect twice.

  6. Depend on the mod id ambient-engine. On Forge and NeoForge, set side = "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.