-
Notifications
You must be signed in to change notification settings - Fork 0
填充层压缩
化龙焚天 edited this page May 23, 2021
·
9 revisions
模组地址:
https://www.curseforge.com/minecraft/mc-mods/compact-crafting
https://www.mcmod.cn/class/3497.html
https://github.com/CompactMods/CompactCrafting
Json合成结构示例,需要放到recipes文件夹。
{
"type": "compactcrafting:miniaturization",
"version": 1,
"recipeSize": *,
"layers": [ ],
"catalyst": { },
"components": { },
"outputs": [ ]
}
- type:必须为“compactcrafting:miniaturization”
- version:当前版本都填1
- recipeSize: 合成的等级,填3表示是一个3X3X3的压缩合成
- layers: 分层,详细见下
- catalyst:催化剂
- components:压缩物品,详细见下
- outputs:输出
layers一共有3种,这里我们讲填充层
首先,我们需要先确立这个模组是如何合成的
recipeSize: 是用来定义合成大小类型,比如这个是recipeSize为3,表示3X3X3的压缩合成
layers:每个层需要自己定义
"layers": [
{
"type": "compactcrafting:filled", //类型:填充层
"component": "C" // C是一个对象,对应得key在components中填写
}, //1层
{
"type": "compactcrafting:filled", //填充层就是在这个层全是这个方块
"component": "C"
}, //2层
{
"type": "compactcrafting:filled",
"component": "C"
} //3层
],
"catalyst": { //催化剂
"id": "minecraft:diamond", //物品注册名id
"Count": 1 //消耗数量
},
"components": {
"C": { // C对应的方块
"type": "compactcrafting:block", //这个为必填项,必须为compactcrafting:block
"block": "minecraft:coal_block" //对应的方块
}
{
"type": "compactcrafting:miniaturization",
"version": 1,
"recipeSize": 3,
"layers": [
{
"type": "compactcrafting:filled",
"component": "C"
},
{
"type": "compactcrafting:filled",
"component": "C"
},
{
"type": "compactcrafting:filled",
"component": "C"
}
],
"catalyst": {
"id": "minecraft:diamond",
"Count": 1
},
"components": {
"C": {
"type": "compactcrafting:block",
"block": "minecraft:coal_block"
}
},
"outputs": [
{
"id": "minecraft:diamond_block",
"Count": 1
}
]
}
最后一点,输出,输入可以不只一项