Home›Java›Mods›Capability Fix
Capability Fix
ModsJava

Capability Fix

Java mod listed for Minecraft 1.20. Downloads from the MC Java Mods app on Android.

by lcy0x1 · on CurseForge

Discord : This mod improves one key part of lags in 1.20.1 Forge/NeoForge: Capability fetching on entities. The implementation used on 1.20.1 searches…

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.20.1 · Forge⬇ Download for 1.20.1 · NeoForge
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

Discord: https://discord.gg/BCHNhsDMXz

This mod improves one key part of lags in 1.20.1 Forge/NeoForge: Capability fetching on entities. The implementation used on 1.20.1 searches across all capability providers to find one capability on one entity. This is extremely inefficient when there are many mods adding capability providers.

The approach this mod takes is to have a whitelist of capabilities to be cached. It stores a cache of capabilities on every entity. Capabilities that are whitelisted will be cached when it's fetched the first time and later it will not go through the list of capability providers but fetched from the cache directly.

This method is safe only for capabilities that is available on entities since its first fetch and never removed or re-attached later. One example would be Curios API's capability. Thus, this mod is whitelist-based by default. You can take the risk and make it apply to all capabilities on entities via config, or manually add all capabilities to the whitelist in config. By default, only Curios API's capability is in the whitelist.

You are recommended to use this mod only when you confirmed with spark that capability fetch on entity costs at least 4% of server mspt. This mod fully deployed would reduce capability fetching cost by 75%, tested on a modpack which original capability fetching cost is 8% of server mspt.

The correct way to use this mod is:

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

File checked by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more