
The Lost Cities Mod builds every city from small JSON files, and you can add your own with a data pack. No Java code is needed. This guide shows what each file type does, where it goes, and how to edit a part right in the game.
How the Lost Cities Mod builds a city
A city is not one big saved map. The mod puts it together chunk by chunk as you explore. Each time, it reads its JSON files and picks pieces from them.
Think of it as a box of bricks. A part is one floor of one chunk. A building stacks parts on top of each other. A city style says which buildings, streets and looks a city may use.
The stock files live inside the mod under data/lostcities/lostcities/, with one folder per type. Your data pack uses the same layout under its own name, like data/mypack/lostcities/parts/.
The kinds of JSON files
You do not need all ten types to start. Most people begin with parts, palettes and buildings.
| Folder | What it holds |
|---|---|
palettes | Which block each letter in a part stands for |
parts | Small blocks of layout, such as one floor or one roof |
buildings | A list of parts that stack into a full tower |
multibuildings | Buildings that cover more than one chunk |
styles | Sets of palettes that give one look |
citystyles | Which buildings, streets and styles a city uses |
worldstyles | Which city styles show up where in the world |
variants | A few random forms of one block, so walls look less flat |
conditions | Rules that pick one thing or another, such as loot or mobs |
scattered | Lone builds placed out in the wild, away from cities |
Inside a part file
A part file has an xsize, a zsize and a list of slices. Most stock parts are 16 by 16, the size of one chunk. Each slice is one layer of blocks, drawn as rows of letters. In the stock palette, a space stands for air.
The palette then says what each letter means. So one part can be brick in one city and stone in the next. Swap the palette, and you get a new look without redrawing a thing.
Inside a building file
A building file has a parts list. Each entry names a part and says if it is a top. Floors use "top": false, and roofs use "top": true. The mod picks from that list as it stacks the tower.
City styles and world styles
The mod ships with the standard, desert and border city styles. A world style says where each one is used. The two stock world styles are standard and standard_everywhere.
The in-game part tools
Typing letter grids by hand is slow. These sub-commands of /lostcities, or the short /lost, let you build a part with real blocks. They all need op rights, or cheats in single player.
createpart: place a part by name at a spot you choose, and start editing it.editpart: edit the part you are standing in. It puts the part's blocks back to stock first.resumeedit: go back to a part and keep the blocks you changed.exportpart: save the part you are editing to a JSON file.listparts: list each part in your chunk and its height.locatepart: find nearby spots where a part was used.createbuilding: place a whole building, with 1 to 20 floors and 0 to 10 cellars.
Turn on edit mode first
editpart, resumeedit, listparts and locatepart only work in a world made with edit mode on. In edit mode, the mod keeps a record of which part went where.
To turn it on, press Customize on the Cities screen. Step to the Various page and tick Edit mode. Then make the world. Without it, you get a red line: "This world was not created with edit mode enabled." Our Lost Cities commands guide covers the other commands.
A simple workflow for your first part
- Make a test world. Creative mode, cheats on, edit mode on. Keep it apart from your main save.
- Find a part. Walk into a city and run
/lost listparts. - Start editing. Stand inside the part and run
/lost editpart. Or usecreatepartto place any part by name. - Build your changes. Add a room, swap the roof or add a shop front. Stay inside the part's space.
- Save it. Run
/lost exportpart myshop.json. The mod uses the name just as you type it, so add the.jsonyourself. - Fix the palette. If you used blocks the palette does not know, the file lists them under
missingpalette. Add those to a palette of your own. - Move it to your pack. Your new part sits in the
exportedpartsection. Copy that into a fresh file in your pack'spartsfolder. - Add it to a building. List the part in a building file. Then let a city style use that building.
- Test in a new world. The mod only uses your files for new chunks.
Data pack tips that save time
- Use your own name in the pack path. Then your files never clash with the stock ones.
- Copy a stock file and change it, instead of a blank page. The mod has about 200 stock parts to learn from.
- One missing comma or bracket can stop a whole file from loading. Check your JSON with care.
- Read the game log after the world loads. File errors show up there.
- All stock files are in the mod's source on GitHub. McJty's own website has docs on the format, and McJty's Discord can help.
Sharing what you make
Your work is just a data pack, so it is easy to share. Zip it and send it to friends. They add it to a new world, and its chunks can use your buildings.
On a server, put the pack in the world's datapacks folder. Since the mod runs on the server, players do not need to do a thing. New to the mod? Start with the install guide.
The mod is free under the MIT license. Still, give credit if your pack builds on someone else's work.
Custom buildings FAQ
Do I need to know Java to add buildings?
No. Parts, palettes and buildings are JSON files. A text editor and a test world are all you need.
Why do my new buildings not show up?
Most often you are in old chunks. Go far out or start a new world. Also check that a city style lists your building, and that the log shows no JSON errors.
Can I change the look without making new parts?
Yes. Make a new palette or style. The same parts will then use your blocks.
Where does exportpart save the file?
In the game's main folder, under the exact name you typed. On a server, it lands in the server folder.
Ready for your own lost city?
Get the right file for your game in the download section.



