Description
# EntityStacker (Minecraft Forge 1.20.1)
EntityStacker is a lightweight server and client performance optimization mod for Minecraft Forge 1.20.1. Designed to eliminate entity lag from massive mob farms, automated storage systems, and large-scale mining, it consolidates nearby dropped items and identical mobs into single entities with clean overhead quantity tags.
---
## Core Features
### 1. Unlimited Dropped Item Stacking
* Beyond the 64-Item Cap: Identical dropped items (matching item ID and NBT data) within a 1-block radius automatically merge into a single entity, supporting up to 1,000,000 items per stack.
* Single-Item 3D Rendering: Stacked items on the ground always render as a single clean item model instead of cluttered multi-item piles—keeping client FPS smooth even with thousands of items dropped.
* Clean Quantity Labels: Displays readable overhead counters such as Iron Ingot x525 (automatically hides x1 for single items).
* Safe Inventory & Hopper Handling: Calculates exact free inventory slots when picked up by players or pulled by Hoppers and Hopper Minecarts, preventing item loss or duplication bugs.
### 2. Smart Mob & Villager Stacking
* All Mob Types Supported: Groups friendly animals, golems, hostile monsters, and villagers into stacked entities (e.g., Cow x66, Zombie x40, Librarian x12).
* Strict Attribute Separation:
* Villagers: Separates villagers strictly by profession, level, and age. Right-clicking a stack to open the trading GUI—or trading with a villager—safely detaches a single villager so trades and XP are never lost.
* Hostile Mobs & Animals: Separates babies from adults, preserves sheep wool colors and slime/magma cube sizes, and excludes mobs with custom Name Tags, tamed owners, leashes, chests, or special armor/enchanted weapons.
* Dynamic HP & Damage Splitting: When a stacked group takes partial damage (such as Sweeping Edge or melee hits), it splits cleanly into two groups: damaged mobs with reduced HP and undamaged mobs at full HP. Killing stacked mobs calculates accurate loot tables (including Looting enchantments) and XP orbs for every slain entity.
### 3. Anti-Xray Overhead Tags
* Overhead stack counters only render within direct line-of-sight and configurable range—preventing mob names from bleeding through walls, floors, or underground caves.
---
## Configuration (config/entitystacker-common.toml)
Customize behavior anytime in your Forge config folder:
* Enable or disable item stacking and mob categories independently (stackFriendly, stackHostile, stackVillagers).
* Customize merge radius for items (default: 1.0 block) and mobs.
* Configure maximum stack limits, scan intervals, and name tag render distance.
---
## Installation & Compatibility
1. Install Minecraft Forge 1.20.1.
2. Place entitystacker-1.0.0.jar into your .minecraft/mods (or server mods) folder.
3. Works seamlessly on both Singleplayer and Dedicated Multiplayer Servers (must be installed on both server and client for overhead tag rendering).






