promotional bannermobile promotional banner
premium banner
Quickly export structures for custom multi-block machines

Description

You can use tools and commands to quickly export structures, currently you can export CustomMachinery (Fork), [GTM] GregTechCEu Modern, Masterful Machinery, NBT structure format (the front of the structure is the Z-axis, This mod has a wireframe rendering mode that can be changed to a single square border rendering (FULL) by default, and can be changed to a multi-block border rendering mode (OUTLINE)

How to use: After selecting two points, enter the command /StructureCraft CM, GTM, MM and enter the controller id and NBT to export the corresponding format file.
Take GTM as an example

/StructureCraft GTM 'gtceu:greenhouse'

 
Export examples

Custom Machinery structure (exports the state of the block and the NBT of the container together)

[
  [
    "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 structure

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 structure

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"
})
})