A script initially kludged together to speed-test Command Computers, now refined into something which perhaps might even be useful? Eh, that's probably hoping for too much...
WorldPorter, if fed a set of co-ordinates, will scan the blocks in the area and save the resulting data to disk. It can then reconstruct them most anywhere you like.
As it requires a Command Computer to operate, it can only be used by game OPs playing in creative mode.
You can download a set of example build files with the following command:
pastebin run cUYTGbpb get NW35LQaE
Some notes:
- When building, the option to "pre-clear terrain" will likely slow things down slightly (and throw off the time estimate the script provides, typically making it quote higher than it should), but it'll help prevent pre-existing blocks from interfering.
- There's (currently?) no functionality in ComputerCraft which allows the reading of NBT tags from blocks, so its ability to reconstruct the likes of eg Carpenter's Blocks (which make heavy use of such tags) is poor. Chest contents, writing on signs and so on cannot be captured. Likewise, it can only read data from blocks, so entities such as paintings are ignored.
- It may not be able to correctly orientate all blocks. This partly has to do with some blocks using NBT tags to store their facings (eg turtles), and partly has to do with a bug in MC 1.7.10.
- The file format it uses to store structures incorporates non-ASCII characters, meaning you can't upload / download them using ComputerCraft's regular "pastebin" script. Use something like BBPack instead.
- It can rotate the structures it builds, but when it comes to the individual rotatable blocks within the structures, this only fully works on those which rely on metadata for their facing - and those have to have their metadata translations coded into the script. I believe I've covered all the vanilla blocks, but I'm unlikely to research more translations myself. I'll gladly incorporate lists for mods if they're provided to me (along with the relevant version numbers), however.
- Likewise, some blocks must be placed in special ways - eg doors, liquids, torches. Vanilla blocks should all be accounted for, lists for mod blocks are welcome. Bear in mind it's all case-sensitive!
- When building, the script will suggest a default layer for each file based on where it was scanned from, but the best way to tell how a given build will come out is to test it - preferably in a new CSP world. Ditto if you want to try rotating.
Version History
Edited by Bomb Bloke, 09 June 2017 - 01:21 PM.