There is no functionality change.
关于
这是一个用于防止喂养婴儿动物的 Fabric 模组。
有一天,我正在用花繁殖很多蜜蜂,
我注意到许多花被小蜜蜂吃掉了,而不是成年蜜蜂。
我不能忍受看到珍贵的花被小蜜蜂吃掉,
尽管在我的服务器上这些花根本不珍贵。
所以,我想到了一个写一个模组来实现这个目标的主意。
这也是我学习如何编写模组的一个机会。
特性
基本功能
当你拿着食物右键点击小动物时,什么也不会发生。
例如,小麦和小牛,花和小蜜蜂等。
这个模组确保你不会在小动物身上浪费任何食物。
可配置性
你可以通过配置选择哪些小动物可以被喂养。
在配置文件中,你可以告诉模组使用白名单模式或黑名单模式
并将标识符(例如 `minecraft:cow`)添加到列表中以启用/禁用喂养。
你可以按下 ALT 键(默认)并右键点击小动物与食物
以在白名单/黑名单之间切换动物。
客户端和服务器端支持
该模组设计用于客户端使用。
然而,它也在服务器端工作。
只有在两个方面都允许的情况下,小动物才会被喂养:
| 客户端→
↓服务器 | 未安装 | 允许 | 不允许 |
|--------------------|----------------|-------|----------|
| 未安装 | ✔️ | ✔️ | ❌ |
| 允许 | ✔️ | ✔️ | ❌ |
| 不允许 | ❌\ | ❌\ | ❌ |
\* 如果仅由服务器端禁用了喂养,
玩家将看到一个虚假的喂养,实际上并不消耗任何食物。
服务器操作员(至少是 op 等级为 2)可以通过命令 `/nofeedingbaby` 设置配置。
注意事项
我可能没有太多时间来改进和维护这个模组,
但如果你有任何建议,请在 github 上提出问题。
版本&下载
There is no functionality change.
There is no functionality change.
There is no functionality change.
There is no functionality change.
There is no functionality change.
There is no functionality change.
This mod becomes translatable now.
Official supports for `en_us` and `zh_tw`.
## Easier way to config
Now players can put/drop an animal into/from the list
by ALT(default)+right click the baby animal with food.
You can also set a key to temporarily feed babies (if the server side allows),
or toggle the white/blacklist mode by a key.
## Commands for server side
*This mod is designed for client uses.*
However I still make this mod server-side usable.
To make it easier to server ops, I write commands.
*Note: Outputs of commands are not translatable, and I have no plan to improve this.*
### List Mode
`/nofeedingbaby mode [blacklist/whitelist/toggle]`
### Animal
`/nofeedingbaby animal [add/remove/toggle/status] id`
Now this mod is configurable.
The config file is "no-feeding-baby.yml"
and there are 2 keys: `whitelistMode` and `list`.
- `whitelistMode` (Bool) is to say whether the following "list" is whitelist or not.
If no, then the list is blacklist.
- `list` (List[str]) specifies all the animals in ID (e.g., `minecraft:cow`) in the white/blacklist.
Baby animals in the whitelist can be fed, and cannot if they are in the blacklist.
## Client- and Server-side Supports
The mod is designed for client uses, but it also works in the server side, too.
Baby animals get fed only if both two sides allow:
| Client→<br>↓Server | Not Installed | Allow | Disallow |
|--------------------|----------------|-------|----------|
| Not Installed | ✔️ | ✔️ | ❌ |
| Allow | ✔️ | ✔️ | ❌ |
| Disallow | ❌\* | ❌\* | ❌ |
\* If the feeding is disabled by server-side only,
the player will see a falsy feeding,
which in fact doesn't consume any food.
收录


