AnvilAPI
by Hantonik
AnvilAPI lets modpack authors and mod developers define their own anvil recipes, using datapacks or code, for the anvil block in the game.
What it does
Custom anvil recipes can be added with datapacks, so a world or modpack can introduce new combinations without writing Java. Each recipe controls the ingredients, the result and the amounts, and can choose whether an input is consumed or returned. Recipes can set an XP cost, and items with durability can be used up partially instead of consuming the whole item.
Developers can build on the same system in code. Files exist for Fabric, Forge and NeoForge across the 7 release versions 1.19.3 – 1.20.4, and the latest file for each loader is 5.2.2.2 for 1.20.4, published 2024-01-28. Fabric API is required on Fabric, and CraftTweaker, JEI and REI are optional companions. Every player and the server need a copy of the mod. The code is open source under the MIT License, and the source code, issue tracker and wiki are public.
Key features
Datapack anvil recipes
Recipes are read from datapacks, so a world can add anvil combinations without changing the mod's code.
Configurable inputs and outputs
A recipe sets its ingredients, result amounts and whether each input is consumed or returned.
XP and durability costs
A recipe can require a set amount of XP, and items with durability can be consumed partially.
Example recipe file
The project includes an example anvil recipe file that shows the expected structure for new recipes.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
Optional 3
Use cases
Who it’s for: Modpack authors who want custom anvil recipes in their pack, and mod developers who need an anvil recipe API they can call from code.
How it compares
Anvils Resounded is a client-side only Fabric mod for 1.20.1, open source under the MIT License, so it changes the anvil on the client alone. Infinite Anvil is a server-side only mod for Forge and NeoForge across 1.16.5 – 1.21.1, also open source under the MIT License, so players join without installing it. Colorful Anvils is server-side only for Fabric and Quilt, and is released under the CC0 1.0 Universal license. Unlike these, AnvilAPI runs on client and server and provides the recipe system itself.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| AnvilAPI | Fabric, Forge and NeoForge | 1.19.3 – 1.20.4 | Client and server | 2024-01-28 |
| Anvils Resounded | Fabric | 1.20.1 | Client-side only | 2024-06-07 |
| Infinite Anvil | Forge and NeoForge | 1.16.5 – 1.21.1 | Server-side only | 2025-11-17 |
| Colorful Anvils | Fabric and Quilt | 1.18 – 1.20.1 | Server-side only | 2023-06-15 |
Questions
Does Fabric API need to be installed with AnvilAPI?
Does the server need AnvilAPI if players have it?
Which game versions does the current file support?
In the catalog
AnvilAPI is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 13,907 mods support Minecraft 1.20.4.
More from Hantonik
Similar mods
What the author says
\ AnvilAPI is a mod that adds to the game the ability to create your own dream anvil recipes. 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…
Official listing
- Modrinth page
- modrinth.com/mod/anvilapi
- Owner
- Hantonik
- Published
- 2023-04-15
- Updated on Modrinth
- 2024-01-28
- Facts verified
- 2026-10-15
