ModularMachinery Wiki(ZH)/机械结构到 JSON 转换工具 【进阶】:修订间差异

// Edit via Wikiplus
(// Edit via Wikiplus)
(// Edit via Wikiplus)
标签段首空两格
*除非你想与这个NBT-tag中的某些条目相适应,否则我们建议您完全删除'nbt'-specification。适当地调整每个位置的元素,这对于机器来说是合理的。
 
该导出机器的JSON文件只有“parts”-tags,目前只定义了多方块结构,所以还需添加"registryname"和"localizedname"等。
 
 
<syntaxhighlight lang="JSON">
{
"parts": [
{
"x": -1,
"y": 0,
"z": 0,
"elements": [
"modularmachinery:blockfluidinputhatch"
]
},
{
"x": -1,
"y": 0,
"z": 1,
"elements": [
"modularmachinery:blockcasing@1"
]
},
{
"x": 0,
"y": 0,
"z": 1,
"elements": [
"minecraft:water"
]
},
{
"x": 1,
"y": 0,
"z": 0,
"elements": [
"modularmachinery:blockinputbus"
]
},
{
"x": -1,
"y": 0,
"z": 2,
"elements": [
"modularmachinery:blockenergyoutputhatch"
]
},
{
"x": 1,
"y": 0,
"z": 1,
"elements": [
"modularmachinery:blockcasing@1"
]
},
{
"x": 0,
"y": 0,
"z": 2,
"elements": [
"modularmachinery:blockcasing@0"
]
},
{
"x": 1,
"y": 0,
"z": 2,
"elements": [
"modularmachinery:blockoutputbus"
]
},
{
"x": 1,
"y": -1,
"z": 0,
"elements": [
"modularmachinery:blockcasing@1"
]
},
{
"x": 0,
"y": -1,
"z": 0,
"elements": [
"modularmachinery:blockcasing@0"
]
},
{
"x": -1,
"y": 1,
"z": 0,
"elements": [
"modularmachinery:blockcasing@0"
]
},
{
"x": -1,
"y": -1,
"z": 0,
"elements": [
"modularmachinery:blockcasing@1"
]
},
{
"x": 0,
"y": 1,
"z": 0,
"elements": [
"modularmachinery:blockcasing@1"
]
},
{
"x": -1,
"y": 1,
"z": 1,
"elements": [
"modularmachinery:blockcasing@0"
]
},
{
"x": 0,
"y": 1,
"z": 1,
"elements": [
"modularmachinery:blockcasing@0"
]
},
{
"x": 1,
"y": 1,
"z": 0,
"elements": [
"modularmachinery:blockcasing@0"
]
},
{
"x": -1,
"y": 1,
"z": 2,
"elements": [
"modularmachinery:blockcasing@0"
]
},
{
"x": 0,
"y": 1,
"z": 2,
"elements": [
"modularmachinery:blockcasing@1"
]
},
{
"x": 1,
"y": 1,
"z": 1,
"elements": [
"modularmachinery:blockcasing@0"
]
},
{
"x": -1,
"y": -1,
"z": 1,
"elements": [
"modularmachinery:blockcasing@0"
]
},
{
"x": 1,
"y": 1,
"z": 2,
"elements": [
"modularmachinery:blockcasing@0"
]
},
{
"x": 0,
"y": -1,
"z": 1,
"elements": [
"modularmachinery:blockcasing@0"
]
},
{
"x": -1,
"y": -1,
"z": 2,
"elements": [
"modularmachinery:blockcasing@0"
]
},
{
"x": 0,
"y": -1,
"z": 2,
"elements": [
"modularmachinery:blockcasing@0"
]
},
{
"x": 1,
"y": -1,
"z": 1,
"elements": [
"modularmachinery:blockcasing@0"
]
},
{
"x": 1,
"y": -1,
"z": 2,
"elements": [
"modularmachinery:blockcasing@0"
]
}
]}
</syntaxhighlight>
 
样例 补全"registryname"和"localizedname"后:
<syntaxhighlight lang="JSON">
{
"registryname": "ioMachine",
"localizedname": "Baka组装机",
"parts": [
{
优秀编辑者、​界面管理员、​监督员、​管理员
1,754

个编辑