可以使用工具和指令快速的导出结构,目前可以导出 CustomMachinery (Fork)、[GTM]格雷科技现代版 (GregTechCEu Modern) 、Masterful Machinery、NBT 结构格式(结构正面为 Z 轴,此模组有可更改选择的线框渲染模式默认是单方块边框渲染(FULL),可更改为多方块边框渲染模式(OUTLINE))。
使用方法:选择两个点后输入指令 /StructureCraft CM、GTM、MM 都需要输入控制器 ID、NBT 即可导出对应格式文件。
以 GTM 为示例:
/StructureCraft GTM 'gtceu:greenhouse'
导出示例:
Custom Machinery 结构(会一并导出方块的状态和容器的NBT):
[
[
"AAA",
"AAA",
"AAA"
],
[
"BBB",
"BEB",
"ImI"
],
[
"CDC",
"FGH",
"CJC"
]
],
{
"B": "minecraft:stone",
"I": "minecraft:blast_furnace{BurnTime:0,CookTime:0,CookTimeTotal:0,Items:[],RecipesUsed:{},id:'minecraft:blast_furnace'}",
"C": "minecraft:oak_slab[type=bottom,waterlogged=false]",
"E": "minecraft:verdant_froglight[axis=y]",
"G": "minecraft:oak_slab[type=top,waterlogged=false]",
"D": "minecraft:birch_stairs[facing=south,half=bottom,shape=straight,waterlogged=false]",
"A": "minecraft:smooth_stone",
"H": "minecraft:birch_stairs[facing=west,half=bottom,shape=straight,waterlogged=false]",
"J": "minecraft:birch_stairs[facing=north,half=bottom,shape=straight,waterlogged=false]",
"F": "minecraft:birch_stairs[facing=east,half=bottom,shape=straight,waterlogged=false]"
}
GregTechCEu Modern 结构:
pattern(definition => FactoryBlockPattern.start()
.aisle('AAB', 'BCB', 'BCB', 'BDB', 'BBB')
.aisle('BEB', 'CFC', 'C#C', 'DGD', 'BHB')
.aisle('IKB', 'ICB', 'BCB', 'BDB', 'BJB')
.where('K', Predicates.controller(Predicates.blocks(definition.get())))
.where('D', Predicates.blocks(GTBlocks.CASING_GRATE.get()))
.where('G', Predicates.blocks('minecraft:glowstone'))
.where('F', Predicates.blocks('minecraft:oak_sapling'))
.where('C', Predicates.blocks('ae2:quartz_glass'))
.where('E', Predicates.blocks('minecraft:moss_block'))
.where('B', Predicates.blocks(GTBlocks.CASING_STEEL_SOLID.get()))
.where('A', Predicates.abilities(PartAbility.INPUT_ENERGY))
.where('J', Predicates.abilities(PartAbility.MAINTENANCE))
.where('I', Predicates.abilities(PartAbility.IMPORT_FLUIDS))
.where('H', Predicates.abilities(PartAbility.MUFFLER))
.where('#', Predicates.air())
.build()
)
Masterful Machinery 结构:
layout(a => {
a.layer([
"DDDDD",
"DDDDD",
"DDDDD"
]).layer([
"DDDDD",
"D D",
"DDCDD"
])
.layer([
"AAAAA",
"ABBBA",
"AAAAA"
])
.key("D", {
block: "minecraft:stone"
})
.key("B", {
block: "minecraft:coal_block"
})
.key("A", {
block: "minecraft:smooth_stone"
})
})