promotional bannermobile promotional banner

SimuLib (shader-based visual simulation)

SimLib is a visual simulation library for Minecraft Forge 1.20.1. It adds fire, smoke, colored smoke, water, light and light gradients. Everything is generated by shaders, with no textures at all.
2026-11-29_17.14.49.png

2026-11-29_17.14.49.png

2026-11-29_17.18.37.png

2026-11-29_17.18.37.png

2026-11-29_17.19.28.png

2026-11-29_17.19.28.png

2026-11-29_17.21.59.png

2026-11-29_17.21.59.png

2026-11-29_17.16.53.png

2026-11-29_17.16.53.png

Description

SimLib

SimLib is a visual simulation library for Minecraft Forge 1.20.1. It adds fire, smoke, colored smoke, water, light and light gradients. Everything is generated by shaders, with no textures at all.

The mod adds no blocks or items. It is mainly a dependency for other mods, similar to how GeckoLib works for animations. It also includes a /simulation command so you can test the effects in game.

Install on both client AND server.
Requirements: Minecraft 1.20.1, Forge 47.x, Java 17.


Simulations

Type Description
fire Flames with buoyancy, turbulence and a temperature gradient. Also spawns smoke and a glow.
smoke Smoke that spreads out, billows, reacts to a light wind and bounces off blocks.
colored_smoke Same as smoke, in any color you choose.
water Jet of droplets with gravity, ground splashes and mist.
light Pulsing glow with rays and fireflies.
light_gradient A 1-block-wide light plane attached to a block face. Colored at the bottom, transparent at the top.

The /simulation command

It requires OP level 2 (or cheats enabled in singleplayer).

text
<button class="inline-flex items-center justify-center gap-2 whitespace-nowrap transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ring-offset-2 focus-visible:ring-offset-surface-primary disabled:pointer-events-none disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 text-sm text-interactive-active hover:text-interactive-normal active:text-text-tertiary font-normal relative rounded-lg p-[6px]" type="button" data-state="closed" data-slot="tooltip-trigger"></button>
/simulation <type> [x y z] [options]
/simulation <type> with <options>
/simulation all
/simulation help
  • Without coordinates, the simulation appears on the block you are looking at (up to 40 blocks away).
  • With with, you set options without giving coordinates.
  • By default it lasts 10 seconds.
  • all spawns every type side by side.

Options

Options are written as key=value, separated by spaces, in any order.

Option Alias Value Effect
seconds s, time 1 to 600 Duration
scale   0.05 to 20 Size (height in blocks for light_gradient)
intensity i 0.05 to 10 Particle density / brightness
dir direction up, down, north, south, east, west or x,y,z Direction of the effect
delta d d or dx,dy,dz Random spawn area (±blocks per axis, like /particle)
color c #rrggbb Color

Examples

text
<button class="inline-flex items-center justify-center gap-2 whitespace-nowrap transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ring-offset-2 focus-visible:ring-offset-surface-primary disabled:pointer-events-none disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 text-sm text-interactive-active hover:text-interactive-normal active:text-text-tertiary font-normal relative rounded-lg p-[6px]" type="button" data-state="closed" data-slot="tooltip-trigger"></button>
/simulation fire
/simulation smoke ~ ~1 ~ dir=north
/simulation colored_smoke ~ ~1 ~ seconds=15 color=#00ffcc
/simulation smoke ~ ~1 ~ dir=0,0,-2 delta=0.3,0,0.3
/simulation water with dir=0,1,0.5 seconds=5
/simulation fire 100 64 -20 dir=east scale=2
/simulation light_gradient 100 64 -20 dir=east color=#ffffff
/simulation light_gradient with dir=south color=#ff8800 scale=2 seconds=30

Notes on direction

  • Without dir: smoke floats freely and turbulently.
  • With dir (even up): smoke shoots out as a directed jet.
  • The vector's length sets the speed: dir=north gives normal speed, dir=0,0,-2 goes twice as fast.
  • Fire: the flame leans toward the given direction.
  • Water: ballistic trajectory in the given direction.
  • light_gradient: the direction is the block face (east, west, north or south). The gradient is attached to the edge of the block at those coordinates, from y to y + scale.

Using SimLib in your mod (developers)

1. Add the dependency

With a local jar: put simlib-1.0.0.jar in your project's libs/ folder, then in build.gradle:

gradle
<button class="inline-flex items-center justify-center gap-2 whitespace-nowrap transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ring-offset-2 focus-visible:ring-offset-surface-primary disabled:pointer-events-none disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 text-sm text-interactive-active hover:text-interactive-normal active:text-text-tertiary font-normal relative rounded-lg p-[6px]" type="button" data-state="closed" data-slot="tooltip-trigger"></button>
repositories {
    flatDir { dir 'libs' }
}

dependencies {
    implementation fg.deobf("com.simlib:simlib:1.0.0")
}

With CurseMaven:

gradle
<button class="inline-flex items-center justify-center gap-2 whitespace-nowrap transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ring-offset-2 focus-visible:ring-offset-surface-primary disabled:pointer-events-none disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 text-sm text-interactive-active hover:text-interactive-normal active:text-text-tertiary font-normal relative rounded-lg p-[6px]" type="button" data-state="closed" data-slot="tooltip-trigger"></button>
repositories {
    maven { url "https://cursemaven.com" }
}

dependencies {
    implementation fg.deobf("curse.maven:simlib-[PROJECT_ID]:[FILE_ID]")
}

Then declare the dependency in your mods.toml:

toml
<button class="inline-flex items-center justify-center gap-2 whitespace-nowrap transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ring-offset-2 focus-visible:ring-offset-surface-primary disabled:pointer-events-none disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 text-sm text-interactive-active hover:text-interactive-normal active:text-text-tertiary font-normal relative rounded-lg p-[6px]" type="button" data-state="closed" data-slot="tooltip-trigger"></button>
[[dependencies.yourmodid]]
    modId="simlib"
    mandatory=true
    versionRange="[1.0.0,)"
    ordering="AFTER"
    side="BOTH"

2. Spawn a simulation

Everything goes through SimLibApi.spawn(level, params):

Java
<button class="inline-flex items-center justify-center gap-2 whitespace-nowrap transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ring-offset-2 focus-visible:ring-offset-surface-primary disabled:pointer-events-none disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 text-sm text-interactive-active hover:text-interactive-normal active:text-text-tertiary font-normal relative rounded-lg p-[6px]" type="button" data-state="closed" data-slot="tooltip-trigger"></button>
import com.simlib.api.SimLibApi;
import com.simlib.api.SimulationParams;
import com.simlib.api.SimulationType;
  • Server side: a packet is sent to players within 128 blocks.
  • Client side: the simulation runs locally.

SimulationParams is immutable. Each method returns a modified copy:

Method Purpose
SimulationParams.of(type, pos) Creates params with default values
.direction(Vec3) Direction (and speed via its length)
.delta(Vec3) Random spawn area
.duration(int ticks) Duration in ticks (20 = 1 s)
.scale(float) Size
.intensity(float) Density / brightness
.color(int rgb) Color 0xRRGGBB
.at(Vec3) Changes the position

3. Examples

Muzzle smoke on firing (server):

Java
<button class="inline-flex items-center justify-center gap-2 whitespace-nowrap transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ring-offset-2 focus-visible:ring-offset-surface-primary disabled:pointer-events-none disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 text-sm text-interactive-active hover:text-interactive-normal active:text-text-tertiary font-normal relative rounded-lg p-[6px]" type="button" data-state="closed" data-slot="tooltip-trigger"></button>
SimLibApi.spawn(level, SimulationParams.of(SimulationType.SMOKE, muzzlePos)
        .direction(player.getLookAngle())
        .duration(30)
        .scale(0.4f)
        .intensity(1.5f)
        .color(0x888888));

Short light flash:

Java
<button class="inline-flex items-center justify-center gap-2 whitespace-nowrap transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ring-offset-2 focus-visible:ring-offset-surface-primary disabled:pointer-events-none disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 text-sm text-interactive-active hover:text-interactive-normal active:text-text-tertiary font-normal relative rounded-lg p-[6px]" type="button" data-state="closed" data-slot="tooltip-trigger"></button>
SimLibApi.spawn(level, SimulationParams.of(SimulationType.LIGHT, muzzlePos)
        .duration(4)
        .scale(1.2f)
        .color(0xFFD27A));

Light gradient on the east face of a block:

Java
<button class="inline-flex items-center justify-center gap-2 whitespace-nowrap transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ring-offset-2 focus-visible:ring-offset-surface-primary disabled:pointer-events-none disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 text-sm text-interactive-active hover:text-interactive-normal active:text-text-tertiary font-normal relative rounded-lg p-[6px]" type="button" data-state="closed" data-slot="tooltip-trigger"></button>
SimLibApi.spawn(level, SimulationParams.of(SimulationType.LIGHT_GRADIENT, new Vec3(100, 64, -20))
        .direction(new Vec3(1, 0, 0))   // east
        .color(0xFFFFFF)
        .duration(100));

Water jet:

Java
<button class="inline-flex items-center justify-center gap-2 whitespace-nowrap transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ring-offset-2 focus-visible:ring-offset-surface-primary disabled:pointer-events-none disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 text-sm text-interactive-active hover:text-interactive-normal active:text-text-tertiary font-normal relative rounded-lg p-[6px]" type="button" data-state="closed" data-slot="tooltip-trigger"></button>
SimLibApi.spawn(level, SimulationParams.of(SimulationType.WATER, pos)
        .direction(new Vec3(0, 1, 0.5))
        .duration(100));

Aura that follows an entity (client side only):

Java
<button class="inline-flex items-center justify-center gap-2 whitespace-nowrap transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring ring-offset-2 focus-visible:ring-offset-surface-primary disabled:pointer-events-none disabled:opacity-50 [&amp;_svg]:pointer-events-none [&amp;_svg]:shrink-0 text-sm text-interactive-active hover:text-interactive-normal active:text-text-tertiary font-normal relative rounded-lg p-[6px]" type="button" data-state="closed" data-slot="tooltip-trigger"></button>
ClientSimulationManager.spawn(
    SimulationParams.of(SimulationType.COLORED_SMOKE, player.position())
        .duration(200)
        .color(0xAA55FF)
        .scale(0.6f),
    () -> player.isAlive() ? player.position().add(0, 1, 0) : null);

The Supplier<Vec3> provides the position every tick. If it returns null, emission stops. spawn(...) returns a Simulation object on which you can call .stop().

ClientSimulationManager must only be called from client-side code. Use DistExecutor or a client-only class so it is not loaded on a dedicated server.

Developer notes

  • Without .direction(...), the direction is zero and smoke floats freely. As soon as you call .direction(...), even with (0,1,0), you get a directed jet.
  • If you build new SimulationParams(...) directly, you must provide every field, including delta. With SimulationParams.of(...), nothing breaks.
  • Fire automatically spawns smoke and a glow.
  • Available types: FIRE, SMOKE, COLORED_SMOKE, WATER, LIGHT and LIGHT_GRADIENT.

Technical details and limitations

  • The simulation runs client side. The server only sends a "start simulation" packet.
  • Effects are rendered with custom core shaders, after vanilla particles. A global cap of 6000 particles keeps performance good.
  • The light type is a visual effect. It does not actually light up blocks.
  • Compatibility with shader packs (Oculus / Iris) is not guaranteed: they may alter how custom core shaders are rendered.

 

License: All Rights Reserved

SimuLib (shader-based visual simulation) Team

profile avatar
  • 4
    Projects
  • 2.1K
    Downloads

Bah frérot, qui lit des bios Curseforge ? Bref si tu lis ça bonne journée ^^