Home›Java›Mods›Smooth Entity Light
Smooth Entity Light
ModsJava

Smooth Entity Light

Minecraft Java mod. Downloads from the MC Java Mods app on Android.

by LakMoore · on CurseForge

⬇ Download on CurseForge
Smooth Entity Light — screenshot 1Smooth Entity Light — screenshot 2

Notes: This mod's config file is called "sel.cfg" or "sel-client.toml"

Ensure Java can allocate at least 2GB or RAM before running Smooth Entity Light

 

Re-designed approach for version 4!!

 

Atomic Strykers's Dynamic Lights has been the de-facto standard entity light system since the dawn of modded Minecraft.  However, during testing of my new mod pack, Edge of Death, I noticed the light from the player's hand held torch gives off a sort of "popping" effect as the player moves (see gif below).  I tested this against Optifine's system and noticed their implementation does not have the same issue.  However, we cannot access Optifine via CurseForge but I also noticed a problem with their implementation where their dynamic light can pass straight through solid blocks!  This mod addresses all these issues in a very efficient way.  In addition, the entities are ticked using Java's Parallel Streams so if you have multiple cores in your CPU (and who doesn't these days?) this mod will run faster!

 

Also, on my journey through the source code I noticed that a technique called "Quad Flipping" has never been implemented by Minecraft.  I took the opportunity to fix that (see the images below for an explanation).

 

Compatibility

Fully compatible with Phosphor (Forge)

Not compatible with Optifine.  It does not crash, but you will get unexpected behaviour if you try it.

 

Similar Mods (you only need Smooth Entity Lights if neither of these fit your purpose)

 

Summary of goodness:

 

v4 Design

The chunk meshes are uploaded to the memory on-board your GPU every time a chunk is re-built.  This is why vanilla lighting updates occur so infrequently (once per chunk update).  This is normally good because both building a chunk and vanilla lighting updates are expensive and slow.  What this mod does is hold a cache of light values in normal RAM and update those in real time and then (roughly) every frame simply update those values into the correct places in the chunk meshes directly in the GPU RAM.  This allows light values in the scene to be updated frequently without re-building the entire scene or chunk.  The mesh didn't move, only the light!

 

Torchlight / Flashlight / Floodlight

The item is configurable and defaults to Eye of Ender, but it casts a cone of light in the direction you are looking. 

 

Quad Flipping 

This is how Minecraft has always looked (all quads rendered in the same orientation causes dodgy shadows):

Smooth Entity Light — Minecraft Java mod, screenshot 1

Flipping the Quads, depending on brightness at the corners, causes the shadows to be rendered slightly more correctly:

Smooth Entity Light — Minecraft Java mod, screenshot 2

 

Shadows from Blocks

One reason why you might prefer Smooth Entity Lights instead of Optifine:  

Smooth Entity Light vs. Optifine Dynamic Light

 

A torch in a box with Optifine's Dynamic Lights (leave a comment when you can see the problem):

A torch in a box with Optifine Dynamic Lights (comment when you see the problem!)

 

Below: Left is Smooth Entity Light. Right is Dynamic Lights.   This shows the removal of the "popping" effect that was the original motivation for this mod.

Smooth Entity Lights | Dynamic Lights

 

The "shape" of light given off by Dynamic Lights and Smooth Entity Light is different.  The following image demonstrates that difference.  Consider which shape you want when deciding which Mod to include in your pack.

Smooth Entity Light — Minecraft Java mod, screenshot 3

 

In-game configuration

While in creative, use the following commands to update the config file.

 

License

Modpack authors are free to use the Smooth Entity Light mod's binary distribution as downloaded from CurseForge/Twitch with no additional permission required.

 

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more