Trading station 图标

Trading station

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.21.1-1.0.5
本资源为搬运资源,原资源地址: https://modrinth.com/mod/trading-station
资源信息

Minecraft 版本: 1.21.1

平台: neoforge

标签: economy game-mechanics technology

资源介绍

Trading Station

  • Item trading machine.
  • Made for modpacks. It doesn't add any recipe.

Dedicated wiki

1.21.1-1.x Version Requires Mechanicals Lib

Features

  • Basic station with no power requirements.
  • Powered station with RF power requirements.
  • Custom Trading recipe
  • Custom recipe requirements per recipe.
  • Indestructible variant for each station.
  • Configurable consumption & progress.
  • Mechanical (Create Addon) station available with companion mod.Link

Trading recipe

  • "type": "trading_station:trading"
  • result:Output item. Item components allowed.
  • ingredients: Required items.
  • processingTime: Required time in ticks.
  • recipeRequirements: Custom recipe requirements. WIKI

    Example (One ingredient)

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

    Example (Two ingredients)

    {
    "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
    }

    Example (Enchanted book)

    {
      "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
    }

    Example (Machine Requirement)

    {
      "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

    Some examples

    
    // 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"]));

### Machine ID (binding)
```js
MachineId.of(["powered","mechanical"])
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
original_plus

价格:0 墨喵币
下载量:0

查看详情
Fantasy's Furniture

价格:0 墨喵币
下载量:0

查看详情
EntityVisibility

价格:0 墨喵币
下载量:0

查看详情
GhostPreventer

价格:0 墨喵币
下载量:0

查看详情