禁止喂食幼崽
简介
这是一个 Fabric 模组,用于防止玩家喂食动物幼崽。
有一天,我正用花朵繁殖蜜蜂, 我注意到许多花朵被幼年蜜蜂吃掉了,而不是成年蜜蜂。 虽然在我的服务器里这些花根本算不上珍贵, 但我实在无法忍受珍贵的花朵被幼年蜜蜂吃掉。 于是,我萌生了编写一个模组来实现这一目标的想法。 这也是我学习如何编写模组的一个机会。
功能
基本功能
当你手持食物并对动物幼崽右键点击时,什么都不会发生。 例如:小麦与牛犊、花朵与小蜜蜂等。
该模组确保你不会对动物幼崽浪费任何食物。
可配置
你可以选择哪些动物幼崽可以被喂食。
在配置文件中,你可以告知模组使用白名单模式或黑名单模式,
并将实体标识符(如 minecraft:cow)添加到列表中,以启用或禁用
喂食功能。
你可以按住 ALT(默认键)并使用食物对动物幼崽右键点击, 将其切换至白名单或黑名单中。
客户端与服务端支持
该模组设计主要用于客户端。 不过,它在服务端也能正常工作。
只有当双方都允许时,动物幼崽才会被喂食:
| 客户端→ ↓服务端 |
未安装 | 允许 | 禁止 |
|---|---|---|---|
| 未安装 | ✔️ | ✔️ | ❌ |
| 允许 | ✔️ | ✔️ | ❌ |
| 禁止 | ❌* | ❌* | ❌ |
* 如果仅在服务端禁用了喂食功能, 玩家将看到一次无效的喂食动作, 但实际上并不会消耗任何食物。
拥有操作权限(OP 等级至少为 2)的服务端操作员可以通过命令 /nofeedingbaby 进行配置。
注意
我可能没有太多时间来改进和维护这个模组, 但如果你有任何建议,欢迎在 GitHub 上提交 Issue。
No Feeding Baby
About
This is a fabric mod to prevent from feeding baby animals.
Someday, I was breeding many bees with flowers, and I noticed that many of the flowers are eaten by baby bees instead of adult bees. I cannot endure seeing that the precious flowers get eaten by baby bees, although the flowers are not precious at all in my server. So, I came up with the idea to write a mod to accomplish this goal. It is also a chance for me to learn how to write a mod.
Features
Basic
When you take food and right-click a baby animals, nothing will happen. For example, wheats and baby cows, flowers and baby bees, etc.
This mod ensures that you will not waste any food on baby animals.
Configurable
You can choose which baby animals can be fed by the configuration.
In the configuration, you can tell the mod to use whitelist mode or blacklist mode
and add the identifier (such as minecraft:cow) into the list to enable/disable
feeding.
You can press ALT (default) and right-click the baby animal with food to switch the animal into or from the white/blacklist.
Client- and Server-side Supports
The mod is designed for client uses. However, it also works in the server side, too.
Baby animals get fed only if both two sides allow:
| Client→ ↓Server |
Not Installed | Allow | Disallow |
|---|---|---|---|
| Not Installed | ✔️ | ✔️ | ❌ |
| Allow | ✔️ | ✔️ | ❌ |
| Disallow | ❌* | ❌* | ❌ |
* If feeding is disabled by server-side only, the player will see a falsy feeding, which in fact doesn't consume any food.
Server ops (with op level at least 2) can set configuration by commands /nofeedingbaby.
Note
It is likely that I have no much time to improve and maintain this mod, but if you have any suggestion, feel free to open issues on github.
下载 No Feeding Baby
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 No Feeding Baby
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 No Feeding Baby
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 No Feeding Baby
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 No Feeding Baby
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 No Feeding Baby
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 No Feeding Baby
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 No Feeding Baby
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 No Feeding Baby
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 No Feeding Baby
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
更新至 1.21.11
无功能变更。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧