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

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

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

MCBBS Wiki GitHub群组已上线!

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

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

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

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

跳到导航 跳到搜索
trfix
(trfix)
(trfix)
接下来,需要进行"post-processing"。因为模组只把选定的方块以及它的 blockstate 序列化为metadata,并且保存到相应的json文件中。如果这个位置的方块有 tileentity,它的数据将会被序列化,并保存在相应的json文件中。如果文件中的方块已经有了tileentity,它的数据将被序列化并保存在相应的'nbt'-tag中。除非你想与这个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>
Tr:[[Citysands]]
[[分类:Mod作品]]
优秀编辑者、​界面管理员、​监督员、​管理员
1,754

个编辑

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

导航菜单