Door Light Blocker
Closed doors block light. Open doors let it through.

In vanilla Minecraft, doors are transparent to the lighting engine: sunlight and torch light leak straight through a closed door. Door Light Blocker fixes that, so closing a door really darkens the room behind it.
Features
- Closed doors block light like a solid block.
- Open doors let light through as usual.
- Works with every vanilla door, including copper doors.
- Works out of the box; optionally configurable (see below).
| Door open | Door closed |
|---|---|
![]() |
![]() |

Configuration
Edit config/door_light_blocker.json to choose how much light a closed door blocks (0 to 15): a default value that applies to every door, plus optional overrides per group (wooden, copper, iron, other) or per door. Per-door overrides beat group overrides, which beat the default; anything you leave unset inherits. With Mod Menu and YACL installed you can do the same from an in-game screen. Open it from the title screen: Mods → Door Light Blocker → config button.

Saving from the config screen applies without a restart in singleplayer; on a server, restart it. Light around a door updates when it is opened or closed, so toggle doors after changing the config to refresh them. The client and server must use the same config.
Important: install on client AND server
The mod changes how light is calculated, so it must be installed on both the server and every player's client. Without it on both sides you will see lighting glitches.
Requirements
- Minecraft 1.21.11
- Fabric Loader 0.19.5 or newer
- Fabric API
- Optional: Mod Menu and YACL (YetAnotherConfigLib) for the config screen
Compatibility and performance
- Trapdoors and fence gates are not affected.
- Mods that replace the lighting engine or add light overhauls have not been tested.
- Light values are computed once at startup. There is no per-tick cost; opening or closing a door triggers a single local light update.
Source and issues
Source code (MIT license) and issue tracker: https://github.com/notNakura/door-light-blocker



