让犰狳农场使用 WildStacker 进行实体堆叠,同时不改变其产出。24 只犰狳组成一个堆叠(stack),对服务器而言只是一个实体,但它仍会表现出 24 只的行为:相同的鳞甲虫生成、相同的鳞片掉落、以及相同的拥挤判定。
需要 WildStacker。 该插件未在 Modrinth 上架,请从其官方页面下载。如果没有它,服务器将无法加载 StackedArmadillos。
适用对象
希望尽可能保持原版体验的服务器,玩家像在单人游戏中那样建造犰狳农场,且服务器不能改变这些农场的产出。你可以在不削弱农场效率的前提下获得堆叠带来的性能优化。
背景原因
典型的鳞甲虫经验农场会在营火上每格放置 24 只处于“感染”(Infested)状态的犰狳。拥有 12 个工作站的农场共有 288 只犰狳,每只都在运行 AI、互相推挤,并每秒两次承受营火伤害。
WildStacker 可以将每个工作站的犰狳合并为一个实体,但单独使用时会破坏农场机制。对于游戏逻辑来说,堆叠仅被视为一只犰狳,因此一个包含 24 只犰狳的工作站会出现以下问题:
- 每次受到伤害时仅进行一次“感染”判定,而非 24 次,导致生成的鳞甲虫数量约为原来的 1/24
- 仅掉落 1 片鳞片,而非 24 片
- 永远不会杀死被挤入方块的第 25 只犰狳,因为拥挤计数将堆叠视为单个实体
- 会从相邻工作站“窃取”犰狳,因为 WildStacker 默认会将相距 10 格以内的犰狳合并
StackedArmadillos 修复了上述所有四个问题。
功能说明
- 感染(Infested): 堆叠中的每只犰狳在每次受到伤害时都会独立进行一次感染判定,遵循原版规则(10% 概率,生成 1 或 2 只鳞甲虫)。
- 拥挤(Cramming): 堆叠内的犰狳计入实体拥挤限制。如果向已有 24 只犰狳堆叠的方块中推入第 25 只犰狳,它会像原版一样死亡。
- 堆叠范围: 堆叠大小不会超过 24,且仅合并位于同一方块内的犰狳,确保各工作站之间不会混合。
- 鳞片(Scutes): 堆叠会根据其中的犰狳数量掉落相应数量的鳞片。使用刷子梳理仍只会获得一片鳞片,符合原版机制。
单只犰狳及其他所有生物均不受影响。数值 24 对应原版的 max_entity_cramming 参数,插件默认遵循此游戏规则。
配合 FrozenSilverfish 使用
堆叠生成的鳞甲虫数量与原版一致,这是有意为之。为了进一步降低服务器负载,建议安装 FrozenSilverfish,该插件会在保留物理效果的同时禁用鳞甲虫的 AI。
| 插件 |
作用 |
| WildStacker |
将工作站中的 24 只犰狳合并为一个实体 |
| StackedArmadillos |
使该堆叠表现出相当于 24 只犰狳的行为 |
| FrozenSilverfish |
使它们生成的鳞甲虫对服务器更轻量 |
安装步骤
- 将 jar 文件放入
plugins 文件夹,与 WildStacker 放在一起。
- 在
plugins/WildStacker/config.yml 的 entities 部分设置如下内容:
entities:
merge-radius:
ARMADILLO: 1
limits:
ARMADILLO: 24
stack-interval: 100
- 重启服务器并执行
/sa status。如果 WildStacker 配置中有缺失项,它将发出警告。
如果你使用的是 minimum-required 模式,请将犰狳的阈值设低一些(例如 ARMADILLO: 2):因为它会分别统计幼崽和成年个体。
配置说明
配置文件位于 plugins/StackedArmadillos/config.yml,通过命令 /sa reload 重载。默认值已模仿原版行为,大多数服务器无需修改任何内容。
worlds: [] # [] = 所有世界
max-stack-size: 24
same-block-only: true
infested:
enabled: true
chance: 0.1
min-silverfish: 1
max-silverfish: 2
cramming:
enabled: true
limit: -1 # -1 = 使用 max_entity_cramming 游戏规则
damage: 6.0
interval-ticks: 4
scutes:
enabled: true
命令
权限节点:stackedarmadillos.admin(管理员默认拥有)。
/sa status:查看设置、已加载的犰狳和堆叠数量,以及关于 WildStacker 配置的警告信息
/sa reload:重新加载配置文件并再次检查 WildStacker
依赖要求
- Paper 26.2
- Java 25
- WildStacker 2026.2
源代码、问题反馈及包含测试结果的完整文档:github.com/ghiacciolodev/StackedArmadillos
Lets armadillo farms use WildStacker without changing what they produce. A stack of 24 armadillos is one entity for the server, but it still behaves like 24: same silverfish, same scutes, same cramming.
Requires WildStacker. It is not on Modrinth, download it from its own page. The server won't load StackedArmadillos without it.
Who it's for
Servers that want to stay as close to vanilla as possible, where players build armadillo farms like in singleplayer and the server must not change what those farms produce. You get the lag savings of stacking without nerfing the farms.
Why
A typical silverfish XP farm packs 24 armadillos per block on a campfire, with Infestation on them. A farm with 12 stations has 288 armadillos, each running its AI, pushing the others and taking campfire damage twice a second.
WildStacker can merge each station into one entity, but on its own it breaks the farm. For the game a stack is one armadillo, so a station of 24 would:
- roll Infested once per hit instead of 24 times, spawning about 1/24 of the silverfish
- drop one scute instead of 24
- never kill a 25th armadillo pushed into the block, because cramming counts the stack as one
- steal armadillos from the station next to it, since WildStacker merges up to 10 blocks apart by default
StackedArmadillos fixes all four.
What it does
- Infested: a stack gets one Infested roll per armadillo on every hit, with the vanilla rules (10% chance, 1 or 2 silverfish).
- Cramming: armadillos inside stacks count for entity cramming. A 25th armadillo pushed into a block with a stack of 24 dies like in vanilla.
- Stacking: stacks never grow past 24 and only merge armadillos in the same block, so stations never mix.
- Scutes: a stack drops one scute per armadillo. Brushing still gives one, like in vanilla.
Single armadillos and every other mob are left alone. 24 is the vanilla max_entity_cramming value, and the plugin follows the gamerule by default.
Use it with FrozenSilverfish
The silverfish a stack spawns are as many as in vanilla, on purpose. To make them cheap too, install FrozenSilverfish, which turns off their AI while keeping their physics.
| Plugin |
Job |
| WildStacker |
merges the 24 armadillos of a station into one entity |
| StackedArmadillos |
makes that stack behave like 24 armadillos |
| FrozenSilverfish |
makes the silverfish they spawn cheap for the server |
Installation
- Put the jar in
plugins, next to WildStacker.
- In
plugins/WildStacker/config.yml, under entities, set:
entities:
merge-radius:
ARMADILLO: 1
limits:
ARMADILLO: 24
stack-interval: 100
- Restart the server and run
/sa status. It warns you if something in the WildStacker config is missing.
If you use minimum-required, keep it low for armadillos (for example ARMADILLO: 2): it counts babies and adults separately.
Configuration
plugins/StackedArmadillos/config.yml, reload with /sa reload. The defaults copy vanilla, so most servers don't need to change anything.
worlds: [] # [] = every world
max-stack-size: 24
same-block-only: true
infested:
enabled: true
chance: 0.1
min-silverfish: 1
max-silverfish: 2
cramming:
enabled: true
limit: -1 # -1 = use the max_entity_cramming gamerule
damage: 6.0
interval-ticks: 4
scutes:
enabled: true
Commands
Permission stackedarmadillos.admin (ops by default).
/sa status: settings, loaded armadillos and stacks, warnings about the WildStacker config
/sa reload: reloads the config and checks WildStacker again
Requirements
- Paper 26.2
- Java 25
- WildStacker 2026.2
Source code, issues and full docs with test results: github.com/ghiacciolodev/StackedArmadillos
评论 0
登录后参与评分
还没有评论,来抢沙发吧