跳到正文

Recipes Library

A library adding implementations for recipes.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Version 4.X.X

For older versions of the mod, check the wiki.

This mod is a library mod, needed any side where a dependent mod is installed.
The mod is needed on server and client side.


You need a server to play with friends? You don’t know how to set up one? Just rent an already configured server!

BisectHosting Promotion Banner

Click on the picture above, select a plan (with recommended at least 6 GB),
use my code agent to get 25% off your first month and enjoy playing with your friends!


Support

Supported Versions Image
Minecraft versions, for which the mod is not released, are not supported.
You can find a text version here.

Features

This mod adds two recipes types recipes_lib:crafting_shaped_components and recipes_lib:crafting_shapeless_components.
Ingredients Shaped Components are Shapeless Components to build like the vanilla shaped and shapeless recipes.
The result has to have three elements:

  • item: Registry Name of the result item
  • components: Components data of the result item
  • merge_components: Should an item be searched with, which the Components should be merged.

Example:
~~~json
“result”: {
“item”: “minecraft:written_book”,
“components”: {
“minecraft:written_book_content”: {
“pages”: [
{
“text”: “Hello2”
}
]
}
},
“merge_components”: true
}
~~~

This mod adds a recipe type recipes_lib:renaming.
The recipe has only one ingredient. Internally a name tag is added as ingredient.
The result of the recipe is the ingredient with the custom name of the name tag.

Example:
~~~json
{
“type”: “recipes_lib:renaming”,
“ingredient”: {
“item”: “dynamical_compass:dynamical_compass”
}
}
~~~

This mod adds an ingredient type recipes_lib:components.
This ingredient has to have four elements:

  • type: Ingredient type
  • item:
  • id: Registry Id of the ingredient item
  • components: Components data of the ingredient item
  • matchType:
  • EQUAL: The Components Data of the input item and the ingredient item must be exactly the same.
  • CONTAINS: The Components Data of the ingredient item must be a subset of the input item Components data.
  • CONTAINS_NONE: Any element Components Data element of the ingredient item must be not in the set of the Components data of the input item.
  • NOT_EQUAL: The Components Data of the input item and the ingredient item must not be exactly the same.

Example:
~~~json
{
“type”: “recipes_lib:components”,
“item”: {
“id”: “minecraft:written_book”,
“components”: {
“minecraft:written_book_content”: {
“pages”: [
{
“text”: “Hello2”
}
]
}
}
},
“matchType”: “CONTAINS_NONE”
}
~~~


Thanks for the logo to Muse31.
You can use this mod in non-commercial modpacks without asking.

You can find more mods from me on CurseForge and Modrinth.

This is a Forge mod only until 1.21.1. This is a NeoForge mod only starting 1.21.1. There will be no Fabric version. It will not be backported.

常见问题

Recipes Library 支持哪些 Minecraft 版本?

Recipes Library 支持 Minecraft Java 版 1.14.4–26.3,共 38 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

Recipes Library 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

GeheimagentNr1 的其他作品

查看全部 →