Delight Lib 图标

Delight Lib

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 26.05.20-1.21.11-fabric
本资源为搬运资源,原资源地址: https://modrinth.com/mod/delight-lib
资源信息

Minecraft 版本: 1.21.11

平台: fabric

标签: library

资源介绍
![Delight Lib](https://cdn.modrinth.com/data/rmDY6fYt/images/5d6afc0c897d26557b68c4b6ae51872d42b0ae89.png)

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();

Saving for a laptop!

[![Patreon Button](https://raw.githubusercontent.com/intergrav/devins-badges/refs/heads/v3/assets/cozy/donate/patreon-singular_64h.png)](https://www.patreon.com/Axperty) [![PayPal Button](https://raw.githubusercontent.com/intergrav/devins-badges/refs/heads/v3/assets/cozy/donate/paypal-singular_64h.png)](https://paypal.me/kevgelhorn) [![Ko-Fi Button](https://raw.githubusercontent.com/intergrav/devins-badges/refs/heads/v3/assets/cozy/donate/kofi-singular_64h.png)](https://ko-fi.com/axperty)
📥 下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
WITS (What Is This Structure?)

价格:0 墨喵币
下载量:0

查看详情
RTG Plus

价格:0 墨喵币
下载量:0

查看详情
Create Origins Compat

价格:0 墨喵币
下载量:0

查看详情
Custom Anchors

价格:0 墨喵币
下载量:0

查看详情