promotional bannermobile promotional banner

Villager Food Tags

Lets villagers pick up and eat modded foods in Minecraft 1.21.1

Villager Food Tags

Allows villagers to pick up and eat modded foods in Minecraft 1.21.1.
Want villagers to be able to eat Pumpkin Pie, berries or foods added by your favourite mods?

Add those items or tags to the config or a datapack and this mod lets villagers use them.

Customise what villagers eat without waiting for your favourite mods to update to Minecraft 26.4

Features

  • Define what food items villagers pick up and use
  • Uses NeoForge's item data map system for flexible configuration
  • Works seamlessly with datapacks and modpacks

Requirements

  • Minecraft 1.21.1+
  • NeoForge 21.1.244+

Datapack Usage

Villager Food Tags supports both config-based food values and datapack food values.

 

Example villager food data map:

Create this file in a datapack:

data/villagerfoodtags/data_maps/item/villager_food.json

Edit the villager_food.json file to include the following example:

{
  "replace": false,
  "values": {
    "#c:foods/breads": 4,
    "#c:crops": 1,
    "#c:foods/pie": 6,
    "#c:foods/berry": 1,
    "minecraft:apple": 1
  }
}

or edit it to your heart's content. 

 

NeoForge tags?

https://github.com/neoforged/NeoForge/tree/1.20.6/src/generated/resources/data/c/tags/items/foods

The Villager Food Tags Team

profile avatar
  • 1
    Projects
  • 20
    Downloads