|
药水配方库 (PotionRecipeLib)Github |相关wiki |源站链接支持: fabric , quilt为开发者提供超级简单的药水制作API
# 药水配方API
这个简单的API提供了一种简单的方法来制作酿造配方。如果这正是你所需要的,可以直接使用这个,如果你还需要做其他事情,你也可以看看nbt-crafting api之类的。
这只是一个“花哨”的调用器,没有更少也没有更多,所以你可以自己创建你自己的。
设置
将这个库包含到你的`build.gradle`中作为一个依赖项
repositories {
maven {
name = \"Modrinth\"
url = \"https://api.modrinth.com/maven\"
content {
includeGroup \"maven.modrinth\"
}
}
}
dependencies {
modImplementation \"maven.modrinth:potionrecipes:<version>\"
}Copy已复制!
如果你想的话,可以通过添加只包含`include`字符串的方式将API包含到你的jar文件中:
repositories {
maven {
name = \"Modrinth\"
url = \"https://api.modrinth.com/maven\"
content {
includeGroup \"maven.modrinth\"
}
}
}
dependencies {
modImplementation \"maven.modrinth:potionrecipes:<version>\"
include \"maven.modrinth:potionrecipes:<version>\"
}Copy已复制!
如何使用
只需调用
BrewingRecipeRegister.registerPotionRecipe(Potion input, Item item, Potion output);Copy已复制!
@param input 你想要从中开始的药水,通常是Potions.AWKWARD或你的自定义药水(将成为YourPotions.POTION)
@param item 你需要用于你的药水的成分
@param output 你希望作为配方结果的药水
你可以查看我的[GlowfulWorld](链接)模组的示例。
许可证
这个API可在CC0许可下使用。请随意学习并将其合并到你自己的项目中。
来自Modrinth所有游戏版本1.171.17.1-pre11.17.1-pre21.17.1-pre31.17.1-rc11.17.1-rc21.17.121w37a21w38a21w39a21w40a21w41a21w42a21w43a21w44a1.18-pre11.18-pre21.18-pre31.18-pre41.18-pre51.18-pre61.18-pre71.18-pre81.18-rc11.18-rc21.18-rc31.18-rc41.181.18.1-pre11.18.1-rc11.18.1-rc21.18.1-rc31.18.122w03a22w05a22w06a22w07a1.18.2-pre11.18.2-pre21.18.2-pre31.18.2-rc11.18.222w11a22w12a22w13a22w13oneblockatatime22w14a22w15a22w16a22w16b22w17a22w18a22w19a1.19-pre11.19-pre21.19-pre31.19-pre41.19-pre51.19-rc11.19-rc21.19所有类型fabricquiltPotionRecipesLib 1.0.0potionrecipes-1.0.0.jar下载1.0.0#Release展开版本: 1.0.0支持游戏: 1.17, 1.17.1-pre1, 1.17.1-pre2, 1.17.1-pre3, 1.17.1-rc1, 1.17.1-rc2, 1.17.1, 21w37a, 21w38a, 21w39a, 21w40a, 21w41a, 21w42a, 21w43a, 21w44a, 1.18-pre1, 1.18-pre2, 1.18-pre3, 1.18-pre4, 1.18-pre5, 1.18-pre6, 1.18-pre7, 1.18-pre8, 1.18-rc1, 1.18-rc2, 1.18-rc3, 1.18-rc4, 1.18, 1.18.1-pre1, 1.18.1-rc1, 1.18.1-rc2, 1.18.1-rc3, 1.18.1, 22w03a, 22w05a, 22w06a, 22w07a, 1.18.2-pre1, 1.18.2-pre2, 1.18.2-pre3, 1.18.2-rc1, 1.18.2, 22w11a, 22w12a, 22w13a, 22w13oneblockatatime, 22w14a, 22w15a, 22w16a, 22w16b, 22w17a, 22w18a, 22w19a, 1.19-pre1, 1.19-pre2, 1.19-pre3, 1.19-pre4, 1.19-pre5, 1.19-rc1, 1.19-rc2, 1.19类型:FabricQuiltRelease下载次数: 269全部版本
markdown_parsed
文章类型:收录
layui.use([\'form\'], function(){
var form = layui.form;
});
药水配方库 |
|