ModsFinder

MobStacker

by frikinjay

MobStacker is a server-side optimization mod that merges nearby similar mobs into single stacked entities to lower the number of entities a world must process.

FabricForgeNeoForgeQuiltServer-side onlyGNU Lesser General Public License v3.0 onlyOpen source1.20.1 – 1.21.5

What it does

Mobs of the same kind that stand close together are combined into one stack, so a crowded spawn area keeps fewer physical entities loaded. The mod is aimed at servers with high mob density, large player bases and many entity-adding mods, where entity handling is a common cause of lag. A mob cap module limits how many mobs can accumulate, and the config file lets server owners tune the stacking behaviour further.

MobStacker needs Almanac and Let Me Despawn to run. The commands are gated behind operator permission level 2 and use the mobstacker prefix. A stacked entity carries a StackData tag, and setting CanStack to 0 on a mob keeps it out of stacking. Gains depend on server hardware, player count and the other mods installed, so the size of the improvement varies from server to server.

The project is open source under the GNU Lesser General Public License v3.0 only, and its source code and issue tracker are public. Files are published for Fabric, Forge, NeoForge and Quilt across 10 release versions 1.20.1 – 1.21.5, with snapshot builds also published.

Key features

  1. Mob stacking

    Similar mobs close to each other are merged into one stacked entity, which reduces the physical entity count.

  2. Mob cap management

    A mob cap module controls how many mobs can build up in an area, and the config file adjusts the limits.

  3. Stack exclusion tag

    Setting CanStack to 0 on an entity prevents it from being stacked with others.

  4. Operator commands

    Commands use the mobstacker prefix and require operator permission level 2.

Compatibility

Latest build for each game version and loader.

1.21.x6 of 6 versions with builds
1.21.51.0.14Not available1.0.141.0.14
1.21.41.0.13Not available1.0.131.0.13
1.21.31.0.12Not available1.0.121.0.12
1.21.21.0.14bNot available1.0.14b1.0.14b
1.21.11.0.14bNot available1.0.14b1.0.14b
1.211.0.14bNot available1.0.14b1.0.14b
1.20.x4 of 4 versions with builds
1.20.41.0.14b1.0.14bNot available1.0.14b
1.20.31.0.14b1.0.14bNot available1.0.14b
1.20.21.0.14b1.0.14bNot available1.0.14b
1.20.11.0.14b1.0.14bNot available1.0.14b
ReleaseBetaAlphaNot available

This mod also publishes snapshot builds. Snapshots are not shown in the matrix.

Requirements

Dependencies declared by the latest file for each loader.

Required 2

AlmanacAlmanac is a library used by my mods with mostly loader independent shared code between multiple mods to avoid duplication of code.
Required
Let Me DespawnImproves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
Required

Use cases

Who it’s for: Server owners running large or heavily modded worlds, and operators who want to tune mob stacking and mob caps through the config file.

How it compares

Full comparison

Entity Cleaner is a server-side helper that also reduces entity load, under All rights reserved and for 1.17 – 26.2 on Fabric, Forge, NeoForge and Quilt. Farm Friendly Mob Stacking covers 1.21.6 – 26.2 and is also server-side, with an All rights reserved license. NovaStack Performance+ is a client-side Fabric mod under the MIT License for 1.21.10, so it does not touch the server. MobStacker stays on the server and is open source.

ModLoadersGame versionsEnvironmentUpdated
MobStackerFabric, Forge, NeoForge and Quilt1.20.1 – 1.21.5Server-side only2025-04-09
Entity CleanerFabric, Forge, NeoForge and Quilt1.17 – 26.2Server required, client optional2026-07-04
Farm Friendly Mob StackingFabric, Forge, NeoForge and Quilt1.21.6 – 26.2Server required, client optional2026-08-12
NovaStack Performance+Fabric1.21.10Client-side only2026-06-04

Questions

Does MobStacker need to be installed on the client?

No. Players join without it, since only the server has to run the mod.

Which dependencies does MobStacker require?

Almanac and Let Me Despawn are required. Both must be installed alongside MobStacker.

Can stacking be turned off for a specific mob?

Yes. Setting CanStack to 0 on an entity keeps it from being stacked with others.

Which game versions are supported?

Files cover 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4 and 1.21.5, with the latest Fabric and NeoForge files built for 1.21.5.

In the catalog

MobStacker is one of 3,545 Optimization mods on ModsFinder, and one of 2,575 Optimization mods for Fabric. 15,307 mods support Minecraft 1.21.5.

More from frikinjay

All projects

Similar mods

What the author says

MobStacker is a performance Minecraft mod to optimize entity handling, addressing a common cause of performance issues in vanilla and modded environments. By intelligently "stacking" similar mobs in close proximity, MobStacker significantly reduces server load and enhances client-side performance without compromising…
frikinjay, on the Modrinth page

Official listing

Owner
frikinjay
Published
2024-10-11
Updated on Modrinth
2025-04-09
Facts verified
2026-10-15

Tags