Back to mods
Recipe Modification library project artwork

Modrinth · Minecraft mod

Recipe Modification library

Allows you to automatically apply arbitrary modifications to all recipes at runtime in a simple way.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Recipe Modification library release should I use?

Updated 23 days ago
beta file 0.1.4-26.1.2-fabric
Game version 26.1.2
Loader Fabric

Recipe Modification library 0.1.4-26.1.2-fabric targets 26.1.2 with Fabric. Do not install it on the client. It must be installed on the dedicated server. No extra mods listed for this file.

Where it goes

Is Recipe Modification library required on the client, server, or both?

Do not install it on the client. It must be installed on the dedicated server.

Client Not supported
Dedicated server Required
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This file is marked server-only.

What else does Recipe Modification library 0.1.4-26.1.2-fabric need?

0.1.4-26.1.2-fabric. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add Recipe Modification library without breaking your instance.

Built for Recipe Modification library 0.1.4-26.1.2-fabric. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 0.1.4-26.1.2-fabric. It targets 26.1.2 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    Do not install it on the client. It must be installed on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 0.1.4-26.1.2-fabric. It opens that exact file at the source.

About this project

What does Recipe Modification library add?

Recipe Modification

What is this?

This mod on its own doesn't do anything, instead, it's a tool for mod pack creators, data pack creators, other mod developers or anyone who likes tinkering.
It allows you to automatically apply arbitrary modifications to any type of recipe at runtime in a simple way, either by using JSON files in a datapack or using the Java API.

This means, instead of manually overriding multiple existing recipes, you define a set of recipe modifiers, which are applied when the game is starting. This means that modifications are applied to any recipes added by all other mods as well, without causing any incompatibilities or weird issues in case of multiple mods overriding the same recipe.

Some examples:

For example, if you wanted to make it so that all button recipes create 8 buttons instead of just 1 because you think the button recipe is a scam otherwise, you can easily do that in just a few lines of JSON!

{
  "target_recipes": "#minecraft:buttons",
  "modifiers": [
    {
      "type": "modify_result_item",
      "function": "set_count",
      "count": 8
    }
  ]
}

A screenshot of eight buttons being crafted from one spruce plank

Other use cases would be, for example, if some mod's recipes are not properly compatible because they don't utilise tags correctly
(or there are no standardised tags for the relevant items), you can easily make them compatible
(without having to manually override every single recipe! yay!).

Say, for example, a mod named "mod_xyz" doesn't use the right tag for copper nuggets in their recipes, which makes these incompatible with copper nuggets from other mods.
Using Recipe Modification, you can fix it like this:

{
  "target_recipes": {
    "type": "namespace_equals",
    "namespace": "mod_xyz"
  },
  "modifiers": [
    {
      "type": "add_alternative",
      "ingredients": "mod_xyz:copper_nugget",
      "alternative": {
        "tag": "c:copper_nuggets"
      }
    }
  ]
}

How can I use this?

Generally, the preferred way to interact with this mod is via JSON files, however, there is also a Java API available.

Check out the document about JSON Syntax for more information on how to write these JSON files and what you can do with this mod.
There are also some (nonsensical, but working) test modifiers that you can take inspiration from.

For the Java API, just take a look at the api package, especially the methods in the main RecipeModification class.

More detailed instructions & usage information coming soon™.

If you have any questions or need help, always feel free to message me on discord or open a GitHub issue.

Project description from Modrinth.

Pick your setup

Recipe Modification library by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

10 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Recipe Modification library versions and loaders

16 of 16 releases match

Looking for an older file? The official Modrinth project page is in Resources.