
Villagers Keep TFC Lamps Lit
A mod that refills TFC lamps when villagers are nearby
Screenshots


About this Mod
Villagers Keep TFC Lamps Lit
A Minecraft mod that makes TerraFirmaCraft lamps more viable for permanent structures by having nearby villagers
maintain them.
📝 Features
Current Features
- Villagers automatically replenish fuel in nearby TFC lamps when they run low
- Natural feeling maintenance with randomized refill amounts
- Only already-lit lamps are refilled (empty or unlit lamps are ignored)
- Fully configurable values for fine-tuning the experience
Planned Fearures
- Config to whitelist/blacklist fuels
- Config to add additional entities that can automatically replenish lanterns
- Refill cooldown based on how long it should take for the fuel to burn, to prevent being able to infinitely extract
fuel (this shouldn't be a major concern as-is though; more information further below)
📕 How It Works
The mod checks for nearby villagers when a lamp block is ticked (should work with any block entity extending TFC's
LampBlock class). If villagers are within range and the lamp's fuel level falls below the configured threshold, the
lamp will be refilled up to a random amount of fuel (as defined by the range in the config).
✏️ Configuration
All values can be adjusted in the bundled config file (found in forge_dir/config/villagerskeeptfclampslit.toml):
villagerRange: Distance (in blocks) villagers need to be from a lamp to maintain it- Default: 24
- Min: 1, Max: Integer.MAX_VALUE
fuelThreshold: Fuel level (in mB) at which villagers will refill lamps- Default: 50
- Min: 1, Max: 254
- Note: Each mB lasts approximately 8000 ticks (~6-7 minutes)
minFuelReplenish: Minimum amount of fuel (in mB) the lamp is refilled to- Default: 75
- Min: 1, Max: 250
maxFuelReplenish: Maximum amount of fuel (in mB) the lamp is refilled to- Default: 150
- Min: 1, Max: 250
ℹ️ Technical Note
When using mods that can extract fluids (e.g. Create), it is probably possible to infinitely extract the fuel as it is
being refilled by villagers. However, this shouldn't be too big of a deal because:
- Lamps only get refilled on random block ticks
- If a lamp is emptied before being ticked, it will extinguish
- The config values can be adjusted to lower amounts if needed, to thwart mechanisms like really slow pump extraction.
Basically, the only way it's possible is if you either extract the fluids slow enough or you find a way to keep a
small amount of fluid in the lamp. I might later refine this by adding a proper cooldown to how often the lantern can be
refilled, and it's one of the things I plan on adding to this mod.
⚖️ License
This project is licensed under the MIT license. Feel free to include in modpacks.
Available Versions
How to Install Villagers Keep TFC Lamps Lit on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set forge Loader
In the panel under "Egg", select the forge loader and matching Minecraft version (1.20.1).
Install Mod
Open the mod browser in the dashboard and search for "Villagers Keep TFC Lamps Lit". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.20.1
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Villagers Keep TFC Lamps Lit server crashes on startup – what to do?
Most common cause: wrong forge version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.20.1). You can switch loaders with one click in the panel.
Is Villagers Keep TFC Lamps Lit compatible with forge and neoforge?
Villagers Keep TFC Lamps Lit officially supports forge, neoforge for Minecraft 1.20.1. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with Villagers Keep TFC Lamps Lit – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Villagers Keep TFC Lamps Lit consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install Villagers Keep TFC Lamps Lit with just one click on your server.