Modrinth · Minecraft mod
PotionRecipeLib
Super duper easy potion crafting api for developers
Quick answer
Which PotionRecipeLib release matches 22w07a?
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.
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.
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.
- 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.
- 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.
- 03
Put it on the correct side
Do not install it on the client. It must be installed on the dedicated server.
- 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 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.
22w18a
2 loader builds22w17a
2 loader builds22w16b
2 loader builds22w16a
2 loader builds22w15a
2 loader builds22w14a
2 loader builds22w13oneblockatatime
2 loader builds22w13a
2 loader builds22w12a
2 loader builds22w11a
2 loader builds22w07a
2 loader buildsShowing 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.0.0
potionrecipes-1.0.0.jar
6 Jun 2022
Looking for an older file? The official Modrinth project page is in Resources.