The mod Lithium is among the best modern optimization mods in Minecraft, adding a number of features while preserving the same vanilla experience. It works on both the client and server, meaning it can be used in either single-player or multiplayer contexts. On multiplayer servers, administrators can expect a boost to processing power that allows for more loaded entities, chunks and players than ever before. Even in single-player, it enriches the gaming experience by freeing up processor space; leading to improved frames and quicker reactions on player input. With its goal of improving game physics, mob AI and block ticking without changing the original mechanics of Minecraft, Lithium makes an ideal selection for Minecraft fans who want an enhanced overall experience without compromising the core gameplay.
Even in single-player mode, your game runs an “embedded server” that controls the world your player is in. By optimizing the game’s server angle, you can free up your computer’s CPU to focus on other tasks, improving frame rate and responsiveness. For multiplayer servers, administrators can expect a dramatic improvement in tick times, allowing their hardware to support more entities, chunks and loaded players.
To use lithium in Minecraft, you’ll need to have the Fabric mod loader installed. Once you’ve installed Fabric, you can download the lithium mod and place it in your Minecraft “mods” folder. You can then launch the game and lithium should be loaded and ready to use.
It’s important to note that installing mods can potentially cause issues with your game, and you should always backup your Minecraft files before installing any mods. Additionally, modding Minecraft may violate the game’s terms of service, so proceed at your own risk.
The strict goal of maintaining exact behavior with vanilla makes Lithium suitable for almost any Minecraft server running Fabric, even for highly complex gameplay scenarios and creations. In fact, our continued insistence towards not changing vanilla gameplay has even led to the mod being officially allowed in Minecraft speedrunning.
✅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. |
✔️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%. |
📥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.
While you’re at it, you may want to check out two of my other mods, Phosphor and Sodium, as they’re both fully compatible and only help to further improve performance in different parts of the game.
⚙️Configuration
Lithium makes use of an semi-unusual configuration system which allows you to enable or completely disable patches the mod applies. This system allows fine-grained control over what code in Minecraft 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.
Please note: An empty configuration file is perfectly normal and just means you want to use the default options, which are already set up out of the box for the best performance the mod can offer.
🔥The Benefits
The primary benefit of using Lithium is an improved gaming experience. By optimizing various aspects of the game (game physics, mob AI, block ticking), you’ll notice less lag and improved frame rates when playing on servers or single player worlds. This makes it easier to build structures or explore new areas without being hindered by slow loading times or unresponsive blocks/mobs. Additionally, since it doesn’t change any vanilla mechanics, there’s no need to worry about compatibility issues with other mods or plugins; all you need is Forge installed and you’re good to go!
How to install the Lithium mod for Minecraft servers
Lithium can be installed on both the client and the Minecraft server.
Lithium requires Fabric to run. Fabric is a mod loader that can be downloaded and installed from the link below.
Download Fabric Mod Loader
Players unfamiliar with installing Fabric can check out the helpful video tutorial below.
After Fabric has been installed, players can proceed to the next step of installing the Lithium mod. The mod can be downloaded from Curseforge, and the link can be found below.
Download Lithium mod for Minecraft
Once downloaded, players can simply install the Lithium mod by dragging it into the mods folder. If this is being done on a regular Minecraft client, this folder can be found within %appdata% -> .minecraft -> mods.
Once this has been done, Lithium should be fully installed.
How to use the Lithium mod for Minecraft servers
Lithium will be fully functional once installed in the mods folder. Players should notice an increase in their FPS if the mod is installed on their local machine. Meanwhile, server admins should notice an increase in TPS (ticks-per-second) if they have installed the mod on their server. TPS can be checked with the command “/tps”.
While the default settings are generally fine when using Lithium, players can customize enabled optimizations to their hearts’ content. This can be done by editing the configuration file, which will generate when the mod is first launched.
A full list of optimizations that can be toggled inside this configuration file can be found here.
How to get the best performance out of Lithium
Players looking for more performance should definitely consider installing both the Sodium and Phosphor mods. Sodium optimizes Minecraft’s otherwise slow chunk loading system, while Phosphor rewrites the game’s lighting engine to be more efficient.
Both mods can easily be installed by dropping them into the mods folder. They are also fully supported and compatible with Lithium.
Lithium Mod — Download Links
Name | Lithium Mod |
Update on | Dec 9, 2022 |
Developer |
jellysquid3_ |
Get it on PC |
|
Changelog
Lithium 0.10.4
Lithium 0.10.4 fixes a critical issue that causes heightmaps to store wrong values when placing or breaking blocks. It might have affect beacons, mob spawning and more. After fixing the bug the wrong values will still be in the world save. If you notice wrong heightmap behavior in some locations, placing and breaking a normal block (e.g. stone) above the location will update the heightmap to the correct value.
Fixes
- fix: combined_heightmap_update always using y & 15 as height causing incorrect heightmap
You can support me on patreon: https://www.patreon.com/2No2Name