CustomBrewRecipes

模组

· 作者 Emafire003

一个 Fabric 模组,让开发者轻松添加支持 NBT 数据的非药水酿造配方!

0 本站下载 0 关注 更新于 1 年前

最新 1.3.2-neo · 1.21.4 · NeoForge

一键开服(送7天)

CustomBrewRecipes

一个 Fabric 模组,允许开发者创建新的酿造配方,同时支持自定义的非药水物品以及 Components 或 NBT 数据。

详细说明可以在 javadoc 中找到,但你所需要做的只是调用

CustomBrewRecipeRegister.registerCustomRecipe()

并为配方提供物品。

或者如果你需要自定义组件,请使用

CustomBrewRecipeRegister.registerCustomRecipeWithComponents()

并使用已经带有自定义组件的物品堆(itemstacks),或者向该方法提供 nbt 数据。

该方法还有一个 NBT 版本,用于将数据存储到 CustomData 组件中。

你还可以检查组件类型(或 nbt 字段)的存在性,而不是它们的值!

CustomBrewRecipeRegister.registerCustomRecipeWithComponentPrescence()

注意:输出物品仍然需要具有完整的 ComponentMap/NBT,因为它是将要被创建的那个!

你还可以检查字段/组件及其特定值的存在性!你需要使用

CustomBrewRecipeRegister.registerCustomRecipeWithComponentType();

注意:输出物品仍然需要具有完整的 ComponentMap/NBT,因为它是将要被创建的那个!

设置

你可以通过在 build.gradle 中添加以下内容来将其添加到项目中:

repositories {
    maven {
        name = "Modrinth"
        url = "https://api.modrinth.com/maven"
        content {
            includeGroup "maven.modrinth"
        }
    }
}

dependencies {
    modImplementation "maven.modrinth:custombrewrecipes:<version>"
}

许可证

本模组遵循 CC0 许可证。

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源