MobStacker
1.0.0MobStacker is a lightweight performance plugin that stacks nearby mobs into a single entity, drastically reducing server lag caused by mob farms.
MobStacker — Boost Your Server TPS Instantly
MobStacker is a performance plugin designed for those who want to run mob farms without destroying their server TPS. It stacks nearby mobs of the same type into a single entity, dramatically reducing lag without requiring complex setup.
Installation Guide
This plugin is compatible from version 1.21 to 1.21.x (Paper only).
Download the latest version of the plugin and upload it to your server's plugins/ folder.
Once uploaded, restart the server for the changes to take effect.
Edit plugins/MobStacker/config.yml to customize the plugin to your needs.
Use /ms reload to apply config changes without restarting.
Requires Paper 1.21+ and Java 21+. Spigot is not supported.
✅ Features
Smart /ms stackall command that forces stacking of all loaded mobs instantly.
Per-entity configuration — set max stack size, radius, AI toggle and drop multiplier per mob type.
Per-world configuration — different stack limits for each world.
AI disabling for stacked mobs to save CPU cycles and improve TPS dramatically.
Drop multiplication — killing a stack rewards full drops for every mob in it.
Split on death — when the stack head dies, the rest of the stack survives as a new entity.
Fully customizable nametag format with color codes and placeholders.
Stack conditions — configure whether to stack babies, tamed animals, breeding mobs, leashed mobs, etc.
Spawner-only mode — stack only mobs that come from spawners.
/ms toggle to enable or disable the plugin live without restarting.
bStats integration for anonymous usage statistics.
config.yml file to customize all functions to the maximum, fully documented with comments.

Permissions
mobstacker.admin — Access to all MobStacker commands (default: OP)
mobstacker.bypass — Tamed mobs of this player won't be stacked
mobstacker.seeinfo — View stack info when looking at a mob
Commands
/ms reload — Reload the configuration
/ms info — Show active stack statistics
/ms stackall — Force stack all loaded mobs immediately
/ms killall — Kill all stacks of a specific mob type
/ms check — Inspect the mob you are looking at
/ms toggle — Enable or disable the plugin on the fly
/ms stats — Stats breakdown by mob type
/ms clearall — Remove all active stacks
📊 Performance Impact
ScenarioWithout MobStackerWith MobStacker500 zombies in a farm500 entities1 entity (stack of 500)Server TPS8 TPS20 TPSAI calculations500x per tick1x per tick
Example Config (per mob)
ZOMBIE:
max-stack-size: 256
stack-radius: 12
disable-ai: true
multiply-drops: true
Made with for server owners who love mob farms but hate lag.
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta