
为 Farmer's Delight 模组扩展开发者提供的实用工具库,它极大地简化了食物物品、刀具、箱子和袋子、柜子以及配方管理的创建过程。这意味着开发者可以更快速地制作自己的扩展包,只需专注于纹理和模型即可。
入门指南 | 新手教程:创建你自己的 Farmer's Delight 扩展包
✨ 功能特性:
Delight Lib 允许使用寥寥数行代码为 Farmer's Delight 创建以下物品和方块:
- 食物物品
- 可放置的食物物品
- 柜子
- 箱子和袋子
- 刀具
- 农作物
?️ 代码示例:
以下是展示库语法的极简示例。阅读文档 以获取从头构建完整扩展包的完整教程。
创造模式标签页:
初始化你的扩展包并创建一个带有自定义物品图标的创造模式标签页:
var DelightLib = DelightAddon.create("Mod Name", bus)
.withCreativeTab("Mod Name", () -> new ItemStack(Items.BREAD));
刀具
注册一把自定义刀具:
addon.knife("obsidian_knife", Tiers.DIAMOND).build();
食物物品
注册具有自定义属性的食物物品:
addon.food("fried_egg")
.nutrition(4)
.saturation(0.4f)
.fast()
.build();
烹饪锅配方
注册带有自定义食材的烹饪锅配方:
addon.cookingRecipe("beef_stew")
.addIngredient("minecraft:cooked_beef")
.addIngredient("minecraft:carrot")
.addIngredient("minecraft:potato")
.result("mymod:beef_stew")
.experience(1.0f)
.cookingTime(200)
.recipeBookTab("meals")
.build();
柜子
注册带有合成配方的自定义柜子:
addon.cabinet("spruce_cabinet")
.recipe(b -> b.grid("SSS", "T T", "SSS")
.define('S', "minecraft:spruce_slab")
.define('T', "minecraft:spruce_trapdoor"))
.build();
农作物
注册完整的农作物系统:
addon.crop("corn").build();

A utility library for Farmer's Delight add-on developers that makes it a lot easier to create food items, knives, crates and bags, cabinets, and manage recipes. This means developers can make their own add-ons much quicker and only worry about the textures and models.
Geting Started | Create your own Farmer's Delight add-on for beginners
✨ Features:
Delight Lib allows the creation of these items and blocks for Farmer's Delight using just a few lines of code:
- Food items
- Placeable food items
- Cabinets
- Crates and bags
- Knives
- Crops
?️ Code Examples:
Below are minimal examples showing the library syntax. Read the documentation for full tutorials on building a complete add-on from scratch.
Creative Tab:
Initialize your add-on and create a creative tab with a custom item icon:
var DelightLib = DelightAddon.create("Mod Name", bus)
.withCreativeTab("Mod Name", () -> new ItemStack(Items.BREAD));
Knives
Register a custom knife:
addon.knife("obsidian_knife", Tiers.DIAMOND).build();
Food Items
Register a food item with custom stats:
addon.food("fried_egg")
.nutrition(4)
.saturation(0.4f)
.fast()
.build();
Cooking Pot Recipes
Register a cooking pot recipe with custom ingredients:
addon.cookingRecipe("beef_stew")
.addIngredient("minecraft:cooked_beef")
.addIngredient("minecraft:carrot")
.addIngredient("minecraft:potato")
.result("mymod:beef_stew")
.experience(1.0f)
.cookingTime(200)
.recipeBookTab("meals")
.build();
Cabinets
Register a custom cabinet with a crafting recipe:
addon.cabinet("spruce_cabinet")
.recipe(b -> b.grid("SSS", "T T", "SSS")
.define('S', "minecraft:spruce_slab")
.define('T', "minecraft:spruce_trapdoor"))
.build();
Crops
Register a full crop system:
addon.crop("corn").build();
下载 Delight Lib
下载 Delight Lib
下载 Delight Lib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Delight Lib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Delight Lib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Delight Lib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Delight Lib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Delight Lib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Delight Lib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Delight Lib
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机

✨ 更新内容:
- 在 Minecraft 26.3 中增加了对 Farmer's Delight Refabricated 的支持。
? 反馈与支持:
- 发现了 Bug 或有建议?在 GitHub 上提交问题。
- 通过 创建你自己的服务器 或 通过 PayPal 捐赠 来支持本模组。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
适用于 MC 1.18+ 的 Effekseer 加载器
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
评论 0
登录后参与评分
还没有评论,来抢沙发吧