promotional bannermobile promotional banner

Naturalist Lag Fix

Fixes a memory leak in Naturalist that slows down servers over time (whale & shark body parts).

Naturalist Lag Fix

A small fix for a memory leak in [Naturalist](https://www.curseforge.com/minecraft/mc-mods/naturalist) (2.0.5, NeoForge 1.21.1) that makes servers slower and slower the longer they run.

The problem
Whales and Great White Sharks have multi-part bodies. Naturalist registers every body part in a list attached to the world, but only removes them when the creature dies or is discarded. When the creature is simply unloaded with its chunk, its parts stay in the list forever — and a new copy is added each time the chunk reloads.

Every time the game searches for nearby entities (mob AI, collisions, item pickup, Create contraptions…), Naturalist loops over that whole list. On our server, `naturalist$includeMobParts` ended up taking about 33% of every server tick in spark.

The fix
- Body parts are removed as soon as their creature leaves the world, including when its chunk unloads.
- Every 10 seconds, any leftover orphan parts are cleaned up.
- Nothing else in Naturalist is changed: whales and sharks behave exactly the same.

Installation
- Server: required.
- Client: recommended (the same leak exists client-side).
- Requires Naturalist. When the fix works, a line `[NaturalistFix] … parties fantomes retirees` appears in the log.

Credits
- Naturalist by Starfish Studios (Crispytwig): all credit for the mod, its creatures and its content goes to them. This is an unofficial fix, not affiliated with the Naturalist team. If they fix the leak upstream, you won't need this mod anymore.

Naturalist Lag Fix Team

profile avatar
Owner
  • 1
    Followers
  • 27
    Projects
  • 11.8K
    Downloads

I make NeoForge 1.21.1 mods: server-side fixes for popular mods, clean HUDs, quality-of-life tools and Illama Raids, a full boss raid system. Lightweight, configurable, in English and French. Feedback welcome!

More from IllamaView all

  • Familiers – Pet Manager project image

    Familiers – Pet Manager

    Manage all your tamed animals and mounts from the Esc menu: teleport, store, hotkeys, homes, behaviors, Ice and Fire & Aether support.

    • 461
    • October 26, 2026
  • Compass HUD project image

    Compass HUD

    A compass bar above your hotbar showing cardinal directions and the heads of tracked players, with distance.

    • 219
    • October 21, 2026
  • Spawn & Homes project image

    Spawn & Homes

    An operator picks the exact server spawn, everyone gets a "Back to spawn" button in the pause menu, and each player can set up to 10 homes from a "My homes" screen — never during combat.

    • 23
    • October 17, 2026
  • Illama Inc Core project image

    Illama Inc Core

    Plays the whole Illama Inc modpack in French: about 80,000 translated lines across 230+ mods, the full AE2 guide and quest texts, loaded automatically on top of every mod.

    • 73
    • October 17, 2026
  • Familiers – Pet Manager project image

    Familiers – Pet Manager

    Manage all your tamed animals and mounts from the Esc menu: teleport, store, hotkeys, homes, behaviors, Ice and Fire & Aether support.

    • 461
    • October 26, 2026
  • Compass HUD project image

    Compass HUD

    A compass bar above your hotbar showing cardinal directions and the heads of tracked players, with distance.

    • 219
    • October 21, 2026
  • Spawn & Homes project image

    Spawn & Homes

    An operator picks the exact server spawn, everyone gets a "Back to spawn" button in the pause menu, and each player can set up to 10 homes from a "My homes" screen — never during combat.

    • 23
    • October 17, 2026
  • Illama Inc Core project image

    Illama Inc Core

    Plays the whole Illama Inc modpack in French: about 80,000 translated lines across 230+ mods, the full AE2 guide and quest texts, loaded automatically on top of every mod.

    • 73
    • October 17, 2026