Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
PotionRecipeLib

PotionRecipeLib

Super duper easy potion crafting api for developers

259
2
Library
Utility
PotionRecipeLib has been archived. PotionRecipeLib will not receive any further updates unless the author decides to unarchive the project.
AboutChangelogVersions

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 include the 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.

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Compatibility

Minecraft: Java Edition

1.19
1.18.x
1.17.x

Platforms

Fabric
Quilt

Supported environments

Client and server

Links

Report issues View source Visit wiki
Donate on Ko-fi

Creators

Emafire003
Emafire003 Owner

Details

Licensed CC0-1.0
Published 3 years ago
Updated 3 years ago

Modrinth is open source.

main@9fd0f68

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.