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.
How to Install No Feeding Baby (Mod)
No Feeding Baby by gimi65536 is verified for Fabric across Minecraft versions 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1 (latest release: 1.2.0+1.21.11, file size: 580 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1) and platform (Fabric).
- Make sure you have the compatible loader or environment installed for Fabric.
- Move the downloaded No Feeding Baby file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add VersionThere 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.
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.*
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] idNow 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.
list(List[str]) specifies all the animals in ID (e.g.,minecraft:cow) in the white/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.