On this page (21)
- Why Nytheria has it
- Not a fork
- How the light behaves
- What gives light
- Items
- Mobs and other entities
- Settings
- The three modes
- Open the settings
- The config file
- Compatibility
- Performance
- For pack and mod authors
- Credits
- FAQ
- Does a torch in my hand stop monsters from spawning?
- Why is the light jumpy under Sodium?
- My torch looks too bright with a shader pack.
- Can I turn the light of one kind of mob off?
- Do my friends need it?
- Do I need it on the server?
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 pack | 1.0.0 (file dynamiclighting-1.0.0.jar) |
| Game | Minecraft 1.21.1, Fabric Loader 0.16.0 or newer, Java 21, Fabric API |
| Mod id | dynamiclighting |
| Side | Client only. The server does not need it, and it works in single player |
| Config file | config/dynamiclighting.json |
| Command | /dynamiclighting opens the settings |
| Licence | MIT, 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:
| Item | Light | Goes out in water |
|---|---|---|
| Torch | 14 | yes |
| Soul torch | 10 | yes |
| Campfire | 15 | yes |
| Soul campfire | 10 | yes |
| Fire charge | 10 | yes |
| Lava bucket | 15 | no |
| Nether star | 12 | no |
| Blaze rod | 10 | no |
| Glow berries | 10 | no |
| Blaze powder | 8 | no |
| Glow ink sac | 8 | no |
| Glowstone dust | 8 | no |
| Spectral arrow | 8 | no |
| Glow lichen | 7 | no |
| Magma cream | 6 | no |
| Prismarine crystals | 6 | no |
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#
| What | Light |
|---|---|
| Any burning entity | 15 |
| Living entity with the glowing outline | 10 (option Glowing Entities) |
| Blaze | 10 |
| Magma cube | 8 |
| Allay | 6 |
| Glow squid | 10, off while it is dark after being hurt |
| Enderman | The light of the block it carries |
| Ignited creeper | 10 in Simple mode, 2 to 12 in Fancy mode as it swells |
| Primed TNT | 10 in Simple mode, 4 to 14 in Fancy mode as the fuse burns down |
| Fireball | 14, none in water |
| Small fireball | 12, none in water |
| Dragon fireball | 12 |
| Wither skull | 8 |
| Shulker bullet | 6 |
| Firework rocket | 12 |
| Lightning bolt | 15 |
| End crystal | 12 |
| Dropped item, item in a frame, arrow, thrown item | The light of that item |
| Falling block | The light of the block |
| Minecart | The light of the block it shows |
| Block display, item display | The light of the block or item, unless the display has a brightness override |
| Wildfire from | 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.
| Option | Config key | Values | Default | Nytheria |
|---|---|---|---|---|
| Mode | mode | off, fastest, fast, fancy | fancy | fancy |
| Light Range | range | short, long | short | short |
| Own Light | self_light | true, false | true | true |
| Entity Lights | entity_lights | true, false | true | true |
| Water Sensitivity | water_sensitive | true, false | true | true |
| Glowing Entities | glowing_entities | true, false | true | true |
| Creeper Light | creeper | off, simple, fancy | simple | simple |
| TNT Light | tnt | off, simple, fancy | simple | simple |
| (file only) | disabled_entity_types | list 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:playerswitches off the light of every player, including you.
The three modes#
| Mode | Mobs within 32 blocks of the camera are checked | Chunk sections marked for rebuild per tick, at most |
|---|---|---|
| Fancy | every tick | 64 |
| Fast | every 2nd tick | 32 |
| Fastest | every 4th tick | 16 |
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#
- Mod Menu: select Dynamic Lighting and press Configure.
- Command: type
/dynamiclightingin a world. If you type it in chat, the screen opens when the chat closes. See Commands. - 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.
- 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.
{
"mode": "fancy",
"range": "short",
"entity_lights": true,
"self_light": true,
"water_sensitive": true,
"glowing_entities": true,
"creeper": "simple",
"tnt": "simple",
"disabled_entity_types": []
}Compatibility#
| With | What happens |
|---|---|
| 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 renderer | Covered, for installs without Sodium |
| Items worn in their slots light up the player who wears them. Nytheria has both | |
| Shader packs ( | 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 files | Read 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>.jsonThese 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.