跳到正文

Nbt Crafting

作者:Siphalor

Nbt data in json recipes! Cauldron recipes, brewing recipes and a hella lot more!

收藏

介绍

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

This project is currently unmaintained and looking for maintainers interested in further development.

For further information or if you want to help out, please join the Discord 🙂


This mod extends the vanilla json datapack/recipe system. It does not provide an own scripting language.


Discord


About

It’s a “simple” fabric mod which allows you to add/change JSON crafting/cooking/etc. recipes to use nbt input and output.

Everything is kept nicely visualized in the vanilla gui.

This can be achieved through the now reintroduced data attribute.

For more information see the wiki pages.

You may want to use this mod with Cotton since this enables you to load datapacks globally and to remove unwanted recipes.

Extras 🙂

Nbt Crafting also gives you the ability to add new brewing recipes and enables you to add cauldron and anvil recipes. See the wiki) for an explanation of these features.

Due to some additions made with this mod the recipe book displays also the output amount of all recipes – yay!

Server Usage

This mod works also server-side only. This causes minor cosmetic issues at the client side.

Example

A simple recipe to get a cool “Battle Axe” of a diamond and a diamond sword with less than 41 damage.

{
  "type": "crafting_shapeless",
  "ingredients": [
    {
      "item": "minecraft:diamond_sword",
      "data": {
        "require": {
          "Damage": "$..40"
        }
      }
    },
    { "item": "minecraft:diamond" }
  ],
  "result": {
    "item": "minecraft:diamond_axe",
    "data": {
      "display": {
        "Name": "{\"text\":\"Battle Axe\"}"
      },
      "Enchantments": [
         {
           "id": "minecraft:sharpness",
           "lvl": 10
         }
      ]
    }
  }
}

Demo

Example Recipe ingame

Mod support

Every mod which is based on the default vanilla recipe system and which uses the Ingredient class should be compatible in terms of input nbt matching.

Feedback

If you encounter bugs or have suggestions just open a GitHub issue.

License/Modpack usage

This mod is released under Apache 2.0. Feel free to include it in modpacks etc. as long as you attribute me 🙂

常见问题

Nbt Crafting 支持哪些 Minecraft 版本?

Nbt Crafting 支持 Minecraft Java 版 1.15–1.19.2,共 15 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Nbt Crafting 怎么安装?

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

评论

登录后评论和评分

Siphalor 的其他作品

查看全部 →