Builder guides

Materials, liquids and gases

Items

A dyer hands a tailor a bolt of blue linen. What should happen if the tailor washes it? The linen determines how the fabric behaves when wet. Spilt dye can leave pigment on its surface. The bolt's intended colour belongs to the finished goods and should still be there after washing. Those are three different decisions for the builder.

Decide what owns each fact

Builder record What it represents Example
Solid material A shared substance with physical properties and a behaviour type. An item prototype selects its material, and a commodity identifies both a solid and a mass. A linen apron and a 2 kg pile of linen can use the same solid. The apron also has its own prototype, weight, size and wearable component.
Liquid A fluid definition. A vessel holds a mixture with an amount of each liquid present. The vessel itself has an item material, capacity and components. An earthenware jug can carry indigo liquor today and rinse water tomorrow.
Gas A fluid that can supply an atmosphere. A room's effective atmosphere and a character's ability to breathe it are separate settings. An attendant and a visiting species may differ in their ability to breathe the same bathhouse air.
Material tag A classification for consumers that explicitly accept a material or material tag. A child tag satisfies a check for its parent. Several quarry stones can qualify as Building Stone.
Commodity pile tag The form or trade use of a particular lot. The same solid can appear in lots with different tags. Limestone can arrive as Quarried Block or Stone Chips.
Characteristic A value on the particular item or commodity. A recipe can set it, require it or carry it forward. Cloth Colour = Indigo belongs to dyed linen. Other bolts made of the same linen can be undyed or red.

An item prototype tag answers a further question. A recipe can require a tool tagged Dye Vat regardless of the solid used for the vat. Giving that tag to its oak material would classify oak generally and would miss the recipe's tool check. Create a new solid when the workshop needs a mechanically distinct substance. A new supplier, cut or colour can often reuse the existing solid. Building items and equipment · Primary production and agriculture

Find, create and edit the shared records

The three editors require Admin permission. Start with material list, liquid list and gas list. Use show <id> after the appropriate command to read a candidate, including its tags and existing relationships. IDs below in angle brackets refer to records in your world. Use IDs for established records and quote a multiword name when it is one argument in a longer command.

Task Solid Liquid Gas
Start from scratch material new <behaviour> "<name>" liquid new "<name>" gas new "<name>"
Start from a similar substance material clone <id> "<name>" "<description>" liquid clone <id> "<name>" gas clone <id> "<name>"
Reopen and inspect material edit <id>, then material edit liquid edit <id>, then liquid edit gas edit <id>, then gas edit
Change and finish material set <option> ..., material close liquid set <option> ..., liquid close gas set <option> ..., gas close

Creation and cloning select the new record. Inspect it before changing it. Each editor keeps its own selection, so you can work on a liquid and its residue solid together. close ends that editing session. These shared definitions take edits directly. An item or craft revision can still point to the same material ID after the material changes. If a change belongs to one business or recipe, create its own substance and explicitly select it on those consumers. For another spelling of the same solid, use material set alias add <text>.

Solids and physical behaviour

Choose the behaviour type when creating a solid. Examples include Fabric, Stone, Metal, Wood, Ceramic and Powder. Enter material new to see the engine's list. Behaviour supplies defaults. Look at a comparable local material before choosing values for a newly invented one.

Setting after material set Decision it supports
description, tag <id>, organic Give the substance its identity, classifications and organic status. Both tag and organic are toggles. Read the current value before repeating one.
density, electrical, thermal, specificheat Describe density (kg/m³), electrical and thermal conductivity, and specific heat per unit mass. Item authors still set the prototype's weight.
impactyield, impactfracture, impactstrain, and the corresponding shear... settings Model a material starting to yield and eventually fracturing under impact or shear. The strength fields take kPa. Reuse a comparable material when a new item's differences are size or construction.
heatdamage, ignition, melting, liquidform Supply temperature thresholds and an optional related liquid. Making an object destructible also involves its item components and health configuration.
absorbency, transmission, thermalresponse Configure retained liquid, exposure passing through a material and its response to heat. A wet outer garment and the body underneath can have different exposure.
residuecolour, residuesdesc, residuedesc, solvent, solventratio Define how the solid appears and cleans up when deposited as residue. This is where the dyer sets the dry pigment's description.

Liquids, mixtures and substitution

A liquid has a display colour, descriptions, smell, taste and viscosity. For smell and taste, give the intensity and quote the distinct and optional vague descriptions. A drink can also carry hydration, hunger or thirst effects, alcohol, a drug or an on-drink prog. Review those fields when cloning a beverage for industrial use. For perishable stock, liquid set freshness <stale-duration> <spoiled-duration> <stale-liquid> <spoiled-liquid> specifies its successor liquids. Use quotes around multiword arguments. Hospitality and serving vessels

A fluid's counts-as setting is directional. If a local spring water should satisfy recipes asking for the town's ordinary water, edit the spring water and run liquid set countsas <ordinary-water-id>, then liquid set countquality <quality>. This gives the substitute a maximum quality where a consumer uses that relationship. Ordinary water acquires no reciprocal claim. A liquid craft input checks the contents of open vessels. For the mixture to count as the requested liquid, at least 95% by volume must consist of liquids that qualify. Mixing the last rinse water into a dye vat can therefore make a seemingly full vat unusable for its recipe.

Use tags for deliberate families, counts-as for accepted substitutions, and an exact fluid when identity matters. A similar colour, the word “water” in a name, or a shared tag alone does not satisfy a recipe's liquid input. Keep counts-as chains short enough that builders can explain which supplies count and why.

Contact, drying and cleaning

A surface can hold liquid and later acquire dried residue. The liquid controls the damp, wet and drenched description additions (sdescadd and descadd), relative evaporation setting (relativeenthalpy), residue solid and deposit fraction (residueamount). liquid set residueroom toggles deposits on room surfaces. liquid set residue none makes the liquid dry without depositing a solid.

While the mess is wet, the liquid's solvent and solventratio govern cleaning. Once it dries, the residue solid's settings govern it. The wet ratio concerns the amount of solvent for the liquid contaminant. The dry ratio concerns removal of the solid deposit. Supply the world's configured cleaning-tool tag where required and enough suitable solvent in an accessible vessel. Players can clean apron to attend to a particular item or clean mine for their accessible possessions. Most builders can stop there. For contact reactions, inhalation, transmission through clothing or a material-specific exception, use the reaction editor and its read-only reaction test diagnostics. Environmental exposure

Atmospheres and changes of state

Gases share density, conductivity, colour, smell and viscosity settings. gas set countsas <gas-id> and gas set quality <quality> configure substitution. On the intended race, race set breathable gas <gas-id> <percentage> controls breathing in that fluid. A value of 0% also overrides an inherited breathable setting. A gas can support breathing yet also have an authored exposure reaction. Check the intended occupants as well as the gas record. Playable peoples and character creation

The terrain supplies an atmospheric setting and the room overlay can specify a gas or liquid. The terrain model also determines which layers contain water. A jug of water, a pool layer and a room filled with liquid are three different ways for a character to encounter water. Freezing and boiling points, liquid set gas, and gas set condensation / gas set liquid describe relationships. A warm vessel does not automatically fill a neighbouring room with steam or condense a puddle. Author the fixture, terrain, room overlay or event that creates the intended experience. Room building

Worked example 1 — the town dyeworks

The dyer takes raw linen, works it in an open vat and sells indigo cloth by weight. The tailor buys it because its colour survives washing. The dyer's apron, on the other hand, picks up a removable blue deposit. Give each of these outcomes an owner before building the recipe.

Give the wet dye and dry pigment their own records

Find linen and a pigment solid with material list. The seeded catalogue includes linen and indigo dye cake. Use the latter as the source for a local pigment when available, or create a Powder solid. Record the ID of the ordinary water the dyer can actually draw. These percentages are choices for this town's cleanup gameplay.

material clone <dye-cake-id> "dyeworks indigo pigment" "fine blue pigment"
material set residuecolour blue
material set residuesdesc blue-streaked
material set residuedesc Fine blue pigment marks the surface in streaks.
material set solvent <wash-water-id>
material set solventratio 100%
material edit

Take the new pigment ID from the editor. Make a fresh liquid so its drink and substitution settings can be chosen for the vat.

liquid new "dyeworks indigo liquor"
liquid set description dark blue dye liquor
liquid set ldesc A deep blue liquid clings to the sides of its vessel.
liquid set colour blue
liquid set sdescadd wet (wet with indigo)
liquid set descadd wet Dark blue liquid beads on the surface.
liquid set residue <new-pigment-id>
liquid set residueamount 5%
liquid set solvent <wash-water-id>
liquid set solventratio 100%
liquid edit

Give the dye house an open liquid container with sufficient capacity, and tag the vat prototype with the tool tag Dye Vat. The builder can establish the opening stock with loadliquid <dye-liquid-id> vat. For ongoing supply, bring the prepared dye in jugs and pour jug into vat. Keep wash water in a separate vessel. Choose whether spills should mark the floor by inspecting the liquid's room-residue setting before toggling it.

For a splash in an authored scene, a FutureProg with an Item parameter named apron can call exposetoliquid(@apron, <dye-liquid-id>, "20 ml"). Substitute the numeric ID when writing the prog. This applies liquid to the apron surface. It does not withdraw a dose from the vat. Let the recipe's liquid input account for stock used in production. A dyer who cleans the apron wet is removing liquor. After it dries, the blue streaks come from the pigment record. FutureProg authoring

Give the tailor a lasting product

Choose three local tags with tag list: Raw Cloth and Finished Cloth for lots, and Dye Vat for the tool. Use tag new "<name>" for a missing tag. Choose or create a Characteristic definition Cloth Colour with a value Indigo. The raw lot and the finished lot both use the existing linen solid. For an initial delivery of undyed stock, use loadcommodity 5kg linen tag <raw-cloth-tag-id>.

The guild uses a kilogram of linen and a quarter litre of dye per lot. Start a fresh recipe. Supply the name or ID of your world's textile skill and its availability prog. The stock AlwaysTrue makes the recipe visible to everyone. A guild can instead use a Boolean prog taking one Character.

craft edit new
craft set name Dye a bolt of indigo linen
craft set category Textiles
craft set blurb Dye a kilogram of linen for the town tailor.
craft set action dyeing a bolt of linen
craft set progress a bolt of linen in the dye bath
craft set appear <availability-prog>
craft set check 1 <textile-skill> Normal
craft set threshold Failure
craft set input add commodity
craft set input 1 material <linen-id>
craft set input 1 piletag <raw-cloth-tag-id>
craft set input 1 weight 1kg
craft set input add liquid
craft set input 2 liquid <dye-liquid-id>
craft set input 2 amount 250ml
craft set tool add tag
craft set tool 1 tag <dye-vat-tag-id>
craft set tool 1 room
craft set product add commodity
craft set product 1 commodity <linen-id>
craft set product 1 weight 1kg
craft set product 1 tag <finished-cloth-tag-id>
craft set product 1 characteristic <cloth-colour-definition-id> Indigo
craft set phase add 30 "@ lower|lowers $i1 into $t1 and work|works $i2 through the folds."
craft set phase add 30 "@ lift|lifts $p1 out and hang|hangs the cloth over the rail." "@ wring|wrings out a patchy, spoiled batch."
craft set failphase 2
craft show

Submit with craft edit submit. A reviewer opens craft review <craft-id> and approves with accept edit. Put the open vat and raw stock within the dyer's reach. With the revision Current, craft preview Dye a bolt of indigo linen shows the dyer what the workshop will supply. A successful batch yields 1 kg of Finished Cloth with the value Indigo. The recipe can draw the qualifying liquid from other accessible open vessels as well. Its room-tool requirement establishes that a vat is present. Craft authoring and phase examples

On the tailor's recipe, set a commodity input to linen, the Finished Cloth pile tag and the required mass. Add craft set input 1 characteristic <cloth-colour-definition-id> Indigo if this order specifically calls for indigo. A craft producing another commodity can preserve the incoming colour with craft set product 1 characteristic <cloth-colour-definition-id> from 1. For a wearable garment, use a variable item prototype and an appropriate craft product mapping. The finished goods can be washed without losing their authored colour. Item Characteristics and description markup · Wearable garments

Worked example 2 — stone from the town quarry

The quarry sells limestone by mass. A mason needs one kind of stock to dress a block. A road crew can accept several local stones. Use the same stone solid for both customers and express their different requirements on their recipes.

  1. Inspect material show <limestone-id>. If needed, use material edit <limestone-id> and material set tag <building-stone-tag-id> to classify it as Building Stone. This classification applies to limestone from every supplier.
  2. On the local quarry project, add a commodityoutput phase action. Set its material to limestone, its weight to 60kg and its tag to Quarried Block. An initial delivery can use loadcommodity 60kg limestone tag <quarried-block-tag-id>. Either route produces a lot the hauler can split.
  3. On the mason's craft, use craft set input add commodity, then set that input's material to limestone, piletag to Quarried Block, and weight to 20kg. A 60 kg lot supplies three batches. Omitting the pile tag on an exact-material commodity input requests untagged stock.
  4. On the road crew's craft use a commoditytag input, set its material to the Building Stone tag ID, its piletag to Stone Chips, and its weight to the required mass. Have the mason's recipe supply chips as a separate commodity product and allow for them in the mass budget. Suitably tagged granite chips can now qualify. An intact limestone block remains available to the mason.

A repeating quarry project gives the town a renewable supply. For a finite seam or a quarry opened by prospectors, attach a discovery marker or persistent reserve as described in the production guide. Primary production and agriculture · Projects

Worked example 3 — water and air in the bathhouse

The attendant draws clean water from the town main and fills patrons' jugs. Mist hangs over the plunge pool, while people on the tiled deck breathe the same air as in the street. Start by identifying a potable liquid and a gas the intended visitors can breathe.

  1. Supply the tap. In the pump house, use a reservoir item with WaterSource and LiquidGridSupplier. Set the source's default liquid, capacity and refill rate. Install a liquid grid creator, then grid connect reservoir <water-grid-id>. If the bathhouse is immediately east, grid expand <water-grid-id> east extends coverage to it. On its deck install a GridLiquidSource tap and run grid connect tap <water-grid-id>. The attendant can now fill jug tap 1 l. The tap draws actual water from the shared supply. Keep wastewater on a separate grid. Water mains and sewers
  2. Give the deck its air. Keep the ordinary breathable atmosphere or, in the bathhouse room's editable overlay, specify room set atmosphere gas <breathable-gas-id>. Add the mist to the room description, for example “Mist drifts low over the plunge pool. Above the tiled deck the air clears.” Swapping the approved room package brings that change into the world. Assigning the stock Steam gas instead would give occupants an actual steam atmosphere, with breathing and exposure consequences.
  3. Decide whether people can enter the water. For a playable plunge pool, give a separate pool room a suitable terrain with terrain set model shallowwater <water-liquid-id> and link it to the deck. Inspect the terrain's swimming and surface layers and the species who use them. Use a dedicated terrain if nearby streams already share the original. The terrain supplies the water for immersion. Drawing from the tap changes the grid balance independently of the pool. For a decorative bath, the deck, description and working tap are sufficient. Room building and terrain · Environmental exposure

When a workshop behaves unexpectedly

What a builder sees Where to look first
The craft sees the vat but asks for dye. Inspect its contents, available volume, open state and mixture. The tool's tag and the liquid input are checked independently.
The tailor sees linen but cannot start the order. Check the lot's mass, pile tag and Characteristic against the input. A material tag, prototype tag and pile tag occupy different places.
Washing an apron removes every sign of indigo. This is appropriate for surface pigment. Put the lasting colour on the finished craft product and have later recipes preserve it.
An edit to a shared material changes unrelated items. Look for consumers of the same solid ID. Put the specialist properties on a distinct material and select it on the intended prototypes or recipes.
A tap is empty beside a full-looking pool. Follow the tap's grid ID back to its supplier and reservoir. A terrain pool and a piped water reserve have separate sources.
Visitors struggle to breathe in a room described as airy. Inspect the active room overlay, terrain, effective atmosphere and species' breathable settings. Descriptive prose alone cannot supply breathable gas.