promotional bannermobile promotional banner

Feed Baby Villagers

Feed baby villagers bread, carrots, potatoes or beetroot to make them grow up faster. Server-side only.
Untitled-7.gif

Untitled-7.gif

Untitled-6.gif

Untitled-6.gif

emberbocor | Feed Baby Villagers
Create a server, get 25% off your first monthaffiliate logo
Create Server
affiliate banner image

Description

Feed Baby Villagers

Help baby villagers grow up faster.

Feed Baby Villagers lets you feed baby villagers the same way you feed baby animals. Right-click a baby with bread, carrots, potatoes or beetroot and it grows up a bit faster, with green particles and a happy villager sound. Babies also eat food they pick up from the ground, so you can drop a stack and let them grow on their own.

The mod runs on the server only: players join with a plain vanilla client and still see the particles and hear the sound.

Available for NeoForge, Forge and Fabric.

Features

  • Hand feeding. Right-click a baby villager with food in your main hand. One item is used (none in Creative) and the baby's remaining growth time drops by 10%. There is no cooldown: feed as often as you like.
  • Self-feeding. Drop food near a baby villager. It picks the food up like any villager does (this needs the mobGriefing game rule, as all villager pickup does) and eats one item every 3 seconds until it is grown up or runs out of food. Leftover food stays in its inventory.
  • Vanilla feedback. Every meal shows the green happy villager particles and plays the villager's approval sound.
  • Configurable. The foods, the growth per item, the time between meals and the whole mod can be changed or turned off in the server config. Food from other mods can be added.

How growing works

Growth works like feeding a baby animal in vanilla. The remaining growth time is taken in whole seconds, and each item removes the configured percentage of it, rounded down. A baby with 20 minutes left gains 2 minutes from its first meal at the default 10%; each further meal gains a little less.

  • Close to adulthood (less than 10 seconds left at the default 10%) a meal removes nothing. It still uses the item, and the baby finishes growing on its own.
  • With growthPercent = 100 one item can finish the growth at once. As with baby animals in vanilla, the time skipped this way can then become a short breeding cooldown for the new adult.
  • Self-feeding pauses while the baby sleeps. The time until the next meal starts over after the world is reopened, after the baby wakes up and after it runs out of food.
  • Only the main hand feeds. Sleeping babies, name tags and spawn eggs keep their normal right-click.
  • On NeoForge and Forge, sneaking while right-clicking skips villager interaction, so it does not feed. On Fabric, sneak-right-click feeds as well.

Configuration

config/feedbabyvillagers-server.toml is created with comments on the first server or world start:

enabled = true
foods = ["minecraft:bread", "minecraft:carrot", "minecraft:potato", "minecraft:beetroot"]
growthPercent = 10
feedingIntervalSeconds = 3
  • foods accepts any item ID, also from other mods. Babies then also pick those items up from the ground.
  • Changes take effect after a server restart, or after closing and reopening a singleplayer world.
  • Mistakes do not crash the server: invalid values use the default, unknown item IDs are skipped, and each problem is logged as a warning.

Requirements

Minecraft NeoForge Forge Fabric
1.20.1 NeoForge 47.1.5 or newer, uses the Forge jar 47.1.0 or newer Loader 0.14.21+, Fabric API 0.83.0+ (1.20 or 1.20.1)
1.21.1 21.1.1 or newer 52.0.0 or newer Loader 0.15.11+, Fabric API 0.102.0+ (1.21 or 1.21.1)
1.21.11 21.11.42 or newer 61.0.1 or newer Loader 0.17.3+, Fabric API 0.139.5+
26.1 to 26.1.2 26.1.0.1-beta or newer 62.0.0 (26.1), 63.0.0 (26.1.1) or 64.0.0 (26.1.2) or newer Loader 0.18.4+, Fabric API 0.144.0+
26.2 26.2.0.0-beta or newer 65.0.0 or newer Loader 0.18.4+, Fabric API 0.152.1+
26.3 26.3.0.0-beta or newer 66.0.0 or newer Loader 0.19.3+, Fabric API 0.160.5+

The Fabric jar bundles NightConfig (core and toml, LGPL-3.0) to read the TOML config. NeoForge and Forge already ship it.

Client and server

Install the mod on the server only. It adds no items, blocks, entities, network messages or registries, so vanilla clients and modded clients without it can join. On Forge the mod is marked as server-only, so a Forge client without it still shows the server as compatible in the server list. On Fabric, Fabric API is only needed on the server.

Installing it on a client as well does no harm. The client does not know the server's food list, so a baby may briefly shake its head when you feed it; the server still accepts the food and sends the particles and sound. In singleplayer, install it in your own game; the built-in server runs it.

Removing the mod

The world opens normally. Babies keep the growth they already gained and grow up at the vanilla pace. Food they picked up stays in their inventory, as it would in vanilla.

Compatibility

  • Villager Trade Peek, Villager Trade Swap, Villager Trade Labels, Villager Trade Enchant: work together.
  • In vanilla, villagers of any age already pick up bread, carrots, potatoes and beetroot. With this mod, babies eat what they collect. In a villager breeder, keep babies away from the food meant for the adults (most breeders already drop the babies out).
  • Mods that change how baby villagers react to right-clicks, pick up items or use their inventory may interfere.

Source and issues

Source code, issue tracker and build instructions: GitHub

License

MIT. The Fabric jar includes NightConfig, which is licensed under the LGPL-3.0.

Feed Baby Villagers Team

profile avatar
  • 10
    Projects
  • 5.4K
    Downloads

More from emberbocorView all