MCBBS Wiki欢迎您共同参与编辑!在参与编辑之前请先阅读Wiki方针

如果在编辑的过程中遇到了什么问题,可以去讨论板提问。

为了您能够无阻碍地参与编辑 未验证/绑定过邮箱的用户,请尽快绑定/验证

MCBBS Wiki GitHub群组已上线!

您可以在回声洞中发表吐槽!

服务器状态监控。点击进入

本站由MCBBS用户自行搭建,与MCBBS及东银河系漫游指南(北京)科技有限公司没有从属关系。点此了解 MCBBS Wiki 不是什么>>

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

个编辑

我们提供服务需要使用Cookie。您使用我们的服务,即表示您同意我们使用Cookie。

导航菜单