**Salt’s Animal Farm 0.2**
This update focuses heavily on server performance, especially for crowded farms with many animals packed into small areas.
**Performance**
- Reduced CPU load from animal comfort pathfinding in crowded farms.
- Added throttling so animals do not constantly search for new comfort/space targets.
- Added a shared per-tick pathfinding budget for comfort tasks to prevent large groups from overwhelming the server thread.
- Added a per-search path check limit so one animal cannot spend too much time evaluating comfort spots.
- Added caching for nearby threat checks to reduce repeated hostile/fear calculations.
- Improved behavior gating so disabled systems skip more work instead of still running partial logic.
**New Config Options**
- Added `comfortSpaceRetargetIntervalTicks`.
Controls how often an active comfort task can search for a better space target. Default: `40`.
- Added `comfortMaxPathChecksPerSearch`.
Limits how many pathfinding checks one comfort search can perform before deferring. Default: `12`.
- Added `comfortPathfindingBudgetPerTick`.
Sets a shared comfort pathfinding budget across animals each server tick. Default: `64`.
- Added `comfortOutcomeCopyRadius`.
When greater than `0`, animals can copy a recent direct comfort result from another nearby animal instead of recalculating everything. Default: `0`, disabled.
- Added `onlyBredAnimalsUseWeightAndComfort`.
When enabled, only animals born from breeding use the weight, comfort, sickness, fear, and custom loot systems. Wild animals act vanilla. Default: `false`.
**Behavior Changes**
- Hide-from-rain behavior is now disabled by default to reduce unexpected pathfinding load.
- Animals that copy a comfort result do not count as valid sources for future copied results, preventing copy chains.
- Comfort outcome sharing only uses animals that directly completed their own comfort task within the last 5 minutes.
- Animals born from breeding now persist that status, so the bred-only config works across saves/reloads.
**Compatibility**
- Changes were applied across all supported versions and loaders:
- Minecraft `1.20.1` Fabric
- Minecraft `1.20.1` Forge
- Minecraft `1.21.1` Fabric
- Minecraft `1.21.1` NeoForge
- Minecraft `1.21.11` Fabric
- Minecraft `1.21.11` NeoForge
- Minecraft `26.1.2` Fabric
- Minecraft `26.1.2` NeoForge
**Build**
- Version bumped from `0.1` to `0.2`.
- All loader builds completed successfully.
Developer information
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle.
maven { name = "Modrinth"; url = "https://api.modrinth.com/maven" }