本文章将教各位使用CoreExtensions创建自定义合成配方

好了,第一步当然是打开"core/你的包名/data/"文件夹并创建recipe.yml文件,然后暂时填入以下代码然后跟着文章熟悉整个流程

#recipe.yml
recipes:

合成分类类型

BUILDING_BLOCKS
建筑
DECORATIONS装饰
REDSTONE红石
TRANSPORTATION运输
TOOLS工具
COMBAT战斗
FOOD食物
BREWING酿造
MISC杂项


有序合成

3x3有序合成配方示例

  crafting_shaped123: #3x3配方
    name: "test1"
    namespace: "coreextensions" #命名空间
    id: "crafting_shaped_test" #配方ID
    types: "crafting_shaped" #类型:有序合成
    properties:
      result: "minecraft:bedrock" #物品输出
      count: 1 #合成输出数量
      category: "MISC" #合成分类(BUILDING_BLOCKS,DECORATIONS,REDSTONE,TRANSPORTATION,TOOLS,COMBAT,FOOD,BREWING,MISC)
      pattern:
        topRowPattern:    " A "
        middleRowPattern: " B "
        bottomRowPattern: " C "
      key:
        A: "minecraft:diamond_block"
        B: "minecraft:diamond_block"
        C: "minecraft:diamond_block"
        D: "minecraft:air"
        E: "minecraft:air"
        F: "minecraft:air"
        G: "minecraft:air"
        H: "minecraft:air"
        I: "minecraft:air"

该有序合成对应工作台表:


A

B

C

无序合成

有东西就按顺序从A填写到I就行了,没有的删掉那行或者是填写"minecraft:air"

  crafting_shapeless123:
    name: "test2"
    namespace: "coreextensions"
    id: "crafting_shapeless_test"
    types: "crafting_shapeless" #无序合成
    properties:
      result: "minecraft:bedrock"
      count: 4
      category: "MISC"
      key:
        A: "minecraft:bedrock"
        B: "minecraft:bedrock"
        C: "minecraft:bedrock"
        D: "minecraft:air"
        E: "minecraft:air"
        F: "minecraft:air"
        G: "minecraft:air"
        H: "minecraft:air"
        I: "minecraft:air"

熔炉/高炉/烟熏炉

inputresult

cookingTime (时间)
experience (经验)



  FFF123:
    name: "test2"
    namespace: "coreextensions"
    id: "smelting_test"
    types: "smelting" #可选类型:熔炉smelting,烟熏炉smoking,高炉blasting
    properties:
      input: "minecraft:diamond_block" #输入物品
      result: "minecraft:bedrock" #输出物品
      experience: 1.5 #经验
      cookingTime: 100 #消耗时间
      category: "MISC"

锻造台转化

templatebaseadditionresult





  transformRecipe123:
    name: "test2"
    namespace: "coreextensions"
    id: "transform_test"
    types: "transform" #锻造台转化(可合成)
    properties:
      category: "MISC"
      result: "minecraft:command_block"
      key:
        template: "minecraft:diamond" #锻造模板位置(可以不用锻造模板)
        base: "minecraft:bedrock" #材料位置
        addition: "minecraft:gold_ingot" #材料位置