Source-checkedAdmin & protection

Light Cleaner

by TeamBergerhealer · for Minecraft

Regenerates light levels in your world, fixing bugged lighting such as black cliffs

52KDownloads
4 mo agoLast updated
Spigot · PaperLoaders
26.2Latest game version

About Light Cleaner

From SpigotMC

Regenerates light levels in your world, fixing bugged lighting such as black cliffs

Requires BKCommonLib for the low-level API's

Join our discord for plugin help https://discord.gg/wvU2rFgSnw

Light cleaner is a simple plugin fulfilling a very powerful task: regenerating lighting. It does so running on a dedicated thread, using it's own optimized methods to minimize performance loss for the server. By operating on raw data it is easily capable of chomping through 200 chunks a second!

As of 1.12-v2, it is now also possible to let the plugin automatically clean up light for newly generated chunks. This way there is no need to use the commands while players explore new areas of the world.

Motivation
A bug that has haunted minecraft forever is the infamous dark lighting found all over the place when chunks are generated. You'll find them in caves, against canyon walls, in the nether and even underground! All of this buggy-looking light ruins the aesthetics that makes Minecraft nature beautiful. Worse, the constant client-side fixing of this lighting drags client-side performance down, especially in the nether or extreme biomes.

lightcleaner_demo.jpg

No more! With a simple command this plugin will eagerly chomp away at millions of blocks, recalculating their light levels completely from scratch. It uses vanilla Minecraft block information for this, which means it will look just as intended.

Another use is repairing light levels after plugins alter blocks in "fast" ways, such as WorldEdit. If blocks are altered while executing the slow server light regeneration function, it would take ages to change blocks. This plugin offers best of both worlds, allowing repairs after the fact.

By utilizing a powerful algorithm combined with smart caching it is capable of regenerating this lighting much faster and more accurately. Lighting can be repaired for all the chunks in your view, or for all the chunks of a world. The main server thread is not stalled while doing these calculations.

Commands
This plugin offers the following commands:

Code (Text):
/cleanlight - regenerate lighting for all chunks you can see
/cleanlight 12 - regenerate lighting 25x25 chunks around you
/cleanlight world - regenerate lighting in the current world
/cleanlight world world1 - regenerate lighting for world1
/cleanlight abort - cancels any ongoing lighting operations
/cleanlight status - checks up on the status of the repairs
/cleanlight at [chunk_x] [chunk_z] [chunk_radius] (world) - regenerate lighting remotely (command blocks)
Permissions
Code (Text):
Allows the player to regenerate lighting within player view radius
lightcleaner.clean.view

Allows the player to clean at any radius, even beyond view radius
lightcleaner.clean.any

Allows the player to regenerate for entire worlds (that's a lot of chunks!)
lightcleaner.clean.world

Allows the player to only clean an area of a specific radius or less.
For example, radius 5 allows command /cleanlight 5 and /cleanlight 4, but not /cleanlight 6.
lightcleaner.clean.radius.[radius]
lightcleaner.clean.radius.5

Allows the player to abort all lighting operations
lightcleaner.abort

Allows the player to check up on the status
lightcleaner.status
Configuration
To turn on automatic cleaning of newly generated chunks, set the following in the config.yml:
Code (Text):
autoCleanEnabled: true
To turn on automatic cleaning after players perform WorldEdit/ FastAsyncWorldEdit operations, set the following in the config.yml:
Code (Text):
autoCleanWorldEditEnabled: true
When remaining available memory (in MB) on the server drops too low, light cleaner will pause and save worlds to reduce memory until it can continue. If you run into out of memory problems, raise this value. If you feel it stalls for too long, lower it.
Code (Text):
minFreeMemory: 400
When processing the plugin has to load large areas of chunks as fast as possible. With high concurrency it will queue a lot of chunks for loading at the same time, while with low it may wait a longer time. If you find the plugin affecting server performance too much, lower this value.
Code (Text):
asyncLoadConcurrency: 50
If you have worlds that aren't persistently saved to disk, you may want to disable saving on these worlds. This also prevents the plugin from continueing lighting operations when the server is restarted.
Code (Text):
unsavedWorldNames:
  - worldname1
FAWE

Read the full description on SpigotMC →

Highlights

From source data

Game versions

Supports 17 Minecraft versions, the newest being 26.2.

Loaders

Runs on Spigot and Paper.

Footprint

Rated a light load on a server.

Light Cleaner on Nxeon

From our catalogue
One-click install
Supported on Nxeon Minecraft servers, for Paper servers. We download it from SpigotMC, place it, and restart the server.
Server side
Required on the server
Server type needed
Spigot, Paper
Server load
light
Smallest plan we suggest
Minecraft — 2 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
2.0.0, released 2026-07-01

Game versions by loader

LoaderGame versionsNewest
Paper1.8 to 26.2 (17 versions)26.2
Spigot1.8 to 26.2 (17 versions)26.2

From 10 recorded builds of Light Cleaner.

Recent builds

BuildReleasedGame versionsLoaders
2.0.02026-07-011.8 to 26.2 (17 versions)Spigot, Paper
1.19.3-v12023-02-22n/aSpigot, Paper
1.19-v12022-06-19n/aSpigot, Paper
1.18.2-v12022-03-05n/aSpigot, Paper
1.18.1-v32021-12-28n/aSpigot, Paper
1.18.1-v22021-12-25n/aSpigot, Paper

Run Light Cleaner on a Minecraft server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on SpigotMC as “Admin”

Admin & protection

Permissions, moderation, anti-cheat and land protection for the people running the server.

Runs on your server

From source side support

SpigotMC lists Light Cleaner as required on the server. Check its SpigotMC page to see whether players need it too.

Compatibility

Game
Minecraft
Loaders
SpigotPaper
Runs on
Serverrequired on the server
Game versions
26.2 and 16 earlier
Requires
One-click install needs a Paper server.

Verified at the source

  • ✓SpigotMCOfficial listing, checked 2026-10-01Open ↗
  • ✓AuthorTeamBergerhealer, as published on SpigotMC
  • ✓LicenseNot published by the sourceFree

Light Cleaner, answered

Generated from the mod’s own source data.

Do my players need to install Light Cleaner?

SpigotMC lists Light Cleaner as required on the server. Check its SpigotMC page to see whether players need it too.

Which loaders does it support?

Spigot and Paper.

Is it free?

Yes. Light Cleaner is free to download from SpigotMC.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run Light Cleaner on a Minecraft server.

Deploy in about a minute from $4.99 a month, then add Light Cleaner in one click.