跳到正文

Trading station

作者:oierbravo

基础物品兑换机器

收藏

介绍

介绍由机器翻译自 CurseForge 原页面,仅供参考。

交易站

  • 物品交易机器。
  • 为整合包而制作。它不添加任何配方。

专用 Wiki

1.21.1-1.x 版本需要 Mechanicals Lib

特性

  • 无需电力的基础交易站。
  • 需要 RF 电力的供能交易站。
  • 自定义交易配方
  • 每个配方可自定义配方需求。
  • 每种交易站都有不可破坏的变体。
  • 可配置的消耗与进度。
  • 配合附属模组可提供机械(Create 附属)交易站。链接

交易配方

  • "type": "trading_station:trading"
  • result:输出物品。允许使用物品 components。
  • ingredients:所需物品。
  • processingTime:所需时间(刻)。
  • recipeRequirements:自定义配方需求。WIKI

示例(一种原料)

{
    "type": "trading_station:trading",
    "result": {
        "id": "minecraft:diamond",
        "count": 5
    },
    "ingredients": [
        {
            "ingredient": {
                "item": "minecraft:emerald"
            },
            "count": 5
        }
    ]
}

示例(两种原料)

{
  "type": "trading_station:trading",
  "result": {
    "id": "minecraft:gold_block",
    "count": 5
  },
  "ingredients": [
    {
      "ingredient": {
        "item": "minecraft:oak_log"
      },
      "count": 5
    },
    {
      "ingredient": {
        "item": "minecraft:birch_log"
      },
      "count": 10
    }
  ],
  "processingTime": 250
}

示例(附魔书)

{
    "type": "trading_station:trading",
    "result": {
        "id": "minecraft:enchanted_book",
        "count": 1,
        "components": {
            "minecraft:stored_enchantments": {
                "levels": {
                    "minecraft:density": 3
                }
            }
        }
    },
    "ingredients": [
        {
            "ingredient": {
                "item": "minecraft:diamond"
            },
            "count": 5
        }
    ],
    "processingTime": 100
}

示例(机器需求)

{
    "type": "trading_station:trading",
    "result": {
        "id": "minecraft:emerald_block",
        "count": 1
    },
    "ingredients": [
        {
            "ingredient": {
                "item": "minecraft:diamond"
            },
            "count": 5
        }
    ],
    "processingTime": 100,
    "requirements": [
        {
            "value": [
                "powered",
                "mechanical"
            ],
            "type": "trading_station:machine_id"
        }
    ]
}

KubeJS

一些示例

// Processing time
event.recipes.trading_station.trading(Item.of('minecraft:gold_block', 5),[Item.of("5x minecraft:oak_log"),Item.of("10x minecraft:birch_log")]).processingTime(250);

//Enchanted book result
event.recipes.trading_station.trading(Item.of('minecraft:enchanted_book[stored_enchantments={levels:{"minecraft:unbreaking":3}}]', 1),[Item.of("minecraft:diamond", 5)]).processingTime(100);

//With machine requirement
event.recipes.trading_station.trading(Item.of('minecraft:emerald_block'),[Item.of("5x minecraft:diamond")]).processingTime(100).requirements(MachineId.of(["powered","mechanical"]));

机器 ID(绑定)

MachineId.of(["powered","mechanical"])

常见问题

Trading station 支持哪些 Minecraft 版本?

Trading station 支持 Minecraft Java 版 1.19.2–1.21.1,共 2 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

Trading station 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

oierbravo 的其他作品

查看全部 →