Mods

Obscura's Dynamic Lighting

Torches, lava buckets, blazes and burning mobs light up the world around them and the light moves with them, with every setting and its Nytheria value.

On this page (21)

Obscura's Dynamic Lighting is the mod that makes light sources move. Hold a torch and the cave around you is lit. Throw a torch and the light flies with it. A blaze lights the room it floats through. It is called Dynamic Lighting inside the game and in the file name, and Obscura's Dynamic Lighting on the mod list. Navrelis wrote it for Nytheria.

Quick facts

Version in the pack1.0.0 (file dynamiclighting-1.0.0.jar)
GameMinecraft 1.21.1, Fabric Loader 0.16.0 or newer, Java 21, Fabric API
Mod iddynamiclighting
SideClient only. The server does not need it, and it works in single player
Config fileconfig/dynamiclighting.json
Command/dynamiclighting opens the settings
LicenceMIT, Copyright 2026 navrelis

Why Nytheria has it#

A torch in your hand that really lights the way means you can walk through a dark cave or a night forest without stopping to place one. Lava buckets, nether stars and blaze rods shine too while you carry them, and fire-based mobs light the fights they take part in. It is one of the mods Navrelis made for the pack. It is listed with the pack's light group on Atmosphere & Visuals, and Caves, Ores & Mining mentions it as a helper in deep caves.

The light is cosmetic. It changes how the world is drawn on your screen and nothing else. It does not change the light level the game uses for mob spawning, crop growth or anything similar, so a torch in your hand will not keep monsters away.

Not a fork#

Dynamic Lighting is written from scratch under the MIT licence, and it is not a fork of another dynamic lights mod. It reads the same light data files that other mods already ship for LambDynamicLights, in the same folders and with the same shape, so those files work as they are. It does not provide LambDynamicLights' code API. A mod that only ships data files is fine, while a mod that calls that API directly finds nothing to call.

How the light behaves#

  • Light falls off in a straight line with distance. With the default range it loses 2 light levels per block, so a level 14 torch reaches 7 blocks. With the Long range it loses 1 per block, like a placed light.
  • Where lights overlap, the brightest one wins. Lights do not add up.
  • Dynamic light never lowers the light that is already there, never goes above 15 and does not light solid blocks.
  • Invisible mobs and spectators give no light. Your own player is the exception: your light keeps working while you are invisible.

What gives light#

Items#

This covers items you hold in either hand, wear in an armor or body slot, or carry in an Accessories or Trinkets slot. Dropped items, items in item frames, items on arrows and thrown items glow too. Every item that places a block gives the light of that block, up to 15. That covers torches, lanterns, glowstone, sea lanterns, jack o'lanterns, end rods and shroomlights. These items have their own values:

ItemLightGoes out in water
Torch14yes
Soul torch10yes
Campfire15yes
Soul campfire10yes
Fire charge10yes
Lava bucket15no
Nether star12no
Blaze rod10no
Glow berries10no
Blaze powder8no
Glow ink sac8no
Glowstone dust8no
Spectral arrow8no
Glow lichen7no
Magma cream6no
Prismarine crystals6no

The pack's jar holds 16 built-in item files for these values and one entity file for the Wildfire. The items that go out in water stay dark while your eyes are under water, or while a dropped item lies in water, if the option Water Sensitivity is on.

Mobs and other entities#

WhatLight
Any burning entity15
Living entity with the glowing outline10 (option Glowing Entities)
Blaze10
Magma cube8
Allay6
Glow squid10, off while it is dark after being hurt
EndermanThe light of the block it carries
Ignited creeper10 in Simple mode, 2 to 12 in Fancy mode as it swells
Primed TNT10 in Simple mode, 4 to 14 in Fancy mode as the fuse burns down
Fireball14, none in water
Small fireball12, none in water
Dragon fireball12
Wither skull8
Shulker bullet6
Firework rocket12
Lightning bolt15
End crystal12
Dropped item, item in a frame, arrow, thrown itemThe light of that item
Falling blockThe light of the block
MinecartThe light of the block it shows
Block display, item displayThe light of the block or item, unless the display has a brightness override
Wildfire from Friends&Foes (Fabric)10, or 4 when wet

Not in version 1.0.0: beacon beams, guardian lasers and particles do not give light.

Settings#

Nytheria uses the mod's defaults for every option. The pack's dynamiclighting.json holds exactly these values.

OptionConfig keyValuesDefaultNytheria
Modemodeoff, fastest, fast, fancyfancyfancy
Light Rangerangeshort, longshortshort
Own Lightself_lighttrue, falsetruetrue
Entity Lightsentity_lightstrue, falsetruetrue
Water Sensitivitywater_sensitivetrue, falsetruetrue
Glowing Entitiesglowing_entitiestrue, falsetruetrue
Creeper Lightcreeperoff, simple, fancysimplesimple
TNT Lighttntoff, simple, fancysimplesimple
(file only)disabled_entity_typeslist of entity ids[][]

What the options do:

  • Mode is the master switch and the update rate. Off removes all dynamic light and clears what was raised.
  • Light Range: Short loses 2 levels per block. Long loses 1 per block, reaches further and rebuilds more chunk sections.
  • Own Light: the items you hold and wear, and your player's other lights, light your surroundings.
  • Entity Lights: other players, mobs, dropped items and projectiles give light.
  • Water Sensitivity: torch, soul torch, campfire, soul campfire and fire charge go out under water.
  • Glowing Entities: living entities with the glowing outline give light.
  • Creeper Light and TNT Light: Simple shines steadily, Fancy grows brighter as the creeper swells or the fuse burns down.
  • disabled_entity_types: entity types that never give light, not even while burning. There is no screen for this list. minecraft:player switches off the light of every player, including you.

The three modes#

ModeMobs within 32 blocks of the camera are checkedChunk sections marked for rebuild per tick, at most
Fancyevery tick64
Fastevery 2nd tick32
Fastestevery 4th tick16

The limit drops when your frame rate is below 90 fps, down to a quarter of it at about 34 fps and below. Chunk sections that hold only air are never rebuilt. Between 32 and 64 blocks away a mob is checked half as often, and beyond 64 blocks a quarter as often.

Open the settings#

  1. Mod Menu: select Dynamic Lighting and press Configure.
  2. Command: type /dynamiclighting in a world. If you type it in chat, the screen opens when the chat closes. See Commands.
  3. Sodium: the mod adds a "Dynamic Lighting" page to Sodium's video settings. Changes there apply when you press Sodium's Apply button. Nytheria also has Reese's Sodium Options, and this page was not checked there.
  4. Key: "Toggle Own Light" in the Dynamic Lighting category of the controls screen switches the Own Light option on or off. In Nytheria it is on the O wheel: hold O and pick it. See Controls.

Changes in the mod's own screen and with the key apply at once. The screen has a Reset to Defaults button, which leaves disabled_entity_types alone.

The config file#

config/dynamiclighting.json is created with the defaults on the first start and written again when you change an option. Hand edits are read at the next start of the game. Each key is checked on its own: a missing key, a value of the wrong type or an unknown value falls back to the default for that key, and a line in the log names it. If the file is not a valid JSON object, it is renamed to dynamiclighting.json.broken, defaults are used, and a new file is written, so you can repair the old one.

json
{
  "mode": "fancy",
  "range": "short",
  "entity_lights": true,
  "self_light": true,
  "water_sensitive": true,
  "glowing_entities": true,
  "creeper": "simple",
  "tnt": "simple",
  "disabled_entity_types": []
}

Compatibility#

WithWhat happens
Sodium (0.8.x)Supported. Under Sodium, light moves in whole levels, because Sodium keeps four bits of block light. Without Sodium it changes in finer steps
Fabric's Indigo rendererCovered, for installs without Sodium
Accessories and Trinkets (Fabric)Items worn in their slots light up the player who wears them. Nytheria has both
Shader packs (Iris Shaders)Dynamic light is ordinary block light, so it has no colour of its own. A shader pack with its own hand-held light counts a torch twice, so switch that shader option off, or switch off Own Light
LambDynamicLights data filesRead as they are. The code API is not provided

Only mobs your client has loaded and draws can give light. For other players, held and worn items depend on what the server sends your client.

Performance#

The mod is built to cost little when nothing moves:

  • Looking up the light of a block takes no locks. It first asks whether any light exists at all, then whether the 16-block section is touched by one.
  • Mobs are scanned once per client tick. A light is published again only when it has moved far enough to change the picture, or when its brightness changed. A light that stands still costs nothing.
  • Chunk sections that need a rebuild are collected into one set per tick, nearest first, with a budget per tick. The budget is lowered when your frame rate is below 90.
  • Everything is dropped when you change level or disconnect.

If it costs you frames, switch Mode to Fast or Fastest, keep the Light Range on Short, and avoid the Fancy mode of Creeper Light and TNT Light in big fights. The mod's author gives no frame time figures, so try the modes on your own PC. For more on performance see Performance & Shaders.

For pack and mod authors#

Light values for other mods go into resource packs or mod jars as JSON files, in any namespace:

assets/<namespace>/dynamiclights/item/<name>.json
assets/<namespace>/dynamiclights/entity/<name>.json

These are client resources, not data pack files. They are read on every resource reload (F3 + T). An item file has a match (a vanilla item predicate with items, count, components or predicates) and a luminance from 0 to 15, with an optional water_sensitive. An entity file has a match with a type and optional flags and equipment, and a luminance that may be a number, a typed object or a list. A file with a problem is skipped on its own and named in the log, so one broken file never breaks the others. The full rules, the list of luminance types and the reasons for rejection are in the README on GitHub.

Credits#

  • Navrelis wrote Dynamic Lighting. Source and issue tracker: navrelis/DynamicLighting. Licence: MIT.
  • The data file format is the one used by LambDynamicLights, which is why the files other mods ship for it work here. Dynamic Lighting contains no code from it.

See also Credits.

FAQ#

Does a torch in my hand stop monsters from spawning?#

No. The light is cosmetic and only changes how the world is drawn. Place real torches or lights to stop spawns.

Why is the light jumpy under Sodium?#

Sodium stores block light in four bits, so the mod rounds the light to whole levels there. It is normal.

My torch looks too bright with a shader pack.#

The shader pack has its own hand-held light, so your torch is counted twice. Switch off the hand-held light in the shader settings, or turn off Own Light in Dynamic Lighting. The same tip is on Atmosphere & Visuals and Troubleshooting.

Can I turn the light of one kind of mob off?#

Yes. Add its id to disabled_entity_types in config/dynamiclighting.json, for example "minecraft:blaze". A disabled type never gives light.

Do my friends need it?#

No. It is client side, and everyone who wants the light installs it on their own game. The light you see from other players depends on what the server sends your client.

Do I need it on the server?#

No. It works on servers that do not have it.

Last updated 2026-12-01 Source: content/mod-obscura-s-dynamic-lighting.md ↑ Back to top