
MobStacker 是一款旨在优化实体处理性能的 Minecraft 模组,用于解决原版和整合包环境中常见的性能问题。通过智能地将邻近的同类生物“堆叠”在一起,MobStacker 在不影响游戏玩法机制的前提下,显著降低了服务器负载并提升了客户端性能。
前置要求:Dungeon Config 和 Fabric API。MobStacker 仅限服务端:玩家无需安装即可加入服务器。
注意:MobStacker 会保留堆叠实体内的所有掉落物和生物属性。使用命名牌命名的生物(Named mobs)不会参与堆叠,以保持其独特性。
主要优势
- 服务器性能提升:大幅减少实体处理的开销。
- 增强客户端 FPS:降低客户端渲染的压力。
- 优化的网络流量:最小化实体数据传输。
- 更整洁的游戏体验:减少生物密集区域的视觉杂乱。
- 内存占用降低:降低整体内存消耗。
性能提升
虽然实际的性能增益因服务器配置、玩家数量和模组设置而异,但 MobStacker 能带来显著的改善,特别是在以下环境中:
- 高生物密度
- 大量添加实体的模组
- 庞大且活跃的玩家群体
? 注意:
- MobStacker 内置了可配置的生成上限模块,以减少每个区块的生物生成数量。
功能特性
| 功能 |
描述 |
| 智能堆叠 |
自动在可配置的半径内合并相同类型的生物 |
| 严格匹配 |
仅堆叠可见变体和保存数据完全匹配的生物,包括其他模组添加的数据(精英词缀、等级、所有者等) |
| 自定义堆叠大小 |
可全局或按规则设置首选的最大堆叠数量 |
| 灵活的生命值管理 |
可配置堆叠生命值、死亡机制和批量击杀选项 |
| 倍增掉落 |
剪毛、刷毛和自然掉落物(如蛋、甲壳...)随堆叠大小成比例增加 |
| 批量繁殖 |
一次喂食即可繁殖堆叠中的多个生物 |
| 堆叠战斗 |
可选择将堆叠的近战伤害乘以其大小 |
| 选择性堆叠 |
排除特定实体、实体标签或整个模组 |
| 规则系统 |
为特定生物、维度、生物群系、区块或区域更改任何设置 |
| 领地支持 |
玩家可以为自己拥有的领地创建规则(FTB Chunks, Open Parties and Claims) |
| 堆叠分离 |
分离物品可将一个生物从堆叠中分离;同化物品可切换该生物是否允许堆叠 |
| 堆叠名称 |
针对玩家的本地化堆叠标签(例如“僵尸 x5”),这些名称永远不会保存到生物身上 |
| 游戏内配置 |
所有选项均可在 Dungeon Config 设置界面中进行编辑 |
永不堆叠的生物
为了保持游戏完整性,MobStacker 不会对以下生物进行堆叠:
- 幼崽、无 AI 的生物以及拥有自定义名称的生物
- 骑乘者、被骑乘者或被拴住的生物、佩戴鞍具的生物以及穿戴身体护甲的生物
- 驯服或属于玩家的生物、马及其亲属、从桶中释放的生物
- 携带物品的生物、处于求偶状态的动物以及玩家建造的铁傀儡
- 处于活跃袭击中的掠夺者和巡逻队队长
- 拥有工作站点、床或聚会点的村民(无工作的村民和笨蛋可以堆叠;一旦村民认领工作站点或床,它就会离开堆叠,因此交易大厅、繁殖场和铁傀儡农场仍可正常工作)
- 手持必定掉落装备的生物
- Boss(
#c:bosses 标签中的任何实体或基础生命值至少达到 bossHealthThreshold 的生物),除非启用了 stackBosses
- 任何位于
#mobstacker:unstackable 实体类型标签中的实体,默认情况下包括末影龙、凋灵、监守者、远古守卫者、流浪商人、悦灵、蜜蜂、恼鬼、快乐恶魂、铜傀儡和咯噔
| 选项 |
描述 |
默认值 |
breedBatchSize |
一次喂食可以让多少只生物进行批量繁殖。设为 1 保持原版繁殖机制 |
1 |
breedCooldown |
批量繁殖后,需要等待的刻数才能再次进行批量繁殖 |
6000 |
战斗
| 选项 |
描述 |
默认值 |
stackOutgoingDamage |
根据堆叠大小乘以近战伤害 |
false |
maxDamageMultiplier |
stackOutgoingDamage 可应用的最大伤害乘数 |
16 |
物品
| 选项 |
描述 |
默认值 |
enableSeparator |
右键点击堆叠使用分离器,会分离出一只生物(分离出的生物将不再堆叠) |
false |
consumeSeparator |
确定分离器在使用时是否被消耗(或损坏) |
true |
separatorItem |
指定用作分离器的物品 |
"minecraft:diamond" |
enableAssimilator |
右键点击生物使用吸收器,切换其是否可以堆叠 |
false |
consumeAssimilator |
确定吸收器在使用时是否被消耗(或损坏) |
true |
assimilatorItem |
指定用作吸收器的物品 |
"minecraft:emerald" |
显示
| 选项 |
描述 |
默认值 |
showStackNames |
在堆叠生物上方显示堆叠数量。仅发送给玩家,不保存在生物实体上 |
true |
alwaysShowStackNames |
始终显示堆叠数量,而不仅仅是在注视该生物时 |
false |
stackNameFormat |
标签格式。{name} 是每种语言中生物的名称,{count} 是堆叠数量 |
"{name} x{count}" |
过滤器
| 选项 |
描述 |
默认值 |
ignoredEntities |
排除在堆叠之外的实体列表 |
["minecraft:ender_dragon", "minecraft:vex"] |
ignoredMods |
排除在堆叠之外的模组 ID 列表 |
["corpse", "cobblemon"] |
stackVillagers |
允许无职业村民和笨蛋村民堆叠 |
true |
stackBosses |
允许 Boss 堆叠 |
false |
bossHealthThreshold |
基础最大生命值至少为此值的未标记生物被视为 Boss。设为 0 关闭此功能 |
150.0 |
生物上限
| 选项 |
描述 |
默认值 |
enableMobCapOverrides |
用以下值替换原版的按类别生物上限 |
true |
monsterMobCap |
怪物(原版为 70) |
25 |
creatureMobCap |
动物(原版为 10) |
5 |
ambientMobCap |
蝙蝠(原版为 15) |
7 |
axolotlsMobCap |
美西螈(原版为 5) |
2 |
undergroundWaterCreatureMobCap |
发光鱿鱼(原版为 5) |
2 |
waterCreatureMobCap |
鱿鱼和海豚(原版为 5) |
2 |
waterAmbientMobCap |
鱼类(原版为 20) |
8 |
规则与领地
| 选项 |
描述 |
默认值 |
claimRules |
允许非管理员为他们自己或其团队领有的区块制定规则 |
true |
maxRulesPerTeam |
一名玩家或团队可以拥有的规则数量上限 |
10 |
playerRules.<setting> |
玩家可以更改哪些设置以适用于他们自己的领地规则 |
堆叠、最大堆叠大小、数据/声音匹配、堆叠名称和村民堆叠 |
规则
规则可以针对某些生物或某些地点更改设置,例如在怪物农场中增大堆叠大小,或在 Boss 竞技场中完全禁止堆叠。一条规则可以匹配:
- 生物:ID 如
minecraft:zombie,标签如 #minecraft:undead,或整个模组如 @alexsmobs(空 = 所有生物)
- 维度:如
minecraft:the_nether(空 = 所有维度)
- 生物群系:ID 如
minecraft:plains 或标签如 #minecraft:is_ocean(空 = 所有生物群系)
- 地点:区块或方块区域,例如
minecraft:overworld 0 0 63 63(空 = everywhere)
在规则内部,上述各部分中的每个设置(除了模组/实体的过滤器、生物上限和检查间隔)都可以被覆盖或保留为全局设置,并且可以关闭堆叠本身。当多条规则匹配同一个生物时,列表中排在第一条的规则生效。规则按世界保存于 serverconfig/mobstacker-rules.json。
如果安装了 FTB Chunks(配合 FTB Teams)或 Open Parties and Claims,非管理员玩家也可以创建规则。他们的规则仅在其团队领有的区块内生效,且只能更改服务器允许的特定设置。
命令
所有命令均以 /mobstacker 为前缀。除 /mobstacker rule 外,其余命令均需管理员权限(等级 2)。
通用
# 从磁盘重新加载配置
/mobstacker reload
# 显示某生物的堆叠信息
/mobstacker info [entity]
# 设置特定实体的堆叠大小
/mobstacker setStackSize [entity] [size]
配置命令
# 切换整个堆叠死亡
/mobstacker stackerConfig killWholeStackOnDeath [true|false]
# 切换生命值堆叠
/mobstacker stackerConfig stackHealth [true|false]
# 设置最大堆叠大小
/mobstacker stackerConfig maxStackSize [value]
# 设置堆叠半径
/mobstacker stackerConfig stackRadius [value]
# 设置生物寻找堆叠的频率(刻)
/mobstacker stackerConfig stackCheckInterval [value]
# 切换堆叠近战伤害乘数
/mobstacker stackerConfig stackOutgoingDamage [true|false]
# 设置每次击杀导致多少只生物死亡
/mobstacker stackerConfig killBatchSize [value]
# 设置批量繁殖的大小和冷却时间
/mobstacker stackerConfig breedBatchSize [value]
/mobstacker stackerConfig breedCooldown [value]
# 切换工具和武器磨损缩放
/mobstacker stackerConfig scaleToolDamage [true|false]
/mobstacker stackerConfig damageWeaponPerHit [true|false]
# 切换村民堆叠
/mobstacker stackerConfig stackVillagers [true|false]
# 切换分离器功能
/mobstacker stackerConfig separator enableSeparator [true|false]
# 切换分离器消耗
/mobstacker stackerConfig separator consumeSeparator [true|false]
# 设置分离器物品
/mobstacker stackerConfig separator separatorItem [item_id]
# 切换同化器功能
/mobstacker stackerConfig assimilator enableAssimilator [true|false]
# 切换同化器消耗
/mobstacker stackerConfig assimilator consumeAssimilator [true|false]
# 设置同化器物品
/mobstacker stackerConfig assimilator assimilatorItem [item_id]
实体与模组管理
# 忽略特定实体
/mobstacker ignore entity [entity_id]
# 忽略来自某模组的所有实体
/mobstacker ignore mod [mod_id]
# 从忽略列表中移除实体
/mobstacker unignore entity [entity_id]
# 从忽略列表中移除模组
/mobstacker unignore mod [mod_id]
注意:可以给实体添加标签 {StackData: {CanStack:0b}} 以防止其堆叠。也可以通过数据包将实体类型添加到 #mobstacker:unstackable 标签中。
生物上限管理
# 切换生物上限覆盖
/mobstacker mobCapConfig enableMobCapOverrides [true|false]
# 设置某类生物的上限
/mobstacker mobCapConfig monsterMobCap [value]
/mobstacker mobCapConfig creatureMobCap [value]
/mobstacker mobCapConfig ambientMobCap [value]
/mobstacker mobCapConfig axolotlsMobCap [value]
/mobstacker mobCapConfig undergroundWaterCreatureMobCap [value]
/mobstacker mobCapConfig waterCreatureMobCap [value]
/mobstacker mobCapConfig waterAmbientMobCap [value]
规则管理
聊天中的规则页面是可点击的,因此大多数操作无需输入完整命令即可执行。
# 列出规则(或仅输入 /mobstacker rule)
/mobstacker rule list
# 创建或删除规则
/mobstacker rule add [name]
/mobstacker rule remove [rule]
# 打开某规则的页面
/mobstacker rule [rule]
# 开启或关闭某规则
/mobstacker rule [rule] enable
/mobstacker rule [rule] disable
# 当多条规则匹配时,更改优先级更高的规则(仅限操作员)
/mobstacker rule [rule] priority [position]
# 编辑规则所涵盖的生物、维度与生物群系
/mobstacker rule [rule] mob [add|remove] [mob_id|#tag|@mod_id]
/mobstacker rule [rule] mob clear
/mobstacker rule [rule] dimension [add|remove] [dimension_id]
/mobstacker rule [rule] dimension here
/mobstacker rule [rule] biome [add|remove] [biome_id|#tag]
/mobstacker rule [rule] biome here
# 向规则中添加地点
/mobstacker rule [rule] place chunk [chunkX] [chunkZ]
/mobstacker rule [rule] place chunks [radius]
/mobstacker rule [rule] place area [x1] [z1] [x2] [z2]
/mobstacker rule [rule] place remove [number]
/mobstacker rule [rule] place clear
# 查看和更改规则的设置
/mobstacker rule [rule] settings [page]
/mobstacker rule [rule] set [setting] [value]
/mobstacker rule [rule] reset [setting]
API
其他模组可以通过 MobStackerAPI 进行集成:
getStackSize(mob):一个生物代表的数量
addMergingCondition(...):两个生物合并所需满足的额外条件
addDeathHandler(...):当堆叠中的生物死亡且其余部分接替其位置时触发
addEntityDataModifiers(...):调整替换已死亡或爆炸的堆叠生物的数据
addEntityDataModifiersOnSeparation(...):调整使用分隔器分离出的生物数据
registerClaimProvider(...):为其他领地保护模组提供支持
补充说明
- 生物会定期寻找附近的堆叠以加入(每
stackCheckInterval 刻钟一次)。
- 当堆叠的苦力怕爆炸或末影人拾取方块时,只有该特定生物执行此动作;堆叠中的其余生物留在原地。
- 堆叠生物会在名称中显示堆叠大小(例如 “Zombie x5”),并以每位玩家各自的语言显示。
- 兼容多种实体类型:动物、怪物和 NPC。
请在 GitHub 上的问题追踪器中报告问题。

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 gameplay mechanics.
Requires: Dungeon Config and Fabric API. MobStacker is server side only: players don't need it installed to join.
Note: MobStacker preserves all loot and mob properties within stacked entities. Named mobs (via name tags) are exempt from stacking to maintain uniqueness.
Key Benefits
- Server Performance Boost: Dramatically reduces entity processing overhead.
- Enhanced Client FPS: Lowers strain on client-side rendering.
- Optimized Network Traffic: Minimizes entity data transmission.
- Cleaner Gameplay: Reduces visual clutter in mob-dense areas.
- Memory Usage Reduction: Lowers overall memory footprint.
Performance Improvement
While actual performance gains vary based on server specifications, player count, and mod configurations, MobStacker can provide substantial improvements, especially in environments with:
- High mob density
- Numerous entity-adding mods
- Large, active player bases
? Note:
- MobStacker has a built in configurable spawn cap module to reduce mob spawns per chunk.
Features
| Feature |
Description |
| Smart Stacking |
Automatically combines identical mob types within a configurable radius |
| Strict Matching |
Only stacks mobs whose visible variant and saved data match, including data added by other mods (elite affixes, levels, owners...) |
| Customizable Stacks |
Set preferred maximum stack sizes, globally or per rule |
| Flexible Health Management |
Configurable options for stack health, death mechanics and batch kills |
| Multiplied Drops |
Shearing, brushing and natural drops (eggs, scutes...) scale with the stack size |
| Batch Breeding |
Breed several mobs of a stack with one feeding |
| Stack Combat |
Optionally multiply a stack's melee damage by its size |
| Selective Stacking |
Exclude specific entities, entity tags or entire mods |
| Rules |
Change any setting for specific mobs, dimensions, biomes, chunks or areas |
| Claim Support |
Players can make rules for their own claims (FTB Chunks, Open Parties and Claims) |
| Stack Splitting |
Separator item splits a mob off a stack; assimilator item toggles whether a mob can stack |
| Stack Names |
Per-player localized stack labels (e.g. "Zombie x5") that are never saved onto the mob |
| In-game Config |
Every option is editable from the Dungeon Config settings screen |
What Never Stacks
To keep gameplay intact, MobStacker leaves these mobs alone:
- Babies, mobs with no AI and mobs with a custom name
- Riding, ridden or leashed mobs, saddled mobs and mobs wearing body armor
- Tamed or owned mobs, horses and their relatives, and mobs released from a bucket
- Mobs carrying items, animals in love mode and player-built iron golems
- Raiders in an active raid and patrol leaders
- Villagers with a job, bed or meeting point (jobless villagers and nitwits can stack; a villager leaves its stack the moment it claims a workstation or bed, so trading halls, breeders and iron farms keep working)
- Mobs holding equipment that is guaranteed to drop
- Bosses (anything in
#c:bosses or with at least bossHealthThreshold base health), unless stackBosses is on
- Anything in the
#mobstacker:unstackable entity type tag, which by default includes the Ender Dragon, Wither, Warden, Elder Guardian, Wandering Trader, Allay, Bee, Vex, Happy Ghast, Copper Golem and Creaking
Configuration
The config lives at config/mobstacker/mobstacker.json5 and can also be edited in-game from the Dungeon Config screen. Old mobstacker.json configs (including mob groups and chunk overrides) are imported automatically on first launch.
Stacking
| Option |
Description |
Default |
maxMobStackSize |
Maximum number of mobs in a single stack (1 - 4096) |
16 |
stackRadius |
Radius in blocks within which mobs attempt to stack |
6.0 |
stackCheckInterval |
How often, in ticks, each mob looks for a stack to join |
20 |
strictDataComparison |
Only stack mobs whose saved data also matches, including modded data |
true |
matchSoundVariants |
Also require pigs, cows, chickens, wolves and cats to sound the same |
false |
Death & Loot
| Option |
Description |
Default |
killWholeStackOnDeath |
Kill the whole stack at once, dropping loot and XP for every mob |
false |
killBatchSize |
How many mobs die per kill when the whole stack doesn't die. Loot is multiplied to match |
1 |
stackHealth |
Combines health of stacked mobs; the stack is worn down as a whole. Implies killWholeStackOnDeath |
false |
multiplyShearDrops |
Shearing or brushing a stack does it to every mob and multiplies the drops |
true |
scaleToolDamage |
Shears and brushes used on a stack wear down as if used on every mob |
true |
damageWeaponPerHit |
When a stack dies as a whole, each hit wears the weapon down for every mob in it |
false |
multiplyGiftDrops |
Multiply drops a mob produces on its own (chicken eggs, armadillo scutes...) |
true |
instantKillWholeStack |
/kill and falling out of the world remove the whole stack |
true |
Breeding
| Option |
Description |
Default |
breedBatchSize |
How many mobs of a stack can be bred with one feeding. 1 keeps vanilla breeding |
1 |
breedCooldown |
Ticks before a stack can be batch bred again |
6000 |
Combat
| Option |
Description |
Default |
stackOutgoingDamage |
Multiply a stack's melee damage by its size |
false |
maxDamageMultiplier |
The largest damage multiplier stackOutgoingDamage can apply |
16 |
Items
| Option |
Description |
Default |
enableSeparator |
Right-clicking a stack with the separator splits one mob off (the split mob won't stack again) |
false |
consumeSeparator |
Determines if separator item is consumed (or damaged) on use |
true |
separatorItem |
Specifies the item used as a separator |
"minecraft:diamond" |
enableAssimilator |
Right-clicking a mob with the assimilator toggles whether it can stack |
false |
consumeAssimilator |
Determines if assimilator item is consumed (or damaged) on use |
true |
assimilatorItem |
Specifies the item used as an assimilator |
"minecraft:emerald" |
Display
| Option |
Description |
Default |
showStackNames |
Show the stack size above stacked mobs. Only sent to players, never saved on the mob |
true |
alwaysShowStackNames |
Show the stack size at all times, not only when looking at the mob |
false |
stackNameFormat |
Label format. {name} is the mob's name in each player's language, {count} the stack size |
"{name} x{count}" |
Filters
| Option |
Description |
Default |
ignoredEntities |
List of entities excluded from stacking |
["minecraft:ender_dragon", "minecraft:vex"] |
ignoredMods |
List of mod IDs whose entities are excluded from stacking |
["corpse", "cobblemon"] |
stackVillagers |
Let jobless villagers and nitwits stack |
true |
stackBosses |
Allow bosses to stack |
false |
bossHealthThreshold |
Untagged mobs with at least this much base max health count as bosses. 0 turns this off |
150.0 |
Mob Caps
| Option |
Description |
Default |
enableMobCapOverrides |
Replace the vanilla per-category mob caps with the values below |
true |
monsterMobCap |
Monsters (vanilla 70) |
25 |
creatureMobCap |
Animals (vanilla 10) |
5 |
ambientMobCap |
Bats (vanilla 15) |
7 |
axolotlsMobCap |
Axolotls (vanilla 5) |
2 |
undergroundWaterCreatureMobCap |
Glow squid (vanilla 5) |
2 |
waterCreatureMobCap |
Squid and dolphins (vanilla 5) |
2 |
waterAmbientMobCap |
Fish (vanilla 20) |
8 |
Rules & Claims
| Option |
Description |
Default |
claimRules |
Let non-operators make rules for chunks they or their team have claimed |
true |
maxRulesPerTeam |
How many rules one player or team can own |
10 |
playerRules.<setting> |
Which settings players may change in rules for their own claims |
Stacking, max stack size, data/sound matching, stack names and villager stacking |
Rules
Rules change settings for some mobs or some places, like a bigger stack size in your mob farm or no stacking at all in a boss arena. A rule can match:
- Mobs: ids like
minecraft:zombie, tags like #minecraft:undead, or a whole mod like @alexsmobs (empty = every mob)
- Dimensions: like
minecraft:the_nether (empty = all)
- Biomes: ids like
minecraft:plains or tags like #minecraft:is_ocean (empty = all)
- Places: chunks or block areas, e.g.
minecraft:overworld 0 0 63 63 (empty = everywhere)
Inside a rule every setting from the sections above (except filters for mods/entities, mob caps and the check interval) can be overridden or left on Global, and stacking itself can be switched off. When several rules match a mob, the one listed first wins. Rules are saved per world in serverconfig/mobstacker-rules.json.
With FTB Chunks (with FTB Teams) or Open Parties and Claims installed, players who aren't operators can create rules too. Their rules only apply inside chunks their team has claimed, and they can only change the settings the server allows.
Commands
All commands are prefixed with /mobstacker. Everything except /mobstacker rule requires operator permissions (level 2).
General
# Reload the config from disk
/mobstacker reload
# Show stack information for a mob
/mobstacker info [entity]
# Set stack size for specific entity
/mobstacker setStackSize [entity] [size]
Configuration Commands
# Toggle whole stack death
/mobstacker stackerConfig killWholeStackOnDeath [true|false]
# Toggle health stacking
/mobstacker stackerConfig stackHealth [true|false]
# Set maximum stack size
/mobstacker stackerConfig maxStackSize [value]
# Set stack radius
/mobstacker stackerConfig stackRadius [value]
# Set how often mobs look for a stack (ticks)
/mobstacker stackerConfig stackCheckInterval [value]
# Toggle stack melee damage multiplier
/mobstacker stackerConfig stackOutgoingDamage [true|false]
# Set how many mobs die per kill
/mobstacker stackerConfig killBatchSize [value]
# Set batch breeding size and cooldown
/mobstacker stackerConfig breedBatchSize [value]
/mobstacker stackerConfig breedCooldown [value]
# Toggle tool and weapon wear scaling
/mobstacker stackerConfig scaleToolDamage [true|false]
/mobstacker stackerConfig damageWeaponPerHit [true|false]
# Toggle villager stacking
/mobstacker stackerConfig stackVillagers [true|false]
# Toggle separator functionality
/mobstacker stackerConfig separator enableSeparator [true|false]
# Toggle separator consumption
/mobstacker stackerConfig separator consumeSeparator [true|false]
# Set separator item
/mobstacker stackerConfig separator separatorItem [item_id]
# Toggle assimilator functionality
/mobstacker stackerConfig assimilator enableAssimilator [true|false]
# Toggle assimilator consumption
/mobstacker stackerConfig assimilator consumeAssimilator [true|false]
# Set assimilator item
/mobstacker stackerConfig assimilator assimilatorItem [item_id]
Entity and Mod Management
# Ignore specific entity
/mobstacker ignore entity [entity_id]
# Ignore all entities from a mod
/mobstacker ignore mod [mod_id]
# Remove entity from ignore list
/mobstacker unignore entity [entity_id]
# Remove mod from ignore list
/mobstacker unignore mod [mod_id]
NOTE: An entity can be given the tag {StackData: {CanStack:0b}} to prevent it from stacking. Entity types can also be added to the #mobstacker:unstackable tag with a datapack.
Mob Cap Management
# Toggle mob cap overrides
/mobstacker mobCapConfig enableMobCapOverrides [true|false]
# Set the cap for a mob category
/mobstacker mobCapConfig monsterMobCap [value]
/mobstacker mobCapConfig creatureMobCap [value]
/mobstacker mobCapConfig ambientMobCap [value]
/mobstacker mobCapConfig axolotlsMobCap [value]
/mobstacker mobCapConfig undergroundWaterCreatureMobCap [value]
/mobstacker mobCapConfig waterCreatureMobCap [value]
/mobstacker mobCapConfig waterAmbientMobCap [value]
Rule Management
Rule pages in chat are clickable, so most of this can be done without typing the full commands.
# List rules (or just /mobstacker rule)
/mobstacker rule list
# Create or delete a rule
/mobstacker rule add [name]
/mobstacker rule remove [rule]
# Open a rule's page
/mobstacker rule [rule]
# Turn a rule on or off
/mobstacker rule [rule] enable
/mobstacker rule [rule] disable
# Change which rule wins when several match (operators only)
/mobstacker rule [rule] priority [position]
# Edit which mobs, dimensions and biomes a rule covers
/mobstacker rule [rule] mob [add|remove] [mob_id|#tag|@mod_id]
/mobstacker rule [rule] mob clear
/mobstacker rule [rule] dimension [add|remove] [dimension_id]
/mobstacker rule [rule] dimension here
/mobstacker rule [rule] biome [add|remove] [biome_id|#tag]
/mobstacker rule [rule] biome here
# Add places to a rule
/mobstacker rule [rule] place chunk [chunkX] [chunkZ]
/mobstacker rule [rule] place chunks [radius]
/mobstacker rule [rule] place area [x1] [z1] [x2] [z2]
/mobstacker rule [rule] place remove [number]
/mobstacker rule [rule] place clear
# View and change a rule's settings
/mobstacker rule [rule] settings [page]
/mobstacker rule [rule] set [setting] [value]
/mobstacker rule [rule] reset [setting]
API
Other mods can integrate through MobStackerAPI:
getStackSize(mob): how many mobs a mob stands for
addMergingCondition(...): extra conditions two mobs must meet to merge
addDeathHandler(...): runs when a stacked mob dies and the rest of the stack takes its place
addEntityDataModifiers(...): adjust the mob that replaces a dead or exploded stacked mob
addEntityDataModifiersOnSeparation(...): adjust a mob split off with the separator
registerClaimProvider(...): add support for another land claim mod
Additional Notes
- Mobs periodically look for a nearby stack to join (every
stackCheckInterval ticks).
- When a stacked creeper explodes or an enderman picks up a block, only that one mob does it; the rest of the stack stays behind.
- Stacked mobs display stack size in their name (e.g., "Zombie x5"), shown in each player's own language.
- Compatible with various entity types: animals, monsters, and NPCs.
Report issues to the issue tracker on github.
评论 0
登录后参与评分
还没有评论,来抢沙发吧