-
Notifications
You must be signed in to change notification settings - Fork 7
Getting Started
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.
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.
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).
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.
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.
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:
