using the vanilla screwpress as an example
[BUILDING_WORKSHOP:SCREW_PRESS]
[NAME:Screw Press]
[NAME_COLOR:7:0:1]
[DIM:1:1]
[WORK_LOCATION:1:1]
[BUILD_LABOR:MECHANIC]
[BUILD_KEY:CUSTOM_P]
[BLOCK:1:0]
[TILE:0:1:207]
[COLOR:0:1:0:7:0]
[TILE:1:1:207]
[COLOR:1:1:MAT]
[BUILD_ITEM:2:TRAPPARTS:NONE:NONE:NONE][CAN_USE_ARTIFACT]
this workshop is just a 1x1 so it's easier for me to reference without a huge list of tile and color commands
so [DIM:1:1] this sets how "big" it should be via X and Y (width and Height)
[WORK_LOCATION:1:1] this is where a creature will have to stand to "use" this building (note make sure this location is not blocked via [BLOCK:1:column]) also 1:1 is upper left, so if you had a 5x5 building 3:3 would be the middle (3rd row, 3rd column)
[BLOCK:row:column state] this will make a location "impassible" to land based creatures if the column state is "1".
[TILE:build state:row:char to fit column] build state is "0" which is what it looks like at its initial "placement" (you don't need anymore, but if you have progressive things you can make it take longer (more states) or just as soon as someone gets the stuff and assembles it (1 state)
[COLOR:build state:row:MAT or fg:bg:b] this is obviously the color of the tile at a buildstate, row and its columns
now as a visual example here is a table of what say a 3x3 workshop would look like:
BLOCK | TILE | COLOR |
| | 2:0:0 | MAT | 2:0:0 | MAT | MAT | MAT | 2:0:0 | MAT | 2:0:0 |
|
In this example the 4 corners are blocked and will be green
X's while the passable part
which makes a plus symbol will look like +'s that are colored out of whatever
the first building material is (A Granite Block will make them a
dark grey, Cobalt
blue, cinnabar
red)
and the raws would look like:
[DIM:3:3]
[BLOCK:1:1:0:1]
[BLOCK:2:0:0:0]
[BLOCK:3:1:0:1]
[TILE:0:1:'X':'+':'X']
[TILE:0:2:'+':'+':'+']
[TILE:0:3:'X':'+':'X']
[COLOR:0:1:2:0:0:MAT:2:0:0]
[COLOR:0:2:MAT:MAT:MAT]
[COLOR:0:3:2:0:0:MAT:2:0:0]