Skip to content

Getting Started

ScalarVector edited this page Mar 12, 2025 · 13 revisions

Install the mod

To start using StructureHelper, you'll first need to install the library. you can do this through the in-game mod browser, or the releases section of this repository. You'll also need some way to spawn items into the game to properly use the mod, I would recommend DragonLens.

Build your structure

After installation you can enter any world and create your desired structure or structures in-game however you like. For more in-depth information and tips see Building Tips, Null Tiles, and Tile Entities. If you wish to include chests in your structure, see Chest Wand.

Save your structure

Next, use your item-spawning method of choice to give yourself either a Structure Wand or Multistructure Wand and use it to save your structure. (see the respective pages for usage and more information about which is right for your application).

Retrieve your structure

After this, locate the generated file (It should be in C:/Users/USERNAME/MyGames/Terraria/tModLoader/SavedStructures by default) and copy or move it to your mod's source directory.

Add a dependency to your mod

Next add this mod as a reference to your own, either by virtue of including the DLL directly in your source folder or using TModLoader's mod dependency system. You can find more information about this here.

Generate your structure

Finally, call the appropriate generation method from StructureHelper.API.Generator for the file type you want to generate from, and pass the appropriate parameters. Every method here is documented in the code, and here:

Clone this wiki locally