Modscraper Modscraper Minecraft
Lithium (Fabric/NeoForge) logo

Lithium (Fabric/NeoForge)

Mod

by JellySquid

An optimization mod for Minecraft which improves server performance significantly.

Type

Mod

CurseForge Downloads

95,004,920

CurseForge ID

360438

Modrinth Downloads

125,829,009

Modrinth ID

gvQqBUqZ

Last Updated

Sep 10, 2026

Description

Want to help support development?

Lithium is made possible thanks to the awesome supporters. Each pledge allows us to spend more time working on mods like these while helping to cover a few expenses.

Patreon 2No2Name Donation Link

And special thanks to everyone else who helped with the development of Lithium. If you're a programmer who would like to contribute to the project, consider taking a look at our open issues for ideas on how you can help.

You can join our discord community with support and discussion channels:

yHlVxSj.png

 

Lithium (for Fabric Loader)

Code license

Lithium is a general-purpose optimization mod for Minecraft, which works to improve a number of systems (game physics, mob AI, block ticking, etc) without changing any behavior. It works on both the client and server, and can be installed on servers without requiring clients to also have the mod. With the mod installed, you can expect to see more than a 50% improvement to tick times, resulting in a much faster game.

Even in single-player, your game runs an "integrated server" which ticks the world your player is in. Through optimizing the "server side" of the game, this can free up your computer's processor to focus on other tasks (i.e. rendering), resulting in improved frame rates and responsiveness. For multiplayer servers, administrators can expect a sizeable improvement to tick times, allowing their hardware to support more loaded entities, chunks, and players.

If you aren't using it already as well, Phosphor and Sodium both pair great with Lithium and are fully compatible.

Installation

Make sure you have the latest version of Fabric Loader present and then simply drop the mod into your mods folder. No other mods or additional setup (not even Fabric API!) is required.

You do not need to create new worlds in order to take advantage of the mod.

Features

You might be curious by now as to what exactly Lithium is doing in order to achieve such significant gains, and I'm happy you are! You can read about (some) of the changes we make in the spoiler below.

Physics optimizations: Entity collision detection has seen significant improvements through reducing the collision resolution complexity for simple, cuboid blocks. A more accurate algorithm is also used to reduce the number of blocks being checked every tick, especially in cases where entities are moving very quickly.

Mob AI optimizations: We make use of an event-based system for some tasks in order to reduce the CPU usage incurred by constantly polling the world for changes. Mob "brains" have also been optimized to select between different AI tasks much, much quicker than before. Comparison before and after here.

World generation optimizations: Many calculations in vanilla's world generation are unnecessary and do not affect the final result, which gives ample opportunity for Lithium to optimize this overhead away.

Chunk loading optimizations: The temporary data structures used in block palette compaction have been changed to be much more efficient. This results in fewer TPS drops while players are exploring terrain and provides a modest boost to world load times. We also batch some verification operations to reduce unnecessary disk I/O.

Mob farm optimizations: Mob cramming is significantly less expensive as resolving collisions between entities has been optimized to take advantage of the fact that simple boxes are involved. This makes mob farms considerably less harmful for server tick rates.

Block ticking optimizations: has less overhead, making things such as block update settling after generating chunks and other Redstone contraptions faster. This also reduces the amount of time it takes for a block to determine if it is ticking by schedule from O(n), where n is the number of ticking blocks, to O(1), providing a significant speedup when many blocks are being ticked.

Explosion optimizations: Many optimizations have been applied to TNT and explosions alike, reducing their associated lag without changing how they behave. In particular, ray-tracing is optimized to take advantage of the fact that multiple steps through a way will occur in the same block position, allowing us to quickly re-use the previous step's results. We also make use of a faster position tracking algorithm which avoids many excessive allocations.

Point of Interest optimizations: Complex mob AIs in Minecraft, primarily those belonging to Villagers and Pillagers, often need to find relevant points of interest in the world in order to choose the most appropriate AI task. In vanilla, querying all points within a chunk requires 16 separate retrievals through stream-heavy code. With Lithium present, this task is reduced to a single simple retrieval that makes use of a much faster (and traditional) iterator based approach, yielding anywhere from a 16-22x improvement for queries.

Data Tracker optimizations: The internal data manager used for tracking some entity state and properties has been optimized to use flat arrays and avoid expensive locking, providing a decent boost whenever these attributes are accessed during a game tick.

Redstone Wire optimizations: Calculating the new power level of redstone wire after a block update is costly. Reducing the number of blockstate checks without any change in behavior reduces redstone dust lag by about 35%.

... And other internal improvements to help the JVM better optimize code.

Configuration

Lithium makes use of an unusual configuration system which can be used to enable or disable certain patches. This system allows fine-grained control over what code is modified by Lithium, and as such, can be used to completely eliminate bugs or mod incompatibilities introduced by the mod. For more information, please read the wiki entry on modifying your configuration file. An empty configuration file is perfectly normal and just means you want to use the default options.

Modpack Permissions

This is a free and open-source project on CurseForge, and as such-- of course you can include it in your modpack! While not required, it's much appreciated if you link back to Lithium's project page and Patreon in your mods list or credits page.

Reporting Issues

Please use the issue tracker linked at the top of the page to report bugs, crashes, and other issues. The Curseforge comments section is not the place to report these kinds of problems and will likely result in you being asked to forward it along.

 

Recommended Gear

Affiliate

Hardware and extras that pair well with this mod.

As an Amazon Associate I earn from qualifying purchases.

Similar Mods

Included in Modpacks (3,233)

Show fewer
Fabulously Optimized Fabulously Optimized Cobblemon Official Modpack [Fabric] Cobblemon Official Modpack [Fabric] Prominence™ II: Hasturian Era Prominence™ II: Hasturian Era Better MC [FABRIC] BMC1 Better MC [FABRIC] BMC1 COBBLEVERSE - Pokemon Adventure [Cobblemon] COBBLEVERSE - Pokemon Adventure [Cobblemon] Better MC [FABRIC] BMC2 Better MC [FABRIC] BMC2 Medieval MC [FABRIC] MMC1 Medieval MC [FABRIC] MMC1 Immersed With Shaders Immersed With Shaders All the Mods 10: To the Sky   ATM10SKY All the Mods 10: To the Sky ATM10SKY Better MC [NEOFORGE] BMC5 Better MC [NEOFORGE] BMC5 Sodium Plus Sodium Plus Homestead - A Cozy Survival Experience Homestead - A Cozy Survival Experience Vanilla Perfected Vanilla Perfected BigChadGuys Plus (w/ Cobblemon!) BigChadGuys Plus (w/ Cobblemon!) Lucky Block Challenge Lucky Block Challenge OptiFabriс OptiFabriс Better Adventures+ Better Adventures+ Prominence™ II: Hasturian Era Prominence™ II: Hasturian Era Fantasy MC Fabric Fantasy MC Fabric Dungeon Heroes (RPG Series) Dungeon Heroes (RPG Series) Better MC [FABRIC] BMC3 Better MC [FABRIC] BMC3 All of Create All of Create Valhelsia: Enhanced Vanilla Valhelsia: Enhanced Vanilla SkyBlock Enhanced SkyBlock Enhanced Cobblemon Delta Cobblemon Delta Cobblemon Official Modpack [NeoForge] Cobblemon Official Modpack [NeoForge] Distant Horizons & Iris Shaders Distant Horizons & Iris Shaders Create: Astral Create: Astral Aged Aged Remarkably Optimized Remarkably Optimized Create+ Create+ Pokemon Elysium Pokemon Elysium Fresh & Smooth Fresh & Smooth 红石生电优化【Redstone Survival Optimization】 红石生电优化【Redstone Survival Optimization】 Cobblemon - Mega Pokemon in Cobblemon + Trainer Gyms + Cobblemon with Friends + Cobblemon MMO RPG for Cobblemon Realms Cobblemon - Mega Pokemon in Cobblemon + Trainer Gyms + Cobblemon with Friends + Cobblemon MMO RPG for Cobblemon Realms All of Fabric 3 - AOF3 All of Fabric 3 - AOF3 ArdaCraft ArdaCraft Hoplite for Lunar Client Hoplite for Lunar Client Cobblemon Updated - Includes Every Pokemon! Cobblemon Updated - Includes Every Pokemon! Landscapes Reimagined Genesis Landscapes Reimagined Genesis Skyblocker Collections Skyblocker Collections New Game - An Improved Experience | 1.21 UPDATE! New Game - An Improved Experience | 1.21 UPDATE! RealisticCraft RealisticCraft Create Live 4 Create Live 4 BigChadGuys and the Holy Grail BigChadGuys and the Holy Grail All of Fabric 6 - AOF6 All of Fabric 6 - AOF6 Breakneck: Optimized | FPS Boost, Shaders & QoL Breakneck: Optimized | FPS Boost, Shaders & QoL Optimized fps Optimized fps All of Fabric 5 - AOF5 All of Fabric 5 - AOF5 All of Fabric 7 - AOF7 All of Fabric 7 - AOF7 Another Quality Modpack 2 - AQM2 Another Quality Modpack 2 - AQM2 Amazing Xray Amazing Xray Spunky Boost Spunky Boost Homestead Homestead OptiFine for Fabric OptiFine for Fabric Re-Console+ Re-Console+ Keo optimized Keo optimized Essentials Mods [FORGE] - 1.21 RELEASE! Essentials Mods [FORGE] - 1.21 RELEASE! Wynncraft for Lunar Client Wynncraft for Lunar Client More FPS [FORGE] - Increase FPS & Shaders (1.21 UPDATE) More FPS [FORGE] - Increase FPS & Shaders (1.21 UPDATE) 月亮工厂MCF 【Moon Create factory】 月亮工厂MCF 【Moon Create factory】 All of Create - Aeronautics All of Create - Aeronautics Wynncraft Plus Wynncraft Plus MCC Island for Lunar Client MCC Island for Lunar Client New Simple Mods - Easy to Understand | 1.21 UPDATE! New Simple Mods - Easy to Understand | 1.21 UPDATE! Performium Performium StaTech Industry StaTech Industry Low Res Trailer Recreation Low Res Trailer Recreation More Animals [FORGE] - 1.21 UPDATE! More Animals [FORGE] - 1.21 UPDATE! Techopolis 3 Techopolis 3 TownCraft TownCraft Optimization Optimization The Cobblemon SMP - Pokemon in Minecraft The Cobblemon SMP - Pokemon in Minecraft Optimized fps [(NEO)FORGE] Optimized fps [(NEO)FORGE] Additive Additive XPlus PerioTable Modpack (Fabric) XPlus PerioTable Modpack (Fabric) Medieval MC [FABRIC] MMC3 Medieval MC [FABRIC] MMC3 Elysium Days Elysium Days Spunky Optimized Spunky Optimized All of Fabric 4 - AOF4 All of Fabric 4 - AOF4 Conquest Reforged Modpack (Fabric) Conquest Reforged Modpack (Fabric) Hypixel Skyblock for Lunar Client Hypixel Skyblock for Lunar Client Pixelmon Jenny Pixelmon Jenny Adrenaline Adrenaline uku's pvp modpack uku's pvp modpack Conquest Reforged Modpack (Fabric) Conquest Reforged Modpack (Fabric) Craft to Exile [Harmony] Craft to Exile [Harmony] Dreamcraft [FABRIC] Dreamcraft [FABRIC] MAX FPS: Optimized MAX FPS: Optimized Actions & Better [ON JAVA] Actions & Better [ON JAVA] Origins SMP: Fabric Origins SMP: Fabric TNP Limitless 8 - LL8 TNP Limitless 8 - LL8 Cobblemon Expanded (by Jonathan) Cobblemon Expanded (by Jonathan) More Decorations [FORGE] - 1.21 UPDATE! More Decorations [FORGE] - 1.21 UPDATE! BigChadGuys Plus (Non Cobblemon!) BigChadGuys Plus (Non Cobblemon!) Farmopolis Farmopolis NotiFine NotiFine MineField Mods MineField Mods Cobblemon Optimized All 1028 Pokemons + Legendary Cobblemon Optimized All 1028 Pokemons + Legendary [MODIFIED] Cobblemon: PLUS [MODIFIED] Cobblemon: PLUS

External Resources