DarknessLib Mod – 1.12.2 – Library for Handling Light Calculations

Author: Kompot
0
14
darknesslib mod 1 12 2 library for handling light calculations

DarknessLib Mod (1.12.2), is a library that handles light calculations using common code from Grue and Hungering Darkness. This library mod will simplify the maintenance of those mods by removing the same parts and placing them in a separate library. These parts will also be available for use by other mods.

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).

( Rating: 00 votes)

Comments

Your email address will not be published. Required fields are marked *

  • There are no comments yet. But yours could become the first one!