Smart Recipes

A Fabric mod that extends recipe format with conditions.

Редакция NLZONE · 2 мин чтения · 1 просмотр
Smart Recipes
Скачать Smart Recipes1.17 – 1.20.4 · с официальной страницы: modrinth.com
Перейти к загрузке

Что это

A Fabric mod that extends recipe format with conditions.

  • Тип: мод
  • Загрузчик: fabric
  • Версии Minecraft: 1.17 – 1.20.4
  • Скачиваний на Modrinth: 5 192

Подробно

[](https://github.com/Kir-Antipov/smart-recipes/actions/workflows/build-artifacts.yml) [](https://github.com/Kir-Antipov/smart-recipes/releases/latest) [](https://modrinth.com/mod/smart-recipes) [](https://www.curseforge.com/minecraft/mc-mods/smart-recipes) [](https://github.com/Kir-Antipov/smart-recipes/blob/HEAD/LICENSE.md)

Do you find the standard Minecraft recipe format boring? Or maybe you wish to make the game more event-based, like Terraria? If so, Smart Recipes is what you need! Craft your own unique experience with our new conditional recipe format!

If you prefer a practical example over explanations, feel free to skip directly to the Example section. However, don't forget to revisit the Conditions and Reload Conditions sections later.

The Smart Recipes mod extends the vanilla recipe format. It's crucial to understand how the vanilla format works; otherwise, the following descriptions may not make sense.

This mod introduces a new smartrecipes:conditions property to the recipe format. It's somewhat similar to the conditions in loot tables. Let's take a closer look it:

This property determines conditions for the recipe to be loaded. If multiple conditions are specified, all must pass.

jsonc "smartrecipes:conditions": [ { "condition": "conditionName0", "args": [ // Arguments to be passed to some condition named conditionName0. 4, "2" ] }, { "condition": "conditionName1", "args": [ // Arguments to be passed to some condition named conditionName1. "foo" ] } ]

This example is identical to how conditions in loot tables are usually written. However, I find them too verbose. Let's explore how we can improve our conditions.

jsonc // Let's turn this condition declaration: { "condition": "conditionName1", "args": [ "foo" ] }

// Into this one: "conditionName1": ["foo"]

jsonc "smartrecipes:conditions": [ { "conditionName0": [4, "2"] }, { "conditionName1": ["foo"] } ]

This is even better than before, but there is still some room for imporvement. Let's consolidate our conditions into a single object:

jsonc "smartrecipes:conditions": [ { "conditionName0": [4, "2"], "conditionName1": ["foo"] } ]

Finally, if an array contains only one object, the Smart Recipes mod allows you to omit its declaration. Here's the final result:

jsonc "smartrecipes:conditions": { "conditionName0": [4, "2"], "conditionName1": "foo" }

Как установить

Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.

Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.

Редакция NLZONE

Пишем о серверах, модах и играх, в которые играем сами. Нашли ошибку — напишите нам, исправим.

Комментарии 0

Комментарии к этому материалу отключены.

Читайте также