
CobbleStacker
CobbleStacker is a server-side Fabric mod that reduces lag by automatically merging nearby identical mobs, ground items, and spawners into a single entity with a stack counter, fully compatible with Cobblemon.
- Загрузки
- 2K
- Подписчики
- 5
- Обновлён
- 26 марта 2026 г.
- Лицензия
- MIT
Опубликован 6 февраля 2026 г.
CobbleStacker is a server-side Fabric mod for Minecraft 1.21 designed to significantly reduce entity lag by intelligently stacking mobs, ground items, and spawners. Fully compatible with Cobblemon — all Pokemon are
automatically excluded from stacking.
Mob Stacking
- Automatically merges nearby identical mobs into a single entity with a visible nametag (e.g. "x16 Zombie")
- Respects mob attributes: variant, color, size, baby/adult, tamed owner, profession, and more
- Configurable death behavior: KILL_ONE (kills one and respawns the stack with reduced count) or KILL_ALL (kills the entire stack with multiplied drops and XP)
- Entities with name tags can be excluded from stacking
- Blacklist support by entity type and world
Item Stacking
- Merges ground items of the same type beyond vanilla limits (up to 1024 per stack by default)
- Custom nametags showing the real item count
- Built-in auto-clear system that removes old item stacks after a configurable time, with a whitelist for valuable items
- Manual clearlag command for instant cleanup
Spawner Stacking
- Stack multiple spawners of the same type by right-clicking with a spawner in hand
- Floating hologram displays the spawner type and stack count
- Mobs spawned from stacked spawners come out pre-stacked
- Silk Touch support for spawner drops
- Automatic spawner property repair to prevent broken spawners
- Persistent data saved to JSON
General
- Fully configurable via cobblestacker.json
- Admin commands: /cobblestacker reload, stats, info, kill, clear, clearlag, debug, fixspawner, setstack
- Lightweight and optimized with batch processing, caching, and minimal overhead
- No client-side installation required
Центр версий
16 версийЧенджлог
1.1.0Релиз1.21.1 · 26 марта 2026 г.
The neoforge.mods.toml used ${mod_version} as a placeholder, but the build.gradle had no processResources block to replace it with the actual value. So the
literal string ${mod_version} ended up in the jar, which NeoForge rejected as an invalid version number.
1.1.0Релиз1.21.1 · 17 марта 2026 г.
CobbleStacker v1.1.0 - Changelog
Spawner-Only Mob Stacking
Mobs will now only stack if they were spawned by a mob spawner. Natural mobs (ones that spawn in caves, at night, etc.) will behave completely vanilla and
won't be stacked together. This makes gameplay feel much more natural while still keeping your spawner farms optimized and lag-free.
This is enabled by default. If you want the old behavior (stack all mobs), set "mobOnlySpawnerStack": false in the config.
Item Nametag Visibility Fix
Fixed a bug where setting "itemNametagAlwaysVisible": false would make item stack nametags completely invisible instead of showing them when you're nearby
(like mob nametags do). Now when set to false, item nametags will appear when you're within range of the item stack and disappear when you walk away
1.1.0Релиз1.21.1 · 17 марта 2026 г.
CobbleStacker v1.1.0 - Changelog
Spawner-Only Mob Stacking
Mobs will now only stack if they were spawned by a mob spawner. Natural mobs (ones that spawn in caves, at night, etc.) will behave completely vanilla and
won't be stacked together. This makes gameplay feel much more natural while still keeping your spawner farms optimized and lag-free.
This is enabled by default. If you want the old behavior (stack all mobs), set "mobOnlySpawnerStack": false in the config.
Item Nametag Visibility Fix
Fixed a bug where setting "itemNametagAlwaysVisible": false would make item stack nametags completely invisible instead of showing them when you're nearby
(like mob nametags do). Now when set to false, item nametags will appear when you're within range of the item stack and disappear when you walk away
1.0.3Релиз1.21.1 · 11 марта 2026 г.
The crash was caused by a rare timing issue — when the server was processing item stacks, another mod or the game itself could add or remove entities at
the same time. This corrupted the internal list Minecraft uses to track entities, causing the server to crash.
We fixed it by making the plugin work on a safe copy of the entity list instead of the live one, so it can't be affected by changes happening at the same time. You shouldn't see this crash anymore.
1.0.3Релиз1.21.1 · 11 марта 2026 г.
The crash was caused by a rare timing issue — when the server was processing item stacks, another mod or the game itself could add or remove entities at
the same time. This corrupted the internal list Minecraft uses to track entities, causing the server to crash.
We fixed it by making the plugin work on a safe copy of the entity list instead of the live one, so it can't be affected by changes happening at the same time. You shouldn't see this crash anymore.
1.0.1Релиз1.21.1 · 10 марта 2026 г.
● Changelog v1.0.1 / v1.0.2:
Fixed console spam caused by vanilla Minecraft logging death messages for named entities. Since stacked mobs have custom display names (e.g. "x2 Glow Squid"),
the server would log "Named entity ... died: ..." every time a stacked mob died. The fix clears the stacking nametag right before the death logic runs, so
vanilla no longer treats them as named entities. Player-applied nametags are preserved and unaffected.
1.0.2Релиз1.21.1 · 10 марта 2026 г.
● Changelog v1.0.1 / v1.0.2:
Fixed console spam caused by vanilla Minecraft logging death messages for named entities. Since stacked mobs have custom display names (e.g. "x2 Glow Squid"),
the server would log "Named entity ... died: ..." every time a stacked mob died. The fix clears the stacking nametag right before the death logic runs, so
vanilla no longer treats them as named entities. Player-applied nametags are preserved and unaffected.
1.0.0Релиз1.21.1 · 8 марта 2026 г.
Bug fix — Watchdog crash (ItemStackManager.java):
- processAutoClear and forceClear were calling item.discard() while iterating level.getAllEntities() (a live iterable), causing a ConcurrentModificationException that froze the server thread. Both methods now collect entities into a toRemove list first, then discard after iteration.
Feature — Mob nametag visibility distance (3 files):
- ModConfig.java: Added mobNametagVisibleDistance (default 0 = always visible, like current behavior). Set it to e.g. 32 to only show nametags within 32 blocks.
- MobStackManager.java:
- updateNametag no longer forces setCustomNameVisible(true) when distance mode is active
- New updateNametagVisibility(server) method checks each stacked mob against all players in the level and toggles visibility based on squared distance
- CobbleStackerMod.java: Calls updateNametagVisibility every 10 ticks (0.5s) when distance mode is enabled
Комментарии
Загружаем…