本篇教程由作者设定未经允许禁止转载。
目前本教程仅适用于3.1.0.231之前的匠魂3,而新版本匠魂3有较大的改动,且目前其官方文档暂未更新所以暂不更新本教程。
非金属:
需要创建三个JSON文件。
以安山合金为例:
第一个为部件材料注册:(参考源文件夹:data\tconstruct\recipes\tools\materials\XXX)
{
"type": "tconstruct:material",
"ingredient": {
"item": "create:andesite_alloy"
},
"value": 1,
"needed": 1,
"material": "tconstruct:andesite_alloy"
}
第二个为部件材料特性:(参考源文件夹:data\tconstruct\materials\definition\XXX)
{
"craftable": true,
"tier": 1,
"sortOrder": 1,
"textColor": "#919191",
"traits": [
{
"name": "tconstruct:stonebound",
"level": 1
}
]
}
第三个为部件材料属性:(参考源文件夹:data\tconstruct\materials\stats\XXX)
{
"materialId": "tconstruct:andesite_alloy",
"stats": [
{
"id": "tconstruct:head",
"durability": 200,
"miningSpeed": 6.0,
"harvestLevel": 1,
"attack": 1.0
},
{
"id": "tconstruct:handle",
"durability": 0.92,
"miningSpeed": 1.15,
"attackSpeed": 1.15,
"attackDamage": 0.8
},
{
"id": "tconstruct:extra"
}
]
}
具体参数可以借助翻译软件获得解释,其中的数据可自行修改。
金属:
需要创建三个或更多的JSON文件,具体情况根据金属而定。
以黄铜为例:
第一个为部件材料注册:(参考源文件夹:data\tconstruct\recipes\tools\materials\XXX)
此处为锭注册,若需要注册块和粒或者更多,则依此类推。
{
"type": "tconstruct:material",
"conditions": [
{
"value": {
"tag": "forge:ingots/brass",
"type": "forge:tag_empty"
},
"type": "forge:not"
}
],
"ingredient": {
"tag": "forge:ingots/brass"
},
"value": 1,
"needed": 1,
"material": "tconstruct:brass"
}
第二个为部件材料特性:(参考源文件夹:data\tconstruct\materials\definition\XXX)
{
"condition": {
"value": {
"tag": "forge:ingots/brass",
"type": "forge:tag_empty"
},
"type": "forge:not"
},
"craftable": false,
"tier": 3,
"sortOrder": 1,
"fluid": "tconstruct:molten_brass",
"fluidPerUnit": 144,
"textColor": "#D5A75B",
"temperature": 605,
"traits": [
{
"name": "tconstruct:maintained",
"level": 1
}
]
}
第三个为部件材料属性:(参考源文件夹:data\tconstruct\materials\stats\XXX)
{
"materialId": "tconstruct:brass",
"stats": [
{
"id": "tconstruct:head",
"durability": 740,
"miningSpeed": 7.0,
"harvestLevel": 3,
"attack": 2.0
},
{
"id": "tconstruct:handle",
"durability": 0.95,
"miningSpeed": 1.15,
"attackSpeed": 1.15,
"attackDamage": 1.0
},
{
"id": "tconstruct:extra"
}
]
}
具体参数可以借助翻译软件获得解释,其中的数据可自行修改。
参考资料:https://github.com/SlimeKnights/TinkersConstruct/wiki/Recipe-JSON-List