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 许可证。
CustomBrewRecipes
A fabric mod that allows developers to create new Brewing Recipes that also support custom non potion items and Components or NBT data.
Detailed instructions can be found in the javadoc, but all you have to do is calling
CustomBrewRecipeRegister.registerCustomRecipe()
and supply the items for the recipe.
Or if you need custom components, use the
CustomBrewRecipeRegister.registerCustomRecipeWithComponents()
and either use itemstacks that already have custom components or supply the nbt to the method.
There also is a NBT version of the method that saves stuff to the CustomData component.
You can also check for the presence of component types (or nbt-fields) and not their values!
CustomBrewRecipeRegister.registerCustomRecipeWithComponentPrescence()
NB: The output item will still need to have the whole ComponentMap/NBT, since it's the one which is going to be created!
You can also check for the presence of field/componet and specific value! You will need to use
CustomBrewRecipeRegister.registerCustomRecipeWithComponentType();
NB: The output item will still need to have the whole ComponentMap/NBT, since it's the one which is going to be created!
Setup
You can add it to your project by adding in your build.gradle:
repositories {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
content {
includeGroup "maven.modrinth"
}
}
}
dependencies {
modImplementation "maven.modrinth:custombrewrecipes:<version>"
}
License
This mod is available under the CC0 license.
下载 CustomBrewRecipes
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CustomBrewRecipes
下载 CustomBrewRecipes
下载 CustomBrewRecipes
下载 CustomBrewRecipes
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CustomBrewRecipes
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CustomBrewRecipes
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
已更新以兼容 NeoForge 1.21.1。可能适用于 1.21.1+,但我尚未测试过。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧