开启制作箭矢

开启制作箭矢

为制箭台添加GUI和配方

此模组添加了一个可通过右键点击制箭台打开的 GUI,并读取类型为 fletching:fletching 的配方。


 

标签:


  位于 tags/blocks/fletching_tables.json,
  所有注册在此标签下的方块都会打开自定义制箭台的 GUI,包括 Minecraft 原版的制箭台。
  [ ! ] 避免添加已有自身 GUI 和交互的方块。

 


 

配方自定义:


如果某种药水效果只有药水瓶形式,而没有对应的药箭,
结果将回退为带有自定义药水效果的 Minecraft 原版药箭。

 

示例配方4.json:8 支箭制作 8 支带有任意药水效果的药箭。(1.0.1 版本)

{
  "type": "fletching:fletching",
  "arrow":{
    "item": "minecraft:arrow",
    "count": 8
  },
  "potion": {
    "any_potion": true,
    "count": 1
  },
  "result": {
    "item": "minecraft:tipped_arrow",
    "count": 8,
    "copy_potion": true
  }
}

示例配方5.json:结合材料与箭,制作带有任意药水效果的药箭。(1.0.1 版本)

{
  "type": "fletching:fletching",
  "head": {
    "item": "minecraft:flint",
    "count": 1
  },
  "stick": {
    "item": "minecraft:stick",
    "count": 1
  },
  "feather": {
    "item": "minecraft:feather",
    "count": 1
  },
  "arrow":{
    "item": "minecraft:arrow",
    "count": 4
  },
  "potion": {
    "any_potion": true,
    "count": 1
  },
  "result": {
    "item": "minecraft:tipped_arrow",
    "count": 8,
    "copy_potion": true
  }
}

示例配方1.json:默认箭。

{
  "type": "fletching:fletching",
  "head": {
    "item": "minecraft:flint",
    "count": 1
  },
  "stick": {
    "item": "minecraft:stick",
    "count": 1
  },
  "feather": {
    "item": "minecraft:feather",
    "count": 1
  },
  "result": {
    "item": "minecraft:arrow",
    "count": 4
  }
}

示例配方2.json:药箭。

{
  "type": "fletching:fletching",
  "head": {
    "item": "minecraft:flint",
    "count": 2
  },
  "stick": {
    "item": "minecraft:stick",
    "count": 2
  },
  "feather": {
    "item": "minecraft:feather",
    "count": 2
  },
  "potion": {
    "items": [
      {
        "item": "minecraft:potion",
        "nbt": "{Potion:\"minecraft:regeneration\"}"
      },
      {
        "item": "minecraft:splash_potion",
        "nbt": "{Potion:\"minecraft:regeneration\"}"
      },
      {
        "item": "minecraft:lingering_potion",
        "nbt": "{Potion:\"minecraft:regeneration\"}"
      }
    ],
    "count": 1
  },
  "result": {
    "item": "minecraft:tipped_arrow",
    "nbt": "{Potion:\"minecraft:regeneration\"}",
    "count": 8
  }
}

示例配方3.json:将任意药水效果应用于自定义箭。

{
  "type": "fletching:fletching",
  "head": {
    "item": "minecraft:diamond",
    "count": 2
  },
  "stick": {
    "item": "minecraft:blaze_rod",
    "count": 2
  },
  "feather": {
    "item": "minecraft:gunpowder",
    "count": 2
  },
  "potion": {
    "any_potion": true,
    "count": 1
  },
  "result": {
    "item": "mod_id:rocket_arrow",
    "count": 8,
    "copy_potion": true
  }
}

"type" 用于检查是否在制箭台中进行合成。
"count" 表示合成一支箭所需物品的数量,在示例 2 中,如果某种物品数量少于 2 且带药水,则结果为空;如果没有药水,配方将回退到示例 1 中的 4 支箭。
在药水槽中可以注册多种物品。
[在示例 2 中,配方如同合成台中的结果数量]。
在示例 3 中,配方告诉模组将药水添加到自定义箭上。


许可证:
  无许可证。
  使用模组制作器 MCreator 创建,由 ArthurVesta(MNTS) 开发,并在 OpenAI Codex 的协助下完成。
  徽标由 Gemini 生成。
  创意来自 ArthurVesta(MNTS)。