ModularMachinery Wiki(ZH)/机械文件格式:修订间差异

add
(建立内容为“机械的jsons(和变量jsons)必须保存在 /config/modularmachinery/machinery/ 文件夹下。 在json文件中定义一个机械的格式如下: <synta…”的新页面)
 
(add)
另外,你要在正 Z 轴方向上定义你的机械,因为控制器的朝向是负 Z 轴。转动它,它会在预览中变得很奇怪,控制器也会奇怪地旋转起来...
我们现在开始为机械写JSON文件:(警告,可能会比较长)
<syntaxhighlight lang="JSON">
{
"registryname": "centrifuge",
"localizedname": "Iron Reinforced Centrifuge",
"parts": [
{
"x": 0,
"y": 1,
"z": 2,
"elements": "minecraft:iron_block"
},
{
"x": 0,
"y": 1,
"z": 0,
"elements": "minecraft:iron_block"
},
{
"x": -1,
"y": 1,
"z": 1,
"elements": "minecraft:iron_block"
},
{
"x": 1,
"y": 1,
"z": 1,
"elements": "minecraft:iron_block"
},
{
"x": 1,
"y": 1,
"z": 2,
"elements": "minecraft:iron_bars"
},
{
"x": -1,
"y": 1,
"z": 2,
"elements": "minecraft:iron_bars"
},
{
"x": 1,
"y": 1,
"z": 0,
"elements": "minecraft:iron_bars"
},
{
"x": -1,
"y": 1,
"z": 0,
"elements": "minecraft:iron_bars"
},
{
"x": 0,
"y": 1,
"z": 1,
"elements": "minecraft:glass"
},
 
 
 
{
"x": 0,
"y": 0,
"z": 2,
"elements": "minecraft:iron_block"
},
{
"x": -1,
"y": 0,
"z": 1,
"elements": "minecraft:iron_block"
},
{
"x": 1,
"y": 0,
"z": 1,
"elements": "minecraft:iron_block"
},
{
"x": 1,
"y": 0,
"z": 2,
"elements": "minecraft:iron_bars"
},
{
"x": -1,
"y": 0,
"z": 2,
"elements": "minecraft:iron_bars"
},
{
"x": 1,
"y": 0,
"z": 0,
"elements": "minecraft:iron_bars"
},
{
"x": -1,
"y": 0,
"z": 0,
"elements": "minecraft:iron_bars"
},
{
"x": 0,
"y": 0,
"z": 1,
"elements": "minecraft:water"
},
 
{
"x": 1,
"y": -1,
"z": 2,
"elements": [
"modularmachinery:blockcasing",
"modularmachinery:blockinputitem",
"modularmachinery:blockinputenergy",
"modularmachinery:blockoutputitem",
"modularmachinery:blockoutputfluid"
]
},
{
"x": 0,
"y": -1,
"z": 2,
"elements": [
"modularmachinery:blockcasing",
"modularmachinery:blockinputitem",
"modularmachinery:blockinputenergy",
"modularmachinery:blockoutputitem",
"modularmachinery:blockoutputfluid"
]
},
{
"x": -1,
"y": -1,
"z": 2,
"elements": [
"modularmachinery:blockcasing",
"modularmachinery:blockinputitem",
"modularmachinery:blockinputenergy",
"modularmachinery:blockoutputitem",
"modularmachinery:blockoutputfluid"
]
},
{
"x": 1,
"y": -1,
"z": 1,
"elements": [
"modularmachinery:blockcasing",
"modularmachinery:blockinputitem",
"modularmachinery:blockinputenergy",
"modularmachinery:blockoutputitem",
"modularmachinery:blockoutputfluid"
]
},
{
"x": 0,
"y": -1,
"z": 1,
"elements": [
"modularmachinery:blockcasing",
"modularmachinery:blockinputitem",
"modularmachinery:blockinputenergy",
"modularmachinery:blockoutputitem",
"modularmachinery:blockoutputfluid"
]
},
{
"x": -1,
"y": -1,
"z": 1,
"elements": [
"modularmachinery:blockcasing",
"modularmachinery:blockinputitem",
"modularmachinery:blockinputenergy",
"modularmachinery:blockoutputitem",
"modularmachinery:blockoutputfluid"
]
},
{
"x": 1,
"y": -1,
"z": 0,
"elements": [
"modularmachinery:blockcasing",
"modularmachinery:blockinputitem",
"modularmachinery:blockinputenergy",
"modularmachinery:blockoutputitem",
"modularmachinery:blockoutputfluid"
]
},
{
"x": 0,
"y": -1,
"z": 0,
"elements": [
"modularmachinery:blockcasing",
"modularmachinery:blockinputitem",
"modularmachinery:blockinputenergy",
"modularmachinery:blockoutputitem",
"modularmachinery:blockoutputfluid"
]
},
{
"x": -1,
"y": -1,
"z": 0,
"elements": [
"modularmachinery:blockcasing",
"modularmachinery:blockinputitem",
"modularmachinery:blockinputenergy",
"modularmachinery:blockoutputitem",
"modularmachinery:blockoutputfluid"
]
}
]
}
 
</syntaxhighlight>
Tr:[https://www.mcbbs.net/?2649433 垠儿]
优秀编辑者、​界面管理员、​监督员、​管理员
1,754

个编辑