CreateCustomTemplates

From MineTexas Minecraft Server Wiki
Jump to: navigation, search

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 <structure>_<direction>.def where <structure> is the name of the structure you're exporting and <direction> 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: /<command_name> 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:

Structure NamesStructure Size
Arrow Tower, Cannon Tower, Scout Tower, Bank, Granary, Grocery, Library, Monument, Store, Trommel, Cottage, Farm, Fishing Boat, Mine, Trade Outpost, Windmill, Mob Grinder, Quarry, Fish Hatchery, Lighthouse, Tesla Tower, Broadcast Tower, Public School, University, Research Lab16x16
Blacksmith, Trade Ship, Scout Ship, Arrow Ship, Cannon Ship, Hospital, Museum16x32
Camp, War Camp, Market, Barracks, Pasture, Temple, Ship Yard, Stable, Stadium32x32
Capitol, Wonders64x64

See Also

Гайды CivCraft Защита Постройки Улучшения Чудеса Юниты Команды