This Minecraft mod visualizes the light levels emitted by torches, glowstone and alike directly on top of blocks, this is helpful to quickly identify areas where mobs can spawn. It shows the light level of the airblock above the block the number is drawn onto, this is the block that is considered for mob spawning, light level 7 or below allows mobs to spawn.
Press F9 (customizable) to toggle the overlay.
Press F9 (customizable) and R to reload the configuration file.
After you played with lloverlay the first time a ~/.minecraft/lloverlay.properties file is created with all default configuration options, feel free to modify any of those, you can press F9+R in minecraft to reload the config ingame:
- hotkey: keycode that toggles the overlay
- debug: activates debug messages
- drawDistance: distance in blocks in each direction the overlays are drawn, decrease if you run into performance problems
- textureRow: the textures provided (lightlevel.png) can include multiple “styles” or themes, here you can select which row should be drawn (0 = first row, 1 = second row, ?). Each block texture is 16×16 pixel.
- generateInterval: the interval in milliseconds (250 = 1/4 second) in which the lightlevel data are gathered (if you place a torch its at least 250 ms till the overlays are updated), increase if you run into performance problems
- showLightlevelUpto: you can set the level up-to the overlay should be drawn.
- drawNonSpawnable: if set to true draw the lightlevel on halfslabs/farmland/glass where mobs can’t spawn.
- useSkyLightlevel: set to true for light levels effected by daylight (all surface blocks 15 light level, unfortunately currently also at night times)
How to install Light Level Overlay Mod:
You must use the Forge version if you want to use this together with other mods, like optifine. Forge allows it to write minecraft mods that are compatible with each other, even when they modify the same part of minecraft. In case of this mod, the rendering is modified and therefore ordinarily incompatible with any other mod that also effects rendering (like optifine). Forge allows compatibility because it provides the necessary code (the RenderWorldLast event) to make it compatible. I don’t provide a ModLoader version because ModLoader doesn’t have this or an equivalent functionality, fortunately forge is compatible with ModLoader mods.
- If not already: Download and install Minecraft Forge. Both forge-universal and optifine need to be extracted in the minecraft.jar file. (make sure to install optifine last and to replace all files)
- Copy the lloverlay_*-forge.zip file to your ~/.minecraft/mods/ or %appdata%/.minecraft/mods directory.
Vanilla means an unmodified minecraft version. This does not work with optifine for instance, because it also modifies a class file. The new vanilla launcher (since 1.6) allows you to easily switch between different versions. If you use the vanilla launcher, I would recommend creating a new version (with the mod installed) that you can then assign to an extra profile, that would allow you to switch between vanilla/modded:
- First locate your versions directory in ~/.minecraft/versions or %appdata%/.minecraft/versions.
There should be a 1.6.x directory with the latest version.
- Copy the 1.6.x directory to 1.6.x-lloverlay or something, this will be the new name of the version.
- Now you need to rename all files in the 1.6.x-lloverlay directory to match the version name. Rename all 1.6.x-lloverlay/1.6.x* to 1.6.x-lloverlay/1.6.x-lloverlay*.
- You also need to change the version name in the 1.6.x-lloverlay/1.6.x-lloverlay.json file. Open the json file with an editor (vi/emacs/notepad) and change the line
- Now to actually install the mod you need to replace the contents of the jar file with the mod contents.
Unpack the (renamed) 1.6.x-lloverlay.jar file someplace.
- Remove the META-INF folder from the extracted files.
- Unpack the lloverlay_*.zip file within, override anything.
- Pack the folder again in a zip file named 1.6.x-lloverlay.jar
- and replace it with the /versions/1.6.x-lloverlay/1.6.x-lloverlay.jar file.
- Now you can start the launcher and configure your profiles, thats quite easy to do, the 1.6.x-lloverlay version should appear under the “Use version” dropdown in the profile editor. You can also create a new profile and assign it the -lloverlay version.