Download Recipes Library — Minecraft Mods — MetaMods
Recipes Library

Recipes Library

Active

Downloads

1

Last update

1 year ago

Versions

1.17.1 — 1.21.1
Client and server
Forge
Libraries
Utils

Recipes Library

Recipes Library is a library-type modification required for the operation of dependent mods. It must be installed both on the client side and on the server side.

What's New in Version 3.X.X

For information about previous versions, refer to the project's corresponding documentation.

Modification Capabilities

This mod introduces two new types of crafting recipes: "recipes_lib:crafting_shaped_components" and "recipes_lib:crafting_shapeless_components".

The feature of these recipes is the use of system components for creating items in a manner similar to standard shaped and shapeless creation methods.

Craft result structure includes three main elements:

  • item: systematic name of the result item
  • components: component data for the result item
  • merge_components: necessity to search for an item with which the components will be merged

Code example:

"result": {
    "item": "minecraft:written_book",
    "components": {
        "minecraft:written_book_content": {
            "pages": [
                {
                    "text": "Hello2"
                }
            ]
        }
    },
    "merge_components": true
}

Renaming recipe type

The mod also adds a special renaming recipe type "recipes_lib:renaming". This recipe requires only one ingredient, while internally the function of a name tag is added to it.

The result of execution is the ingredient item with a personalized name of the corresponding name tag.

Code example:

{
    "type": "recipes_lib:renaming",
    "ingredient": {
        "item": "dynamical_compass:dynamical_compass"
    }
}

Component ingredient type

A specialized component ingredient type "recipes_lib:components" is also added, which includes four configuration elements:

  • type: sets the ingredient type
  • item: contains system parameters of the item
  • matchType: determines the component matching method

Types of matching methods:

  • EQUAL: component data of the input item must exactly match the components of the ingredient
  • CONTAINS: component structure of the ingredient must be included in the component structure of the input item
  • CONTAINS_NONE: no component from the ingredient structure should be present in the component structure of the input item
  • NOT_EQUAL: component structure of the input item should not exactly match the components of the ingredient

Code example:

{
    "type": "recipes_lib:components",
    "item": {
        "id": "minecraft:written_book",
        "components": {
            "minecraft:written_book_content": {
                "pages": [
                    {
                        "text": "Hello2"
                    }
                ]
            }
        }
    },
    "matchType": "CONTAINS_NONE"
}
Project members
GeheimagentNr1

GeheimagentNr1

Developer

Created: 16 Apr 2023

ID: 5118