Intermediate Modding
Intermediate guide.
In this section we'll provide and explain intermediate modding examples, for those who want to customize more complex parts of the game. From here on, we'll start delving into the Lua files, although a big part of this guide can still be done purely in JSON.
Table of Contents
-
Collision regions : how to set up properly the collision, destination and adjacency regions for items.
- Origins : how to set up the model origin and region origin for items. Hangable items.
- Collision and destination : collision types and destination regions.
- Building parts : how to add new building resources, patterns for floors, walls and roofs, new doors and windows.
- Commands : how to create new commands for the unit frame.
- Buffs : how to create buffs, how to add them and remove them.
- Thoughts : how to create thoughts for the morale UI to use in different systems.
- Traits : how to create new traits for hearthlings.
-
Biomes : how to create custom biomes.
- Seasons and weather : how to set up seasons and creating custom weather.
-
Adding jobs : how to add new jobs to the game. Common steps.
- Crafting jobs : how to create a new crafting job.
- Combat jobs : how to create a new combat job.
- Kingdoms : how to add your own playable kingdoms to the game.
- Critters and monsters : how to create your own creatures.
-
Campaigns : how to add your own game master campaigns and encounters to the game.
- Generic encounters : list of the existing encounter types and their fields.
- Hotloading manifests : how to apply manifests only under certain conditions.
- Testing your mod : how to use the Microworld, Stonehearth Tests and Stonehearth Autotests mods. Lua profiler scripts.