MODDING INSTRUCTIONSCreate your first pack →

Love & Birth

A standalone Java mod. Couples and their children can share a residence without Shared Quarters. Enable Shared Quarters as well to permit unrelated housemates. No dependency on Sundering.

Conversations and courtship

Adult civilians and soldiers develop directional affinity through the existing talk system, including partners, other couples, same-sex friends and relatives. Each conversation changes each person's feeling by −5 to +25, clamped to −100…100. Existing positive affinity biases the roll upward: +1 to the roll for each 20 affinity, capped at a +25 change. Children and heroes do not enter this affinity pool. Courtship additionally requires two single, unrelated adults of opposite sex. Speech volume and camera visibility do not prevent the simulation event.

Once either person reaches 100, the pair can court. The other person's affinity, clamped to 0…100, is the daily success percentage. Both at 100 means guaranteed success at the next daily check. Each person gets at most one courtship attempt per day; stronger mutual interest takes priority. Successful couples remain exclusive while continuing to build affinity with other adults. Pairing and loading preserve all recorded feelings. The expanded roster keeps its Affinity panel visible even before anyone has a nonzero relationship. There is no marriage or voluntary breakup system. A surviving partner becomes single after a death.

Make a family home

Assign the couple to the same residence and put their beds next to each other. Each partner receives three separate recurring happiness sources:

Condition Met Unmet
Same residence +1 −4
Their own beds share a cardinal edge +1 −4
No unrelated housemates +1 −4

These are rates per game minute, as in the normal happiness breakdown. Either partner's children are exempt from the privacy condition, including after growing up. Unpaired descendants keep the family household; a child who later forms a couple starts their own household. Couples reserve adjacent beds when available; other residents receive remaining beds. Move residents using the normal residence UI. The mod does not override a player's decision to keep the partners in separate homes.

Pregnancy and children

With all three conditions satisfied, a couple has a 3% conception chance per day. Every twelve unsuccessful eligible days adds one percentage point. Days without suitable housing do not count as failed attempts. Pregnancy resets that increase. The mother cannot conceive again until at least 48 days after the last birth (one game year).

  • Pregnancy lasts one 12-day season. The mother stops work for its final three days.
  • Birth has no failure chance by default. birthFailurePercent is available in settings.json.
  • A newborn is breastfed automatically for one season; the mother takes leave for that season.
  • Children render at 60% using the existing younger male/female art and cannot work or be recruited.
  • Colony-born people remain professionless throughout life, including children restored from older mod saves. On adulthood they gain +1 Stamina, Strength, Dexterity, Intelligence and Luck. This growth is derived from their saved birth date and never stacks on refresh, promotion or reload.
  • Childhood also lasts one season, so the default child grows up at weaning. Food and an individual bed become necessary then. If the mother dies earlier, ordinary eating and bed needs begin early.
  • Nearby children provide one +2 “Children playing” happiness source within three tiles on the same level. Several children do not multiply it. A child does not grant the aura to itself.
  • Missing spawn space delays a birth safely; reloading does not duplicate a baby. Failure results are retained across placement retries. A configured failed birth ends pregnancy and starts the yearly cooldown without killing the mother.

Citizens and soldiers show partner, courtship, pregnancy, parental leave and child status in the roster, with full status tooltips. The three housing sources and child aura appear in the happiness breakdown.

Build and configure

Run gradlew assembleLoveBirthMod love_birthModZip. Install the entire build/mods/love_birth folder, or distribute build/mods/love_birth-1.2.1.zip. Enable it in Mods, then choose Apply & reload.

From the extracted SDK:

.\examples\mod-sdk\build-mod.ps1 -Project .\examples\love-birth-mod `
  -ApiJar .\build\mod-sdk\forgotten-towns-mod-api-15.jar -OutputDirectory .\family-build

Install only family-build/love_birth. settings.json separately controls pregnancy, childhood and feeding durations in seasons, prenatal leave in days, conception chance, monthly increase and birth failure chance. Defaults match the rules above. Change settings before starting a test world: settings are captured gameplay content, so editing them changes save compatibility. No live configuration UI is provided. All relationship, fertility and childhood rules live in src/lovebirth/LoveBirthMod.java.

Customization

The pack includes a cover and about/ui.json for presentation overrides. See UI and gameplay customization for the complete theme slots, settings files, typed hooks and engine limits. Keep a copy of an older pack before updating. New versions are validated against the API, content and saved state.

What the player currently sees

The citizen roster shows courtship, the partner, pregnancy, parental leave and child status; hover the status/identity area for the full text. Courtship reports the daily success chance once eligible. Expand a citizen using the information button to see Affinity beside Happiness / min. Each named row shows outgoing (→) and incoming (←) affinity, with signed values and bars from −100 (dislike) to +100 (affection). Hover for the full names and direction explanation. Strongest feelings appear first; the list scrolls independently. Fully neutral relationships are hidden. The column stays visible with an empty message while Love & Birth is active, and disappears when no active mod supplies affinity. The inspector's Relationships tab follows the same capability. The three stat columns remain Attributes, Primary and Secondary.

The mod declares ColonyExtension.providesAffinities() and supplies saved values through the reusable ColonyExtension.affinities(view) hook. They are restored with the world and refreshed after conversations at the next simulation boundary. Pairing preserves feelings and conversations continue to update them. Affinity is part of Love & Birth, not a separate mod; the host's presentation does not depend on this mod's ID.

Forgotten Towns · Modding reference