跳到正文

Villager Food Tags

作者:Dulciphi

Lets villagers pick up and eat modded foods in Minecraft 1.21.1

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Villager Food Tags

Allows villagers to pick up and use 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

常见问题

Villager Food Tags 支持哪些 Minecraft 版本?

Villager Food Tags 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。

Villager Food Tags 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分