Turning, Reskinning and Varying a Building¶
Keys the DevTool reads from a pack's own Lost Cities files, so one building file covers all four turns and every colourway, and a city stops repeating one building.
This page documents the companion mod, not Lost Cities
These keys are read by The Lost Cities - DevTool 3.4.0-7.5 only, the file for Lost Cities 7.5.1 to 7.5.6 on Minecraft 1.20.1 with Forge. The NeoForge files do not read them. Every number here was measured on Lost Cities 7.5.6. Lost Cities has none of these keys. Nothing here is a claim about Lost Cities' behaviour, so it carries no verification chips: it describes a tool this wiki ships.
Everything at a glance¶
| Key | On | Values | Does |
|---|---|---|---|
rotations |
building, multibuilding | [0, 90, 180, 270], or {"0": 2, "90": 1} |
Each placed copy takes one of the listed turns |
skins |
building, multibuilding, part | a list of {name, factor, palette, map, keep, commands, final} |
Each placed copy wears one named look |
skinmode |
part | "instance" (default), "own" |
own: the part rolls its own skin whatever its building wears |
skinrules |
city style | a list of rules | Swap blocks, states, tags or characters for chosen buildings, floors or biomes |
skinrules |
building | true (default), false |
false: no city rule touches this building |
connections |
building, part | "lostcities" (default), "keep", "settle" |
How panes, bars, fences, walls and stairs take their shape |
group |
building, multibuilding | a name | Several files count as one for norepeat, deck and the census |
selection |
city style | "default", "norepeat" |
norepeat: no two side-by-side one-chunk buildings of one group |
multiselection |
city style | "default", "deck" |
deck: no area draws one multibuilding twice while the list has others |
| Also | Where | Does |
|---|---|---|
lostcities_devtool:keep_facing |
block tag | A tagged block is never turned |
lostcities_devtool:turn_facing |
block tag | A tagged block's facing is turned by name |
lostcities_devtool:settle |
block tag | settle reshapes a tagged block too |
variants = false |
config/lostcities_devtool-common.toml, section [variants] |
Every key on this page is ignored, and the pack generates as Lost Cities has it |
/lcdev census |
command | What a square of city holds: groups, turns, skins, repeats. See The DevTool Commands |
Without the DevTool¶
| Situation | What generates |
|---|---|
| The DevTool not installed | Lost Cities skips keys it does not declare, so the pack loads and every building generates as written: no turn, no skin, Lost Cities' own picks |
The DevTool installed, variants = false |
The same, and census and look report no turn |
The DevTool installed, variants = true (default) |
As this page says |
| A value the DevTool cannot read | That key, or that entry of its list, is left out, and /lcdev findings names the file and what is wrong. Nothing is thrown |
A pack that writes none of these keys generates exactly as it does without the DevTool.
Words on this page¶
| Word | Means |
|---|---|
| Copy | One placed instance: one chunk for a building, the whole grid for a multibuilding. Every roll on this page is made once per copy, from the world seed and where the copy stands, so a chunk comes out the same however often it is generated |
| Turn | A quarter turn clockwise seen from above. 90 takes north to east |
| Skin | A named alternate look: a palette laid over the building, a block-for-block map, or both |
| Base | A skin with no palette and no map: the building as written |
| Group | The name norepeat, deck and the census count a file under. A file with no group is its own group |
Turning: rotations¶
{
"filler": "#",
"refpalette": "mypack:tower",
"rotations": [0, 90, 180, 270],
"parts": [ ... ]
}
| Value | Does |
|---|---|
| Absent | No turn: the building as written |
[0, 90, 180, 270] |
Each of the four equally likely |
[90, 270] |
Only those two, equally likely |
{"0": 2, "90": 1} |
0 twice as often as 90. A weight of 0 never comes out |
| An entry other than 0, 90, 180 or 270, or a negative weight | That entry is left out, and named in findings |
Every weight 0 |
No turn, and a finding |
Measured with equal weights: several turns land, and the census's turn matches the blocks in every turned chunk.
What turns¶
| What | How it turns |
|---|---|
A building's floors (parts, parts2) |
Every block by the game's own turning, not only the stairs and doors Lost Cities turns by its lostcities:rotatable tag |
| A block whose own turning does nothing | By its property names: a side in facing or horizontal_facing, an axis of x or z, a sixteen-step rotation, and the values of north, east, south and west passed round. FastPaintings' painting is one: both blocks of a two-wide painting stand, facing the turned way, at 0, 90, 180 and 270 |
A block tagged keep_facing |
Not at all |
A block tagged turn_facing |
Its facing by name, whatever its own turning does. For a block that turns, but wrongly |
| A command block | Its ~ ~ ~ offsets, every namespace:id[...] block state it names, Rotation:[yaw, and yaw: |
| A multibuilding | Its whole grid, placed against its turned size. Floors, cellars and the building palette come from the building at its written buildings[0][0], as Lost Cities does unturned. Each chunk's floor parts still come from that chunk's own building |
| What | Not turned |
|---|---|
| Streets, fronts, building stairs, bridges | As Lost Cities has them, so a front still faces the street |
| Scattered units | Their own rotatable is unchanged. rotations is read for city buildings only |
| In a command | ^ ^ ^, absolute coordinates, and anything a mod's command reads in its own grammar |
A command block in a building turned 90:
| Written | Laid at 90 |
|---|---|
setblock ~2 ~ ~ minecraft:oak_stairs[facing=north] |
setblock ~ ~ ~2 minecraft:oak_stairs[facing=east] |
summon minecraft:armor_stand ~ ~1 ~ {Rotation:[0f,0f]} |
summon minecraft:armor_stand ~ ~1 ~ {Rotation:[90f,0f]} |
In a block state, a property named by a side (a pane's north) moves with the turn,
others take the turned state's value, and only the properties written are written back.
commands: true on a skin applies its map inside command blocks too.
A turned multibuilding is laid as a Lost Cities multibuilding named <id>.r90,
<id>.r180 or <id>.r270. Those names are taken: a real asset named x.r90 is
shadowed. census, verify and look report it under its written id.
A part smaller than a chunk¶
A turn is about the chunk's middle, so a part smaller than 16 by 16 moves across the
chunk as well as turning. The load check warns about every such part in a building
whose rotations allow any turn but 0. Draw it 16 by 16, padded with air, to keep its
place.
Reskinning: skins¶
"skins": [
{"name": "base", "factor": 2},
{"name": "dark", "factor": 1, "palette": "mypack:dark",
"map": {"minecraft:white_concrete": "minecraft:gray_concrete"}, "keep": ["W"]}
]
| Field | Default | Meaning |
|---|---|---|
name |
required | What ties a building's skin to its parts' skins. An entry with no name is left out. A name listed twice: the second is left out |
factor |
1 |
Odds against the other skins of the list. 2 against 1 is chosen twice as often. 0 is never chosen |
palette |
none | A palette laid over the palette of the file that declares the skin, so its characters win over that file's |
map |
none | Block for block, on the placed state. A key is a block id, an id with some properties (minecraft:oak_stairs[half=top]) or a tag (#minecraft:planks). A value is a block id or a full state |
keep |
none | Palette characters and block ids the map leaves alone. ["W"] keeps every block drawn with W |
commands |
false |
true: the map also rewrites block states named inside command blocks |
final |
false |
true: a copy wearing this skin takes no city skinrules |
Which skin a copy wears¶
Where skins is |
What wears it |
|---|---|
| A multibuilding | One roll per copy. Every chunk of it, and every part in it, wears that one |
| A building, with no multibuilding skin above it | One roll per copy |
| A part, under a copy that wears a skin | The part's entry of the same name. A part with no entry of that name keeps its own look |
| A part, under a copy that wears no skin | The part rolls its own list, seeded by the copy and the part's name |
A part with "skinmode": "own" |
Its own roll, whatever the copy wears |
The order a look is built in¶
Each step lays over the one before.
| Step | From |
|---|---|
| 1. Palettes | City style's style, building, the copy's skin palette (multibuilding's, then building's), part, part's skin palette |
| 2. Block maps | Multibuilding's skin, building's skin, part's skin |
| 3. City rules | The first skinrules entry that matches, unless the worn skin says final or the building says "skinrules": false |
City rules: skinrules¶
On a city style. Each rule swaps what it matches for one of its targets, chosen once per copy.
"skinrules": [
{"match": ["minecraft:white_concrete", "#minecraft:planks"],
"to": [{"block": "minecraft:light_gray_concrete", "factor": 2}, "minecraft:white_terracotta"],
"when": {"biomes": {"if_any": ["#minecraft:is_taiga"]}, "minfloor": 1,
"excluding": ["mypack:station"]}}
]
| Field | Meaning |
|---|---|
match |
Block ids, partial states (minecraft:oak_stairs[half=top]) or tags (#minecraft:planks), one string or a list. A block matching any one is swapped |
chars |
Palette characters, each one character. Given with match, a block must be drawn with one of them and match too |
match and chars both absent |
The rule matches nothing, and is left out with a finding |
to |
One block or state, a list of them, or {"block", "factor"} entries. One is chosen per copy, by factor. Absent: the rule is left out |
when.biomes |
A Lost Cities biome matcher (if_any, if_all, excluding). Absent: any biome |
when.minfloor, when.maxfloor |
The lowest and highest floor the rule acts on, numbered as in the building reference: 0 the ground floor, cellars negative. Absent: no limit |
when.buildings |
Building or group ids the rule is limited to. Absent: every building |
when.excluding |
Building or group ids it never acts on |
| Situation | Rules used |
|---|---|
The city style sets skinrules |
Its own list, the first match winning |
It sets none and inherits |
Its parent's list |
It sets a list and inherits |
Its own list only: a child's list replaces the parent's, so a child can drop a rule |
A building with "skinrules": false |
None |
Measured: a rule limited by building and floor swaps only there, and a biome rule outside its biome does nothing.
Not built: a roll per city (Lost Cities gives a chunk no city identity to roll against), and matching by the palette a character came from (the merged palette keeps no record of it).
Not repeating: group, norepeat, deck¶
| Key | On | Value | Does |
|---|---|---|---|
group |
building, multibuilding | a name | Files sharing a name count as one. Absent: the file is its own group |
selection |
city style | "norepeat" |
A one-chunk building whose side neighbour holds its group is drawn again from the city style's list. Measured: 0 same-group pairs of 83, against 14 of 95 without it, one seed |
selection |
city style | "default" or absent |
Lost Cities' own picks |
multiselection |
city style | "deck" |
Within one area, a draw that lands on a multibuilding group already placed there is made again, while the list still has one not yet placed. Measured: 0 areas of 9 holding one multibuilding twice, against 4 of 9 without it |
multiselection |
city style | "default" or absent |
Lost Cities' own picks |
How norepeat stays the same whichever chunk generates first:
| Rule | Why |
|---|---|
| Only a chunk whose x + z is odd draws again | Its four side neighbours all have an even x + z and never draw again, so the answer depends on Lost Cities' own picks one chunk away and nothing further |
| At most 8 draws, then Lost Cities' own pick stands | A list too short to avoid its neighbours keeps a repeat |
| Diagonal neighbours are not compared | Two chunks corner to corner can still match |
| Multibuildings and predefined buildings are left alone | Only a one-chunk building Lost Cities picked is drawn again |
deck also stops after 8 draws. Both inherit like skinrules: a city style that sets
neither takes its parent's.
Panes, fences and walls: connections¶
Lost Cities lays a part into a chunk whose neighbours do not exist yet, so a pane at a chunk's edge is joined against stone or air, and the next chunk never fixes it.
| Value | Does |
|---|---|
"lostcities" or "default", or absent |
As Lost Cities has it |
"keep" |
Each block's state is placed as the palette wrote it. Lost Cities' own correction is skipped for those cells, and blocks laid after them in the chunk do not reshape them |
"settle" |
Panes, iron bars, fences, walls and stairs, and blocks tagged settle, are worked out again by the game's own shape update once the chunk and its four side neighbours are loaded. Measured: every east-edge pane joined exactly when the next chunk has a solid block there, against about half without it |
On a building it applies to every part; a part's own connections wins over its
building's. The settle queue is kept in the chunk's saved data, so a pre-generated
world settles when it is next loaded, and a waiting chunk costs nothing until it loads.
The block tags¶
The DevTool ships all three empty. A datapack fills them as any block tag:
data/lostcities_devtool/tags/blocks/keep_facing.json
{"values": ["mymod:statue", "#mymod:signs"]}
| Tag | A tagged block | For |
|---|---|---|
lostcities_devtool:keep_facing |
Keeps its written facing in a turned building | A block that must face one way whatever the building does. Measured: kept in a turned building |
lostcities_devtool:turn_facing |
Has its facing turned by name, ignoring its own turning |
A block that turns, but to the wrong side |
lostcities_devtool:settle |
Is reshaped by settle |
A modded block that joins its neighbours but is not a pane, bar, fence, wall or stair |
A block whose own turning does nothing needs no tag: it is turned by name already.
Load checks for these keys¶
The load check names each with its file, and /lcdev findings lists them. Two more,
on any multibuilding and any building palette, are on
The DevTool Commands.
| Finding | Level | Why it matters |
|---|---|---|
A multibuilding wider or deeper than the world style's multisettings.areasize, counting its turned size where it turns |
error | Lost Cities throws while planning the area it is drawn in |
| A part smaller than 16 by 16 in a building that turns | warning | It moves across the chunk as well as turning |
| A DevTool key with a value it cannot read | warning | That key or entry is left out |
Known gaps¶
| Gap | Effect |
|---|---|
A chunk generated with settle and never saved before the server stopped |
Loses its queue, so that building is never settled |
| A city building's filler skirt and border | Use the unskinned palette |
/lcdev import |
Keeps these keys on a plot's own file only. A multibuilding's chunk buildings lose theirs |
| The workshop | Shows a building as written: no turned or skinned preview |
See also¶
- The DevTool Commands, for
censusand the config's repairs - Building From a Console or a Script, for
verify,lookandfindings - Building Reference, Multi-Building Reference, Building Part Reference and City Style Reference, for Lost Cities' own keys
- Palette: rotation and the
lostcities:rotatabletag, for what Lost Cities turns by itself