PotionRecipeLib
Super duper easy potion crafting api for developers
About this Mod
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.
Available Versions
How to Install PotionRecipeLib on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (1.19).
Install Mod
Open the mod browser in the dashboard and search for "PotionRecipeLib". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.19, 1.19-rc2, 1.19-rc1 (+58 more)
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
PotionRecipeLib server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.19). You can switch loaders with one click in the panel.
Is PotionRecipeLib compatible with fabric and quilt?
PotionRecipeLib officially supports fabric, quilt for Minecraft 1.19, 1.19-rc2, 1.19-rc1. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with PotionRecipeLib – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if PotionRecipeLib consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install PotionRecipeLib with just one click on your server.