CreateCustomTemplates

Overview
If you'd like to help out with creating a template set for MineTexas Civcraft, this page describes everything you need to know.

Build on MineTexas Creative
You can use the MineTexas Creative server

Exporting Templates With WorldEdit
All templates are exported by using the WorldEdit plugin's scripting abilities. Provided with the civcraft release under the templates folder is a file called "export.js" which contains a worldedit script that will export your selections into the .def file format. To use it, first set up worldedit's javascript engine by following the guide here: http://wiki.sk89q.com/wiki/WorldEdit/Scripting

Once the scripting engine is setup, place the export script inside the worldedit scripts directory, select the area you wish to export as a template, and type: /cs export _ .def where is the name of the structure you're exporting and is the direction you're currently exporting.

Each template needs to be exported in the north, south, east, and west directions. Typically, a structure is oriented so that the front door faces the player when exported in that direction. For example, if you push F3 and it says you are facing EAST, the building's front doors should be on the WEST side.

Template Command Signs
Each building in CivCraft requires special locations to be marked in order for the buildings to function properly. For example, a bank must have each of the sell signs marked and placed inside the structure. Some command signs translate directly into signs the player can interact with, while other signs are used to mark special locations such as respawn points, turret locations, item frame locations, etc.

Each sign has the following information on it: First Line: / Other Lines: Optional Key-value pair

To figure out what you should put on your command signs, the best way is to follow the example of existing templates by copying the signs from our source template world. http://civcraft.net/files/template_world.tar.gz

(Edited 11/1/14) If you would like a detailed version, Download this file: https://www.mediafire.com/?4p1zhh76z1prwbr

Download the world and locate the structure you wish to make a new template for. Make sure you get every command sign on the source template set somewhere inside your new custom template. Otherwise you'll experience errors. Certain signs such as respawn points and revive points can be added as many times as you like provided there are at least one.

Limitations
The biggest limitation of the template system is that entities are not saved. This means paintings and item frames are not saved inside the template. Additionally WorldEdit's rotate function doesn't always rotate all objects correctly and it is your job to make sure that all of the blocks are rotated correctly before exporting a new template.

For sizes, please follow this guide on building templates the correct size: