Building tutorialA Yuletide layer, then a new zone, step by step

A zone is a stack of layers. The bottom layer is the zone's base, and every layer above it is a named set of changes to the layers beneath. You build Tera while the game runs by adding a layer of your own, in a private copy of the zone that players never see. Then your layer is turned on for a season, or merged into the layer beneath it for good.

This page works through two examples. The first lays Yuletide over Mozartia's Market Square. The second makes a new zone of three rooms. Every step is a command you type; Arcana's building windows make the same edits.

Six words first

ZoneOne area of the world, such as Mozartia, kept in one file of its own. Each zone has a short code, moz for Mozartia, and a list of the builders who may change it. zones lists them all, and zbuilders shows the ones you build in.
AddressHow you name a room, creature or object: the zone's code, a dot, the thing's name. Market Square is moz.market-square. Inside its own zone, .market-square is enough. To see a zone's code, stand in one of its rooms: the stamp beside the room's name is that room's address, [moz.market-square], and the part before the dot is the zone's code.
BaseThe bottom layer of a zone: what is left when every other layer is off. Nobody edits it directly. Changes reach it by a merge.
InstanceYour private copy of a zone, made with instance. Its creatures walk and its resets run, and only you and the people you invite are in it.
LayerA named set of changes to one zone, kept in one file beside the zone's. Each layer sits on the layer beneath it, and players see the base with every layer that is on. A layer holds changed rooms, creatures and objects, new ones, removed ones and the zone's resets.
MergeMaking a layer's changes part of the layer beneath it. The merged layer is gone afterwards.

A name is lowercase letters, digits and hyphens. It starts with a letter and is at most 31 characters. It is never all or self. A zone has one set of names for its rooms, creatures and objects together, so a name is used once in a zone. Players never see names.

Example 1: Yuletide in Market Square

The goal: snow in Market Square's description, a snowman to look at, and a Yuletide tree that stands in the square. All of it comes and goes with one layer.

1. Open your copy of Mozartia

Go to the room you want to change and open an instance of its zone.

goto moz.market-square
instance moz as snow
Making instance snow: a private copy of moz (Mozartia, 292 rooms).
Instance snow is open: moz (292 rooms), first reset run (<n> creatures, <n> objects). You are in it: moz.market-square#snow.

You now stand in the copy of Market Square. The stamp beside the room's name says which instance you are in. Now that you are in a private instance, you can make changes to an active copy of Mozartia zone without disrupting the real Mozartia zone players are playing in.

2. Make the layer and start editing it

lcreate yuletide Yuletide in Mozartia
Layer yuletide made over moz (Yuletide in Mozartia), off. ledit yuletide to edit it.
ledit yuletide
You edit layer yuletide in instance snow: what you build in moz here is saved into it as you type. Live doesn't see it.

A layer's name is 2 to 16 lowercase letters, digits and hyphens, starting with a letter. The words after it are its title.

From here on, every building command you type in the copy writes into yuletide. There is nothing to save: each edit is on disk before the game reads your next command. With ledit lines on the game confirms each one, such as Saved into yuletide: moz.market-square desc.

3. Change the description

redit desc opens the line editor on the room you stand in. Type the new text, then /s to save. /h lists the editor's other commands, and /a leaves without saving.

redit desc
Enter string.  (Enter /s to save, /h for help.)
] Snow lies deep over the busiest street in Greater Mozartia, and the
] crowds have trodden grey paths through it from gate to gate. A tall fir
] tree stands in the middle of the square.
] /s
Saving.

look shows the snow. look base shows the base's room underneath, which hasn't changed.

4. Add something to look at

An extra description is text that a keyword brings up.

redit extra snowman
New field.
Enter string.  (Enter /s to save, /h for help.)
] A lopsided snowman with a carrot nose grins at everyone who passes.
] /s
Saving.
look snowman
A lopsided snowman with a carrot nose grins at everyone who passes.

redit delete-extra snowman removes it again.

5. Make the tree

ocreate <name> <as object> makes a new kind of object as a copy of one that exists, and puts the first one in your hands. The object you name last is found by its keywords.

ocreate yuletide-tree lantern
You have created a new type of object!
Object moz.yuletide-tree made.
ostring yuletide-tree short a tall fir tree hung with candles
ostring yuletide-tree medium A tall fir tree stands here, hung with candles and red ribbon.

short is what the tree is called in a sentence. medium is the line players see when it stands in a room. Its keywords are the words of its name: yuletide and tree.

ostat yuletide-tree shows everything the tree took from the object it was copied from. Look at two lines:

6. Stand it in the square

A reset is a line in the zone's table that says what loads where. zcommit writes a room's lines from what is in the room at that moment, so first put the room back to exactly what its table says, then add the tree, then commit.

zrecall moz.market-square
drop yuletide-tree
zcommit moz.market-square
zstat moz.market-square

zrecall clears the room and loads what its resets load. zcommit records every creature and object in the room, and replaces the room's old lines. zstat lists the lines, with the tree among them. The table now belongs to the layer too: the base's resets are untouched.

7. Check your work

rcheck
Checks for room moz.market-square, Market Square:
  Nothing to look at.
lstat yuletide

rcheck runs the game's checks on the room: a ! marks something to fix, a ? something to look at. lstat yuletide shows the whole layer: what it changes, adds and removes, the value beneath beside yours for each field, and whether anything is stale. llist moz lists Mozartia's layers.

8. Leave

instance leave
You leave instance snow for live.

The layer is saved. The instance isn't: it closes after 60 minutes with nobody inside, and a reboot closes every instance. To go on working, type ledit moz.yuletide from anywhere. It opens your copy of Mozartia with the layer on and you edit where you left off.

9. Turn it on

Turn the layer on in the live world, with the day it should end:

lset moz.yuletide on until 2027-01-06

The game runs its checks with the layer on first, and refuses if any shows a !. Then players in Market Square see the snow, the snowman and the tree. On 6 January 2027 (UTC) the layer goes off by itself. until also takes +2h, 3d, 90m or 2026-12-24T18:00. A layer that is on stays on through a reboot, and so does its end date.

The layer is still there after it goes off. Next Yuletide you turn the same layer on again.

Taking things back

undoIn your copy, while you edit the layer: takes back the newest edit of the room you stand in. undo <address> does it for the room, creature or object you name.
undo group <number>Takes back everything one command did. rhistory shows the group numbers.
lset yuletide offTurns the layer off at once. The zone is exactly its base again.
lset yuletide drop <address> [<field>|all]Takes one thing, or one field of it, out of the layer. The value beneath shows again.
lset yuletide deleteDeletes the whole layer. It must be off everywhere first. Its file stays in the backups.
instance close snowShows what closing your copy does. instance close snow yes closes it. Your layers stay.

When the layer beneath changes under you

Suppose someone fixes a typo in Market Square's real description while your layer also holds a description for it. Your field is now stale, and lstat yuletide names it, with who changed the layer beneath and when. You decide:

lset yuletide keep moz.market-square descYour text stays and wins.
lset yuletide drop moz.market-square descYour text goes; the one beneath shows.

A layer on a layer

Yuletide sits on Mozartia's base. A layer can sit on another layer the same way. Suppose Yuletide is on and you want carol singers in the square. You don't edit a layer players can see: you put a new layer on top of it and build there.

lcreate carols over yuletide
Layer carols made over moz.yuletide, off. ledit carols to edit it.
ledit carols

In your copy you see the base, Yuletide and your carols together. Players see Yuletide as it was. When the singers are ready:

lset moz.carols merge
lset moz.carols merge yes

The carols are now part of Yuletide, and the layer carols is gone. Merging is always this one step: a layer into the layer beneath it. lset moz.yuletide merge would do the same one level down, and make Yuletide part of the base for good.

A layer is on only with every layer beneath it, so turning carols on turns Yuletide on too. A stale field is measured against the layer beneath: for carols that is Yuletide, not the base.

Example 2: a new zone of three rooms

The goal: Lantern Hollow, a small wood with an entrance, a glade and an old well. You build it out of sight, merge it, connect it to the world and open it.

1. Make the zone

A new zone starts with a code and a name:

zcreate hollow Lantern Hollow
Created zone hollow (Lantern Hollow), number <n>, off, with one room (hollow.entrance). Its builders: <You>. They build it in an instance: instance hollow, then lcreate <layer>.

A zone's code is 2 to 16 lowercase letters, digits and hyphens, starting with a letter. It is the first half of every address in the zone, so short is good.

The new zone is off: it isn't loaded, and nobody can walk into it. It has one empty room, hollow.entrance. It stays off through everything you do below.

2. Open it and make a layer

instance hollow as build
lcreate first-rooms The first three rooms
Layer first-rooms made over hollow (The first three rooms), off. ledit first-rooms to edit it.
ledit first-rooms
You edit layer first-rooms in instance build: what you build in hollow here is saved into it as you type. Live doesn't see it.

You stand in the copy of hollow.entrance.

3. Write the entrance

redit name The Mouth of the Hollow
Ok.
redit terrain forest
Terrain set to 'forest'.
redit desc
Enter string.  (Enter /s to save, /h for help.)
] The road gives out among old beeches. A footpath runs north under
] their branches, where a first lantern hangs unlit.
] /s
Saving.

The terrains are inside, city, fields, forest, hills, mountains, water swim, water noswim, air, underwater, desert, beach, swamp, cave, canopy and shallow water.

4. Dig the other two rooms

dig <direction> <name> makes a new room and the exits both ways. The new room takes this room's terrain and flags. You stay where you are.

dig north lantern-glade
You dig north: room hollow.lantern-glade, with the way back.
north
redit name Lantern Glade
Ok.
dig down old-well
You dig down: room hollow.old-well, with the way back.
goto .old-well
redit name At the Bottom of the Old Well
Ok.
rflag +dark
Flagged.

Give both rooms a description with redit desc, as you did the entrance.

Directions are n, s, e, w, ne, nw, se, sw, u and d. There must be no exit that way yet. A name that is taken is refused and nothing is made.

Two more ways to shape the map:

rcreate <name>Makes an empty room with no exits.
redit bexit <direction> <address>Joins the room you stand in to another room of the zone, with the exit back. redit exit makes one side only.

goto hollow.old-well takes you to a room from anywhere in your copy. A typed name may be short: goto .well finds it too.

5. Check the zone

rcheck zone

rcheck zone checks every room: rooms with no description, exits that lead nowhere, exits with no way back, words the dictionary doesn't know, and rooms nobody can reach. Fix each !.

One ! is expected for now: the rooms have no way in, because nothing in the world leads to Lantern Hollow yet. That is the last step.

6. Take back a mistake

undo takes back your newest edit of the room you stand in. A dig goes back whole: the room and both exits. rhistory zone lists every edit of the zone, newest first.

7. Merge the layer

Look first, then apply:

lset hollow.first-rooms merge
lset hollow.first-rooms merge yes

The first command changes nothing. It lists what the merge does: the rooms changed, added and removed, the same for creatures and objects, the resets, and who built it. The second does it, all or nothing.

A merge is refused, with every problem listed, when a field is stale, a name is taken, an exit leads to a room that doesn't exist, or something still refers to a thing the layer removes. Fix those in the layer and merge again.

Your layer sat on the base, so after the merge your three rooms are the base of Lantern Hollow, and the layer is gone. The zone is still off.

8. Connect and open it

Exits between two zones are made in the base: one exit from a room of the world into hollow.entrance, and one back. A layer never holds an exit into another zone.

Then load the zone:

zone load hollow
zone load hollow yes

Again the first command shows what would happen and the second does it. The game reads the zone and runs its first reset. From that moment players walk in.

Until then the zone can't be reached: an exit into a zone that isn't loaded acts as no exit, and goto into it tells you which zone to load. Players aren't told when a zone opens, so announce it yourself.

Taking things back

zone snapshot hollow <name>Keeps a named copy of the zone and its layers as they are now.
zone history hollowLists the zone's merges, reverts, snapshots, loads and unloads, newest first.
zone revert hollowShows what undoing the newest merge does. With yes it does it. The base is as it was before, and you have your layer back to keep building.
zone revert hollow to <name> yesPuts the zone back to a snapshot.
zone unload hollow yesTakes the zone out of the game again. Refused while anyone is in it.

What's next