Back to mods
From The Caves Patch project artwork

CurseForge · Minecraft mod

From The Caves Patch

Unofficial server performance and memory leak patch for the From The Caves mod.

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

Quick answer

Which From The Caves Patch release should I use?

Updated today
Latest stable file fromthecavespatch-1.4.0.jar
Game version 1.20.1
Loader Forge

From The Caves Patch fromthecavespatch-1.4.0.jar targets 1.20.1 with Forge. The project page does not say whether it belongs on the client. The project page does not say whether it belongs on the dedicated server. All 2 required mods have matching files.

Where it goes

Is From The Caves Patch required on the client, server, or both?

The project page does not say whether it belongs on the client. The project page does not say whether it belongs on the dedicated server.

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 From The Caves Patch fromthecavespatch-1.4.0.jar need?

fromthecavespatch-1.4.0.jar. Change the file and its required mods may change too.

All 2 required mods have matching files

Install From The Caves, GeckoLib first. We found matching files for this game-version and loader setup. 1 comes through another mod in the chain.

1 listed on this file 1 pulled in by one of those mods
From The Caves Needed by From The Caves Patch fromthecavespatch-1.4.0.jar
required
Matching file found Matched file: From The Caves 0.6.926
GeckoLib Needed by From The Caves
pulled in
Matching file found Matched file: geckolib-forge-1.20.1-4.8.4.jar

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 From The Caves Patch without breaking your instance.

Built for From The Caves Patch fromthecavespatch-1.4.0.jar. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use fromthecavespatch-1.4.0.jar. It targets 1.20.1 with Forge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install From The Caves, GeckoLib 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 it belongs on the client. The project page does not say whether it belongs on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside fromthecavespatch-1.4.0.jar. It opens that exact file at the source.

About this project

What does From The Caves Patch add?

NOTE: This is an unofficial patch. All credit for From The Caves goes to its original author. This mod is temporary and will be discontinued when the From The Caves mod is updated and fixes these issues.

From The Caves Patch is an unofficial performance and bug-fix patch for the From The Caves mod.

This mod does not add or remove content, it only fixes issues to make the mod run better.

All fixes are toggleable via the config file (config/fromthecavespatch-common.toml).

Memory Leak FixesFrom The Caves uses many static collections to track per-player and per-entity state across its procedures. The problem is that most of these collections are never cleaned up when a player logs out or an entity is removed.

SpawnUpsideDownCrossInVillageProcedure
AngerSystemProcedure
RightClickWCrossProcedure / RightClickWICrossProcedure
CrossCompassBehaviorProcedure
DeepDarknessDragProcedure
FlamingoHauntedProcedure
StepsAmbushProcedure
ArmorStandEventsProcedure, WindowEventsProcedure, LightEventsProcedure, NoteBlockEventsProcedure, ItemFrameEventsProcedure, ChestEventsProcedure, TrapdoorEventsProcedure
AnimalFearManagerProcedure
CemeteryMarkerFlickerProcedure / TorchFlickerNearMobProcedure
**Performance Fixes

Village structure search (chunk loading)**
SpawnUpsideDownCrossInVillageProcedure and SpawnChestWithCrossInVillageProcedureProcedure both call ServerLevel.findNearestMapStructure() on every player tick to look for a nearby village. This method can trigger chunk loading across a large radius, causing lag spikes. This patch redirects the call to only search already-loaded chunks. The original search behavior can be restored via config.

Audio capture retry throttling
When a player has no working microphone (or audio capture is failing for any reason), From The Caves calls AudioCapture.startCapture() every single client tick. Internally this calls AudioSystem.getMixerInfo(), which triggers Java's service loader and scans audio devices. This patch throttles the retry to once every 10 seconds (200 ticks) when capture is not running, however, there is no impact when capture is working normally. Can be disabled via config.

Cemetery marker chunk force-loadingCemeteryMarkerBlockEntity.onLoad() originally called ServerLevel.forceChunk() to force-load up to 17 chunks surrounding every cemetery marker every time the marker's own chunk loaded. This patch cancels the force-loading while still allowing the marker to register correctly with the cemetery system.

Optional Fixes
Remove Possessed Pig Spawning (disabled by default)

There is a strange issue that causes alot of pigs to spawn.
From The Caves adds a "possessed pig" entity to every biome's spawn list. Enabling this config option removes the possessed pig from all biome spawn lists. Vanilla pig spawning is unaffected.

"protectTamedCats" default = True.

ALL_FLEE event adds a flee-from-player goal to tamed cats. They run far enough that their chunk unloads, and they never come back.

Configuration1.1.0: "Event" config category added. The ability to disable any horror event.

patchEnabled --> disable/enable patches

onlyLoadedChunks --> Restricts village structure search to already-loaded chunks

reduceAudioSystemCalls --> Throttles audio capture retry to once every 10 seconds

removePossessedPigSpawn --> Removes FTC's possessed pig from all biome spawn lists

Compatibility

Requires From The Caves to be installed. This mod patches it directly and will not function without it.

This mod has only been tested on From The Caves 0.6.926 on Forge 1.20.1.

mininotprime's From The Caves: https://www.curseforge.com/minecraft/mc-mods/from-the-caves

If you have any suggestions or issues about this mod please leave a comment!

Project description from CurseForge.

Pick your setup

From The Caves Patch 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

From The Caves Patch versions and loaders

6 of 6 releases match

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