AnimalWeights
动物会根据其饲养状况获得一个隐藏的权重值(0-8)。该权重值会影响它们在死亡时掉落的物品和经验值数量,因此宽敞且结构良好的农场产出更高,而拥挤的 1x1 小隔间则产量较低;同时,疏于照料的动物会生病并停止繁殖。
基于 u/Axoladdy 在 r/Minecraft 上提出的“Animal Weights”建议:
权重机制的工作原理
每隔几分钟,系统会对每种受追踪的动物根据四项畜牧条件进行评分:
| 条件 |
满足条件 |
| 光照 |
所在位置的亮度等级 >= 14 |
| 水源 |
附近几个方块内有水源 |
| 放牧 |
站在草地或苔藓上 |
| 伸展 |
没有其他生物挤入其占据的空间 |
满足的条件越多,动物的目标体重就越高;其体重会随时间逐渐向该目标靠近。拥挤的动物无法在体重超过 2 的情况下攀爬,而既无空间、无光照且无水源的动物则会沉降至 0 - 病态。
权重
- 更多掉落物与经验值。 一只满级(权重8)的牛相比原版大约会多掉落 +7 牛肉、+7 皮革、+7 经验值。
在靠近水源和村庄附近时,掉落量会自然上升。
- 生病的动物(权重0)无法繁殖,并会显示可见的“不适”提示。
追踪的动物
牛、哞菇、猪、羊、鸡、兔子和山羊——均可配置。
命令与权限
| 命令 |
权限 |
默认设置 |
/aw check - 查看你正注视的动物的权重及状态 |
animalweights.check |
所有人 |
/aw set <0-8> - 设置动物的权重 |
animalweights.admin |
管理员(op) |
/aw reload - 重载配置 |
animalweights.admin |
管理员(op) |
/aw info - 插件信息 |
animalweights.admin |
管理员(op) |
配置
所有内容均可在 config.yml 中调整(权重范围、评估间隔、各条件的阈值/半径、掉落物与经验值倍率、生病效果、追踪生物列表),修改后执行 /aw reload 即可生效。
兼容性
专为 Paper/Spigot/Bukkit/Purpur 1.21.1+ 构建(已在 1.21.11 和 Java 21 上测试)。不兼容 Folia。
概念由 u/Axoladdy 提供。插件由 BeansNToast 制作。
AnimalWeights
Animals gain a hidden weight (0-8) based on how well they're kept. Weight scales
the items and XP they drop when killed, so spacious, well-built farms out-produce
crammed 1x1 cram boxes - and neglected animals get sick and stop breeding.
Based on the "Animal Weights" suggestion by u/Axoladdy on r/Minecraft:
How weight works
Every few minutes each tracked animal is scored on four husbandry conditions:
| Condition |
Met when... |
| Light |
light level >= 14 where it stands |
| Water |
a water source is within a few blocks |
| Grazing |
it stands on grass or moss |
| Stretching |
no other mob is crammed into its space |
The more conditions met, the higher the animal's target weight; its weight drifts
toward that target over time. A crammed animal can't climb past weight 2, and one
with no space, no light, and no water sinks to 0 - sick.
What weight does
- More drops & XP. A maxed weight-8 cow drops roughly +7 beef, +7 leather, +7 XP
over vanilla. Drops trend up naturally near water and around villages.
- Sick animals (weight 0) can't breed and show a visible "unwell" cue.
Tracked animals
Cow, Mooshroom, Pig, Sheep, Chicken, Rabbit, and Goat - all configurable.
Commands & permissions
| Command |
Permission |
Default |
/aw check - weight + conditions of the animal you're looking at |
animalweights.check |
everyone |
/aw set <0-8> - set an animal's weight |
animalweights.admin |
op |
/aw reload - reload config |
animalweights.admin |
op |
/aw info - plugin info |
animalweights.admin |
op |
Configuration
Everything is tunable in config.yml (weight range, evaluation interval, each
condition's threshold/radius, drop & XP scaling, the sick effect, tracked-mob list),
then /aw reload.
Compatibility
Built for Paper/Spigot/Bukkit/Purpur 1.21.1+ (tested on 1.21.11, Java 21). Not Folia-safe.
Concept by u/Axoladdy. Plugin by BeansNToast.
评论 0
登录后参与评分
还没有评论,来抢沙发吧