Back to mods
Lithium (Forge) project artwork

CurseForge · Minecraft mod

Lithium (Forge)

A general-purpose optimization mod for Minecraft which improves server performance significantly

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Lithium (Forge) release should I use?

Updated 5 years ago
alpha file Lithium mc1.15.2-0.4.6-rc3
Game version 1.15.2
Loader Forge

Lithium (Forge) Lithium mc1.15.2-0.4.6-rc3 targets 1.15.2 with Forge. The project page does not say whether this file belongs on the client, dedicated server, or both. All 1 required mods have matching files.

Where it goes

Is Lithium (Forge) required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release Forge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does Lithium (Forge) Lithium mc1.15.2-0.4.6-rc3 need?

Lithium mc1.15.2-0.4.6-rc3. Change the file and its required mods may change too.

All 1 required mods have matching files

Install MixinBootstrap first. We found matching files for this game-version and loader setup. 1 comes through another mod in the chain.

2 listed on this file 1 pulled in by one of those mods
MixinBootstrap Needed by Lithium (Forge) Lithium mc1.15.2-0.4.6-rc3
required
Matching file found Matched file: MixinBootstrap-1.1.0.jar
Phosphor (Forge) Optional for Lithium (Forge) Lithium mc1.15.2-0.4.6-rc3
optional
Matching file found Matched file: Phosphor mc1.15.2-0.5.2+build.4
Lithium (Forge) Needed by Phosphor (Forge)
pulled in
Matching file found Matched file: Lithium mc1.15.2-0.4.6-rc3

1 extra mod was pulled in by another dependency. Indented rows show who needs each one. We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add Lithium (Forge) without breaking your instance.

Built for Lithium (Forge) Lithium mc1.15.2-0.4.6-rc3. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use Lithium mc1.15.2-0.4.6-rc3. It targets 1.15.2 with Forge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install MixinBootstrap first. We found matching files for this game-version and loader setup. 1 comes through another mod in the chain.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside Lithium mc1.15.2-0.4.6-rc3. It opens that exact file at the source.

About this project

What does Lithium (Forge) add?


Forge is no longer supported and downloads have been archived.

Going forward, Lithium will only be updated for the Fabric platform. You can download Lithium for Fabric over on the newer CurseForge page. The releases on this page will not be updated or receive support, and it's advised that players do not use them due to their alpha quality.

Lithium for Forge

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 see on average a 45% improvement to server tick times, resulting in a much leaner 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, 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 (another optimization mod) pairs great with Lithium and is fully compatible.

There are currently no plans to backport Lithium to Minecraft 1.12 or older. These patches are designed for modern versions of the game, and many of them do not apply to older versions either because those systems do not exist or are vastly different.

Installation

You must download and install MixinBootstrap 1.0.2 (or newer) to your mods folder. Afterwards, installing Lithium is as simple as installing any other Forge mod, simply drop it into your mods folder. 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.

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.

Redstone optimizations: Redstone Wire/Dust has been completely rewritten to use a breadth-first search for updating wire states, reducing the number of block updates made to dust and other blocks by an order of magnitude. (Experimental, disabled by default)

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.

... 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.

Project description from CurseForge.

Pick your setup

Lithium (Forge) by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

1 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Lithium (Forge) versions and loaders

1 of 1 releases match

Looking for an older file? The official CurseForge project page is in Resources.