动物体重
原版农场动物的畜牧机制。每头牛、猪、羊、鸡、兔子和蘑菇牛都拥有一个整数体重(0–8),其数值取决于饲养状况,并在被击杀时影响其掉落的肉类、皮革和经验值数量。
现在你的农场布局至关重要。拥挤且饥饿的动物群体会掉落更少的物品;宽敞、光线充足、水源便利且拥有草地可供放牧的牧场则能养育出脂肪丰富、价值更高的动物。
原始概念:Reddit 上的 u/Axoladdy。
工作原理
每个游戏日的黎明时分,每种目标物种的成年动物都会根据周围环境中的四种生活条件进行评估:
| 条件 |
满足标准 |
| 光照 |
生物方块 8 格内的方块亮度 ≥ 14(火把、灯笼或自然日光)。 |
| 水源 |
从生物所在位置可达的水源或装满水的炼药锅(通过桶装水或雨水填充)——需水平相邻(或位于其可行走方块的下方一格)。栅栏和墙会阻挡连通性。 |
| 觅食 |
在其可行走方块的直接下方存在草方块或苔藓方块。 |
| 伸展 |
生物周围至少有 6 个可行走的连通方块(无栅栏或其他农场动物阻挡)。 |
满足的条件数量决定了体重的每日变化:
| 满足条件数 |
体重变化 |
| 4 |
+1(茁壮成长) |
| 3 |
0(持平) |
| 2 |
−1(状态下滑) |
| 0–1 |
−2(遭受折磨) |
体重被限制在 [0, 8] 范围内。新生成的生物初始体重为 1。
掉落缩放
当击杀目标物种的生物时,其主要掉落物和经验值会根据其体重按加速曲线进行缩放:
| 体重 |
掉落加成 |
| 1 |
+0(原版) |
| 2 |
+1 |
| 3 |
+2 |
| 4 |
+3 |
| 5 |
+4 |
| 6 |
+6 |
| 7 |
+8 |
| 8 |
+11(最高收益) |
各物种的主要掉落物:
- 牛 / 蘑菇牛 — 牛肉(生或熟)、皮革
- 猪 — 猪肉(生或熟)
- 羊 — 羊肉(生或熟)、任意颜色的羊毛
- 鸡 — 鸡肉(生或熟)、羽毛
- 兔子 — 兔肉(生或熟)、兔皮 (兔子的脚不会被缩放——它依然保持稀有)
生病状态(体重 0)
体重降至 0 的生物处于生病状态:
- 持续施加 缓慢 I 效果。
- 禁止繁殖 — 如果任何一方生病,双方的求偶状态都会被重置。
- 掉落惩罚 — 每个主要掉落物有 50% 的概率完全消失,且任何成功掉落的堆叠物品上限为单个物品。
幼崽
幼年动物不参与上述所有机制——不进行体重评估、无缓慢效果、无掉落缩放。幼崽在约 20 分钟现实时间内长大;该机制旨在为成年动物的长期畜牧状况提供信号。
兼容性
- Minecraft: 26.1.x
- 加载器: NeoForge 26.1.x
- 运行环境: 客户端和服务器(两端均需安装此模组)
源码与许可
GitHub: joseph-osullivan/animal-weights — 采用 MIT 许可证。
欢迎提交错误报告和 PR。
Animal Weights
A husbandry mechanic for vanilla farm animals. Every cow, pig, sheep, chicken, rabbit, and mooshroom carries an integer weight (0–8) that responds to how well they're kept — and that weight scales the meat, leather, and XP they drop when killed.
Suddenly your farm layout matters. Cramped pens of starving animals drop less. Roomy, well-lit, well-watered pastures with grass to graze produce fat, valuable animals.
Original concept: u/Axoladdy on Reddit.
How it works
Every in-game day at dawn, each target-species adult is evaluated against four living conditions in its surroundings:
| Condition |
What satisfies it |
| Light |
A block within 8 of the mob has brightness ≥ 14 (torch, lantern, full daylight). |
| Water |
A water source or filled water cauldron (bucket-filled or rain-filled) is reachable from the mob — horizontally adjacent (or one block below) a cell it can walk to. Fences and walls block reachability. |
| Grazing |
A grass or moss block is directly below a cell it can walk to. |
| Stretching |
The mob has at least 6 walkable cells reachable around it (no fences or other farm animals blocking). |
The number of conditions met determines the daily weight change:
| Conditions met |
Weight change |
| 4 |
+1 (thriving) |
| 3 |
0 (plateau) |
| 2 |
−1 (slipping) |
| 0–1 |
−2 (suffering) |
Weight is clamped to [0, 8]. New mobs spawn at weight 1.
Drop scaling
When a target-species mob is killed, its primary drops and XP are scaled by its weight using an accelerating curve:
| Weight |
Drop bonus |
| 1 |
+0 (vanilla) |
| 2 |
+1 |
| 3 |
+2 |
| 4 |
+3 |
| 5 |
+4 |
| 6 |
+6 |
| 7 |
+8 |
| 8 |
+11 (peak payoff) |
Primary drops by species:
- Cow / Mooshroom — beef (raw or cooked), leather
- Pig — porkchop (raw or cooked)
- Sheep — mutton (raw or cooked), any-colour wool
- Chicken — raw / cooked chicken, feathers
- Rabbit — raw / cooked rabbit, hide (rabbit's foot is not scaled — it stays rare)
Sick state (weight 0)
A mob whose weight falls to 0 is sick:
- Slowness I is applied continuously.
- Breeding is blocked — both parents' love state is reset if either is sick.
- Drops are penalised — each primary drop has a 50% chance of being removed entirely, and any stack that does drop is capped to a single item.
Babies
Baby animals are skipped from all of the above — no weight evaluation, no slowness, no drop scaling. Babies grow up in ~20 real minutes; the mechanic is meant for the long-term husbandry signal of an adult animal.
Compatibility
- Minecraft: 26.1.x
- Loader: NeoForge 26.1.x
- Required on: client and server (both sides need the mod installed)
Source & licence
GitHub: joseph-osullivan/animal-weights — MIT licensed.
Bug reports and PRs welcome.
评论 0
登录后参与评分
还没有评论,来抢沙发吧