AnvilAPI

AnvilAPI

Mod

Provides the ability to add custom anvil recipes.

Client and server Game MechanicsLibraryUtility

2,306 downloads
7 followers
Follow Save
90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!

Banner
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!


Project members

Hantonik

Owner

Details

Licensed MIT
Published a year ago
Updated 8 months ago