
AnvilAPI is a mod that adds to the game the ability to create your own dream anvil recipes.
Description
By uploading this mod, you gain the ability to add anvil recipes to the game using datapacks. In addition to the obvious customization of ingredients and results, and their amounts, you can also choose whether the input will be consumed, what it will return, and the amount of XP required.
Items with durability will be able to consume it instead of the whole item if you choose to!
Downloads
Minecraft 1.20.4
Minecraft 1.19.4
Wiki
Here is an example anvil recipe file:
{
"type": "minecraft:anvil",
"inputs": [
{
"consume": false,
"count": 3,
"tag": "minecraft:coals"
},
{
"count": 5,
"item": "minecraft:iron_ingot"
}
],
"experience": 15,
"result": {
"count": 1,
"item": "minecraft:diamond"
}
}
For more information, see the full documentation here.
Yes, you can use this mod in your modpack! That's literally what it was made for!
Contribution
Found a bug? Report it here, and I'll try to fix it!
Have an idea for a new feature? Tell me more about it here!
Code
Click me for source code!
"If you want to use my code, feel free, but remember to mention whose code it is!
Take care, author."
Support
I do it out of passion, but if you want to appreciate my work, you can do it by buying me a coffee, thanks <3!
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.20.4
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
- Ships as AnvilAPI-1.20.4-fabric-5.2.2.2.jar — drop this file into the mods folder
- Download size: 195 KB
- Download link checked 30 Aug 2026 — working
These come from our own check of the pack file, not from the source page.
