Description
HTStacker - Entity Stacking Plugin for Hytale

Overview
HTStacker is a powerful performance optimization plugin that automatically stacks identical mobs into single entities. Instead of having 50 individual skeletons spawning from a mob farm, you'll have one skeleton displaying "Skeleton x50" - dramatically reducing entity count and server load.
Features
- Automatic Mob Stacking - Nearby mobs of the same type automatically merge into stacks
- Configurable Stack Limits - Set maximum stack size (default: 64)
- Configurable Merge Radius - Control how close mobs need to be to stack (default: 5 blocks)
- Smart Death Handling - When a stacked mob takes lethal damage, only one mob "dies" from the stack
- Health Restoration - After removing one from the stack, the entity is restored to full health
- Custom Loot Tables - Fully configurable JSON-based loot drops per mob type
- Nameplate Display - Shows stack count above mobs (e.g., "Mob x32")
- Debug Mode - Toggle detailed logging for troubleshooting
- Supported Plugins - Compatible with RPG-Levels and Pets+
Performance Benefits
| Scenario | Without HTStacker | With HTStacker |
|---|---|---|
| Mob Farm (100 mobs) | 100 entities | 2-5 entities |
| Natural Spawns | High entity count | Reduced by 80%+ |
| Server TPS | Can drop under load | Stays stable |
Perfect for servers with mob farms, grinders, or high player counts!
Configuration
Edit plugins/HTStacker/config.json:
{
"enabled": true,
"debug": false,
"mergeRadius": 5.0,
"maxStack": 64,
"showNameplates": true,
"nameplateFormat": "{type} x{count}",
"excludedTypes": ["player", "npc"],
"includedTypes": [],
"rpgLevelingIntegration": true,
"petsPlusIntegration" = true,
"minMobsToStack": 3
}
| Option | Description |
|---|---|
enabled |
Enable/disable the plugin |
debug |
Enable detailed debug logging |
mergeRadius |
How close mobs must be to merge (in blocks) |
maxStack |
Maximum mobs per stack |
showNameplates |
Show "Mob x5" above stacked entities |
nameplateFormat |
Customize nameplate text |
excludedTypes |
Mob types that should never stack |
includedTypes |
If set, ONLY these types will stack |
Custom Loot Tables
Edit plugins/HTStacker/loottable.json to customize drops:<button class="Q Do" title="Copy code" aria-label="Copy code to clipboard"></button>
[
{
"mobType": "skeleton",
"drops": [
{
"itemId": "Ingredient_Bone_Fragment",
"minCount": 1,
"maxCount": 3,
"chance": 1.0
},
{
"itemId": "Ingredient_Fabric_Scrap_Cotton",
"minCount": 1,
"maxCount": 2,
"chance": 0.5
}
]
}
]
| Field | Description |
|---|---|
mobType |
The mob type this loot applies to (lowercase) |
itemId |
The item ID to drop |
minCount |
Minimum items to drop |
maxCount |
Maximum items to drop |
chance |
Drop chance (0.0 to 1.0, where 1.0 = 100%) |
Default Loot Tables Included
The plugin comes with pre-configured loot for common mobs:
- Zone 1: Fox, Boar, Rabbit, Horse, Cow, Goat, Turkey
- Underground: Skeleton, Cave Spider, Rat, Bat
- Zone 2/3: Wolf, White Wolf, Lizardman, Coyote
- Zone 4: Void Eye
- Bosses: Stone Guardian, Golem
Permissions
Currently no permissions required - the plugin works automatically for all mobs.
Installation
- Download
HTStacker-1.0-SNAPSHOT.jar - Place in your server's
mods/folder - Restart the server
- Configuration files are auto-generated in
plugins/HTStacker/
Support
Report issues or request features on the plugin page.
Reduce lag. Stack mobs. Improve performance.


