Delight Lib
delight-lib · 730471 downloads · MIT
client: required · server: required (declared by the mod author)
Create Farmer's Delight add-ons for many mod loaders and versions easily.
Description
<center>

</center>
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();
<!-- <center> [](https://www.patreon.com/Axperty) [](https://paypal.me/kevgelhorn) [](https://ko-fi.com/axperty) </center> -->
Versions (21)
| Version | Minecraft | Loaders | File |
|---|---|---|---|
26.09.16-26.3-fabric |
26.3 | fabric | download |
26.06.23-26.2-fabric |
26.2 | fabric | download |
26.05.20-1.21.11-fabric |
1.21.11 | fabric | download |
26.05.18-26.1-fabric |
26.1, 26.1.1, 26.1.2 | fabric | download |
26.05.18-1.21-neoforge |
1.21, 1.21.1 | neoforge | download |
26.05.18-1.21-fabric |
1.21, 1.21.1 | fabric | download |
26.05.18-1.20-forge |
1.20, 1.20.1 | forge, neoforge | download |
26.05.18-1.20-fabric |
1.20, 1.20.1 | fabric | download |
26.05.09-26.1-fabric |
26.1, 26.1.1, 26.1.2 | fabric | download |
26.05.07-1.20-forge |
1.20, 1.20.1 | forge, neoforge | download |
26.05.06-1.20-fabric |
1.20, 1.20.1 | fabric | download |
26.05.06-1.21-fabric |
1.21, 1.21.1 | fabric | download |
26.05.06-1.21-neoforge |
1.21, 1.21.1 | neoforge | download |
26.05.06-1.20-forge |
1.20, 1.20.1 | forge, neoforge | download |
26.05.06-1.20-fabric |
1.20, 1.20.1 | fabric | download |
26.05.03-1.21-neoforge |
1.21, 1.21.1 | neoforge | download |
26.05.03a-1.20-fabric |
1.20, 1.20.1 | fabric | download |
26.05.03-1.20-forge |
1.20, 1.20.1 | forge, neoforge | download |
26.05.03-1.20-fabric |
1.20, 1.20.1 | fabric | download |
26.05.01-1.21-neoforge |
1.21, 1.21.1 | neoforge | download |
26.05.01-1.20-forge |
1.20, 1.20.1 | forge, neoforge | download |