As time is going on, I’m finding myself with a few modding examples sitting around. Most of which are small projects I’ve done with other people here on discourse. My idea here is to present those simple mods all in one place.
Modding Stonehearth can be just data driven. This means even if not a programmer you will still be able to add content to the game. I would love to see more creators
I’ll be contacting people I’ve worked with to get the ok to release samples containing their content here.
I will be adding more samples over time.
Please note the purpose of this is not to take away from the modders I’ve worked with. I will not be adding new features, bug fixing, or updating any of the projects below. This is merely a hub for modding samples. The intent is merely educational. Though feel free to give any a try.
Note to load any of these either extract the files to your Stonehearth ‘mods’ folder, or rename the downloaded file
$(mod_name).smod
example
Downloaded
autosave.zip
Renamed
autosave.smod
I have done some considering and I think I can manage to maintain a few simple mods. This would include simple things like adding new crops, new items, ect. Mainly short examples focusing on just one task.
Samples [2083]
Startup Script [r2083]
Use this instead
This is a start-up mod I use when developing mods. I use it to cut down on testing times. For example, with this installed you will not longer see the main menu, instead stonehearth will immediate start loading a new world on start-up, and that would is tiny, which also helps with start-up times. It also does some misc stuff.
- lua/js code examples
- main menu skip
- create hearthlings
- promote hearthlings to class
- have hearthling place workbench
- create stockpiles
- place entity helper
Download - startupscript.zip - Google Drive
Add this to your user_settings.json,
"mods" : {
"stonehearth" : {
"world_generation" : {
"method" : "tiny"
}
}
}
Don’t forget to add a comma, depending on where you insert this
When I have some free time I’ll add some more…
Archived [Old Releases - May still work/Learning Resource]
Auto Save [r188]
Creates a shared save between all games that will be saved to every 5 mins. Also quick save hot key “Tab”.
- lua/js code examples
- event listening
- realtime timers
- creating saves
Download - autosave.zip - Google Drive
Original Post - Autosave mod help
Custom Class [r188]
Adds the “Better Carpenter” to Stonehearth. He does everything just like the normal Carpenter… just better… whatever that means ;).
- lua/js code examples
- Adding a new class
- Adding recipes to carpenter
- Adding entities
Requires Jelly - Download
Download - customclass .zip - Google Drive
Original Post - Tutorial for adding new class
Embark Map Extractor [r188]
Allows you to extract the embarks screens map by click the ‘Re-roll Map’ button, then dragging and drop the image out of a new window thats openes up. Click the new window again to ‘Re-roll’ the map. Clicking the normal ‘Re-roll Map’ button will not work.
- js code examples
- HTML canvas example
Download - embark_map_extractor.zip - Google Drive
Original Post - Questions about the mini-map
Renewable Resource [r188]
Adds harvestable bee hive, basically a berry bush example, which can be harvested to get edible honey.
- Adding recipes to carpenter
- Adding entities
- Renewable resource example
- Food example
Download - beehivemod.zip - Google Drive
Original Post - Question: How do you add objects to r188?
Custom Critters [r188]
Adds 2 new small animals to the game which are harvestable by the “Trapper”.
- Adding entities
- Scenario’s (spawning in the animals)
Download - r188addingcritters.smod - Google Drive
Original Post - BATTLEPUS! and Heimerdingers Qubicle Creations