截图
介绍

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 支持哪些 Minecraft 版本?
Delight Lib 支持 Minecraft Java 版 1.20–26.3,共 10 个版本,可用的加载器:Fabric / Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。
Delight Lib 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
Axperty 的其他作品
查看全部 →Storage Delight (Forge & Neoforge)
为 Farmer's Delight 添加更多家具,让你的厨房或任何空间看起来更漂亮。原版风格。
More Delight (Forge & Neoforge)
Extra meals, knives, and ingredients for Farmer's Delight that improve your culinary experience.
More Delight (for Farmer’s Delight)
为农夫乐事添加更多餐食、刀具和食材,提升你的烹饪体验。
Crate Delight
实用的箱子和袋子,既节省存储空间,又美观大方。



评论
登录后评论和评分