
DarknessLib Mod is a library used for dealing with light calculations, through common code previously used in Grue and Hungering Darkness. This library mod intends on simplifying the process of maintaining those mods by taking out the identical parts and putting them in a separate library for them to use. This mod also aims to expose those parts for other mods to make use of.

Features:
- Functions for checking the relative light level (which also takes things like standing in soul sand into account).
- Support for Atomic Stryker’s Dynamic Lights, Optifine’s Dynamic Lights and Smooth Entity Light. Functionality works on a player-to-player basis (if enabled, any player using either of the named dynamic light mods will have that light added to their total light, rather than the client saying it is bright while the server side says it isn’t), and there is a configurable list you add additional handheld light sources to (if they haven’t already been discovered, as the library has built in functionality to try and determine light sources out of all registered Blocks).
- A built in list of vehicles that mods relying on the library can check for prior to checking the light level (as both minecarts and boats obscure the light level when you’re inside one).
- IMC (InnovationMC Modpack) support for mods to add both handheld light sources and vehicles to the respective lists within the mod (or you can open a ticket on the issue tracker with the modid and path to the vehicle entity class).
Requires:
Minecraft Forge
DarknessLib Mod Download Links
For Minecraft 1.12.2
Forge version: Download from Server 1
Quick facts
- Edition: Minecraft Java
- File type: .jar
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: In MC Java Mods, or directly above on this page.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
Verified by MCModsHub
- Downloads as 206955.mcaddon
- Download size: 51 KB
- Download link checked 30 Jul 2026 — working
- Mirrored on our own servers — the download does not depend on the original host
These come from our own check of the pack file, not from the source page.