Back to mods
PotionRecipeLib project artwork

Modrinth · Minecraft mod

PotionRecipeLib

Super duper easy potion crafting api for developers

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which PotionRecipeLib release matches 22w07a?

Updated 4 years ago
Best match for your filters 1.0.0
Game version 1.17, 1.17.1-pre1, 1.17.1-pre2
Loader Fabric, Quilt

PotionRecipeLib 1.0.0 targets 1.17, 1.17.1-pre1, 1.17.1-pre2 with Fabric, Quilt. Do not install it on the client. It must be installed on the dedicated server. No extra mods listed for this file.

Where it goes

Is PotionRecipeLib required on the client, server, or both?

Do not install it on the client. It must be installed on the dedicated server.

Client Not supported
Dedicated server Required
Loader for this release Fabric, Quilt
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This file is marked server-only.

What else does PotionRecipeLib 1.0.0 need?

1.0.0 on 22w07a. Every mod below is checked against that same setup.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add PotionRecipeLib without breaking your instance.

Built for PotionRecipeLib 1.0.0 on 22w07a. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.0.0. It targets 1.17, 1.17.1-pre1, 1.17.1-pre2 with Fabric, Quilt; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    Do not install it on the client. It must be installed on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.0.0. It opens that exact file at the source.

About this project

What does PotionRecipeLib add?

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.

Project description from Modrinth.

Pick your setup

PotionRecipeLib by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

122 available setups

Showing the newest 12 of 61 game versions. Older files are in the list below.

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

PotionRecipeLib versions and loaders

1 of 1 releases match

Looking for an older file? The official Modrinth project page is in Resources.