I've got a structure saved with a few blocks. Now I want to take the blocks from this structure and paste them into another structure.
snippet:
let structure: Structure = world.StructureManager.get("tr:preset");
let blockPerm: BlockPermutation = structure.getBlockPermutation({x: 0, y: 0, z: 0});
let newStructure: Structure = world.StructureManager.createEmpty("tr:test", {x: 1, y: 1, z: 1}, StructureSaveMode.World);
newStructure.setBlockPermutation({0, 0, 0}, blockPerm);
This works, except it's loosing all block data, like chest inventories. Any ideas?