

I used 00 for the artificial-plant example, 01 for exterior-air-vent, etc) to come up with something reasonably unique, e.g.
Space haven siren mod#
mine is #4511) and a sequential mod number (e.g. I recommend prefixing your definition IDs with your Discord user number (e.g. Luckily IDs can be any (positive) 32-bit integer which means there's lots of space.
Space haven siren mods#
If you want to create a new definition, things get a bit trickier because you need to make sure your ID numbers are unique across all mods that might get loaded. The mod loader will replace the game's definition with the one from your mod. If you want to replace an existing game definition, like the included Greenhouse mod does, simply copy that definition into to your mod with the same ID number that the game uses. Most of the items in the game's library are identified by a numeric ID rather than a human-readable name. Note that because mods are loaded by doing an id-wise merge with the base game library, only the following files and tags are currently supported: Mods follow the same folder structure and file format and should be reasonably obvious from the included sample mods.

Also of interest are library/texts, library/animations, and library/textures.

It contains definitions for most of the things in the game (buildings, items, ships, characters, objectives, generation parameters, etc). The main file of interest is library/haven.annotated, which is an annotated copy of library/haven, which is the main game library. That will extract the game library from spacehaven.jar into mods/spacehaven/ and open the folder. You can take a look at the library by clicking the "Extract & annotate game assets" button. Mods are stored as a series of XML files in roughly the same format as the game's library. The mod loader will load the mods into the game, launch the game, and then unload them again when the game exits. When you're ready click "Launch Space Haven!" to play with mods. If they don't then you might not have installed them properly. Go back to the mod loader and make sure the mods you installed appear in the list.
