Skip to content

AnvilAPI is a mod that adds to the game the ability to create your own dream anvil recipes.

License

Notifications You must be signed in to change notification settings

Hantonik/AnvilAPI

Repository files navigation

AnvilAPI CurseForge CurseForge

image
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

Download from CurseForge
Download from Modrinth

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!