Working With Structures - PolyhedralDev/Terra Wiki
Terra uses its own structure storage format. THis format is a custom scripting language called TerraScript. For information on how to write procedural structures in TerraScript, see the TerraScript Basics page. This page will go over exporting structures from your world to TerraScript files.
Exporting structures requires WorldEdit installed. You only need WorldEdit
for selection, nothing else in Terra requires it.
Exporting a structure:
- Build your structure. For this example, this spruce tree will be used:
- (Optional) Place a Center Sign in your structure. A Center sign defines a center to the structure around which the script will be made.
- Make a WorldEdit selection including your structure. (The cobblestone shown in the image was for making the
selection, it was removed afterwards)
- Export your structure with the
/te export <name>command.
Your structure will be saved to
Loading structures can be useful for debugging. All loaded structure scripts may be loaded via command.
/te structure export <name>
Export a structure to
/te structure load <full|chunk> <id> <rotation>
Load a structure script with ID
id and rotation `rotation
fullloads the entire structure
chunkloads the secton of the structure in the current chunk.