ModsFinder

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.

FabricForgeNeoForgeClient and serverMIT LicenseOpen source1.19.3 – 1.20.4

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

  1. Datapack anvil recipes

    Recipes are read from datapacks, so a world can add anvil combinations without changing the mod's code.

  2. Configurable inputs and outputs

    A recipe sets its ingredients, result amounts and whether each input is consumed or returned.

  3. XP and durability costs

    A recipe can require a set amount of XP, and items with durability can be consumed partially.

  4. 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.

1.20.45.2.2.25.2.2.25.2.2.2
1.20.35.2.0.0-beta5.2.0.0-beta5.2.0.0-beta
1.20.25.1.1.0-beta5.1.1.0-beta5.1.1.0-beta
1.20.14.1.4.04.1.4.04.1.4.0
1.20Not available3.1.0.0Not available
1.19.42.2.0.02.2.0.0Not available
1.19.3Not available2.0.0.0Not available
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Requirements

Dependencies declared by the latest file for each loader.

Required 1

Fabric APILightweight and modular API providing common hooks and intercompatibility measures utilized by mods using the Fabric toolchain.
Required

Optional 3

Roughly Enough Items (REI)Clean and Customizable. Alternative to Just Enough Items/JEI.
Optional
Just Enough Items (JEI)View Items and Recipes
Optional
CraftTweakerCraftTweaker allows modpacks and servers to customize the game. With CraftTweaker you can change recipes, script events, add new commands and even change item properties!
Optional

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

Full comparison

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.

ModLoadersGame versionsEnvironmentUpdated
AnvilAPIFabric, Forge and NeoForge1.19.3 – 1.20.4Client and server2024-01-28
Anvils ResoundedFabric1.20.1Client-side only2024-06-07
Infinite AnvilForge and NeoForge1.16.5 – 1.21.1Server-side only2025-11-17
Colorful AnvilsFabric and Quilt1.18 – 1.20.1Server-side only2023-06-15

Questions

Does Fabric API need to be installed with AnvilAPI?

Yes. Fabric API is required on Fabric, and the mod is published for Fabric, Forge and NeoForge, so Forge and NeoForge installs do not need it.

Does the server need AnvilAPI if players have it?

Yes. The server and every player need the mod installed.

Which game versions does the current file support?

The mod is published for 1.19.3 – 1.20.4, with the latest file 5.2.2.2 for 1.20.4, released 2024-01-28.

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

All projects

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…
Hantonik, on the Modrinth page

Official listing

Owner
Hantonik
Published
2023-04-15
Updated on Modrinth
2024-01-28
Facts verified
2026-10-15

Tags