Saving a custom ruin
You save the same build twice with a structure block: once finished, once broken. The pictures show the example that comes with the mod.
1. Build the finished version
In creative mode with commands on. Give yourself a structure block and place it one block outside a bottom corner, on the side of the lowest X and lowest Z (north-west), level with the lowest layer you want to save.
/give @s minecraft:structure_block
2. Save it
Right-click the block and press the button at the bottom left until it says Save. Fill it in like this, with your own size. Press Done to see the outline; when it holds the whole build, open the block again and press SAVE.
| Structure Name | old_watchtower_restored |
|---|---|
| Relative Position | 1 0 1 |
| Structure Size | 19 27 19 |
| Include Entities | On, if you want item frames, paintings or armour stands saved too |
3. Break it, and save that too
Knock it down and let it grow over. Leave the structure block where it is, change the name to old_watchtower_ruined and press SAVE again. The same corner and size keep the two in line.
4. Copy the files
They are in your world folder (structures is called structure in the newest versions):
saves/<your world>/generated/minecraft/structures/old_watchtower_restored.nbt saves/<your world>/generated/minecraft/structures/old_watchtower_ruined.nbt
Make a folder for your ruin and copy them in under these names:
config/scorchedarchitect/ruins/old_watchtower/restored.nbt config/scorchedarchitect/ruins/old_watchtower/ruined.nbt
5. Say where it spawns
Start the game once. It writes ruin.toml into the folder with every setting explained. The ones you will want first:
[where] spawn = "biomes" # or "coordinates", or "both" biomes = ["minecraft:plains", "#minecraft:is_forest"] coordinates = [] # such as ["250 ~ -900", "1200 70 800"] dimensions = ["minecraft:overworld"] [frequency] average_distance = 600 # blocks between two of them chance = 100 limit = 0 # the most in one dimension, 0 for no limit
The settings folder beside this page has more to copy from. Then open a world and find one:
/locate structure scorchedarchitect:old_watchtower /locate ruin old_watchtower
In a data pack
A ruin can also come from a data pack, beside its other world generation. It is then called namespace:name, and can take the place of any structure, so that, for example, every new jungle temple is your ruin instead:
data/modpack/scorchedarchitect/ruin/the_old_temple.json data/modpack/structure/the_old_temple/ruined.nbt (structures in 1.20.1 and older) data/modpack/structure/the_old_temple/restored.nbt
{
"where": { "replaces": ["minecraft:jungle_temple"] },
"placement": { "offset_y": -1 },
"files": {
"ruined": ["modpack:the_old_temple/ruined"],
"restored": ["modpack:the_old_temple/restored"]
}
}
The temple keeps its place and how often it appears, and /locate structure minecraft:jungle_pyramid still finds it, now as your ruin; so does /locate structure modpack:the_old_temple. Only land generated after the pack is added changes. settings/in_a_data_pack.json has every setting.
The game also writes this example as a whole data pack beside this page, in _guide/example_data_pack. Copy that folder into a world's datapacks folder to try it, or use it as the start of your own; its HOW_TO_USE.txt says how.
Good to know
- If your build includes the layer of ground it stands on, set
offset_y = -1. - Empty corners are saved as air. Set
air = false, or fill them with structure voids, if your build should not cut a box out of a hill. - For a chest with loot, before saving:
/data merge block <x> <y> <z> {LootTable:"minecraft:chests/simple_dungeon"} - For a build larger than 48 blocks, use several structure blocks and list the files under
[files];settings/large_build_in_pieces.tomlshows how. - To look at the example in your world:
/architect ruins place example_old_watchtower