PotionRecipeLib 图标

PotionRecipeLib

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/potionrecipelib
资源信息

Minecraft 版本: 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

平台: fabric quilt

标签: library utility

资源介绍

Potion Recipes API

Note: Archived, since in newer version of FAPI this is already a thing
This simple API provides a simple way to make brewing recipes. If this is all you need, good use this, if you also need to do something else you may look also at nbt-crafting api or something like that.

This is just a "fancy" invoker, nothing less nothing more, so you could just create your own.

Setup

Include this library into your build.gradle as a dependency

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

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

If you want you can includethe API in your jar file by adding only the include string:

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>"
}

How to use it

Simply call

BrewingRecipeRegister.registerPotionRecipe(Potion input, Item item, Potion output);

@param input The potion you want to start from, usually Potions.AWKWARD or your custom potion (which is going to be YourPotions.POTION)
@param item The ingredient you need for your potion
@param output The potion you want to have as a result of the crafting

For an example you can look into my GlowfulWorld mod.

License

This API is available under the CC0 license. Feel free to learn from it and incorporate it in your own projects.

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
SimpleCraft

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

查看详情
Sparkweave Engine

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

查看详情
ClearItems

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

查看详情
Crimson Steve's Mutant Mobs

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

查看详情