Content reference

Dejinochi mods use the same content format as the built-in game. This page documents the files, merge rules and fields you can hand-edit or inspect after exporting from the Mod Creator.

Where mods live

Player mods live in Godot's save folder, not the Steam install folder. The game scans every folder and every .zip in that directory at startup.

PlatformManual mod folder
Windows%APPDATA%/Godot/app_userdata/Dejinochi/mods/
Linux~/.local/share/godot/app_userdata/Dejinochi/mods/

Steam Workshop content stays in Steam's library, normally steamapps/workshop/content/5277000/<item-id>/. The game reads that path from Steam and never copies Workshop files into the manual mod folder.

Folder and archive layout

MyMod/
  manifest.json
  pets.json
  shells.json
  stickers.json
  shells/my_shell.png
  stickers/my_sticker.png
  scripts/main.sgd      # code mods only

Every supported content file is optional, but a data mod needs at least one of pets.json, shells.json or stickers.json. A code mod instead declares "type": "script" and a .sgd entry. Put files and their referenced textures together at the root, or inside one shared wrapper folder in a ZIP.

Load order and merging

  1. The base game content loads first from content/base/.
  2. Workshop items load next, sorted by numeric item ID.
  3. Manual folders load alphabetically.
  4. Manual ZIPs load alphabetically.

Later sources win where merging allows it:

FileMerge behaviour
pets.jsonMerges per form ID. Reusing an ID replaces the entire form definition, so include every field and sprite state you want to keep.
shells.jsonAppends entries.
stickers.jsonAppends entries.

Manual mods take precedence over Workshop mods when both provide the same overridable ID. Mod content does not increase the base-game collection totals used by achievements and Steam stats.

IDs and namespacing

Every form, shell and sticker needs a stable id. The base game uses dejinochi.<type>.<name>. Use your own prefix, for example mymod.form.fluffy, mymod.shell.mint or mymod.sticker.star. Types are form, shell and sticker. IDs are used by saves, the debug console and the Species collection, so never change one after release.

Localised text

Names and hints can be literal strings or per-language maps. A missing or empty language falls back to English.

"name": { "en": "Seashell", "de": "Muschel", "jp": "Kaigara", "zh_CN": "Shell" }

A form with no literal name uses its id as the locale key. Shells and stickers can carry a literal name, so mods do not need to edit the game's locale files.

manifest.json

Supplies the title, author, version and icon shown on the in-game Mods page. It is optional; a missing or malformed manifest shows unknown text and a question-mark icon.

{
  "title": "My First Mod",
  "author": "YourName",
  "version": "1.0",
  "description": "An optional description.",
  "icon": ["..##..", ".####.", "######"],
  "icon_scale": 3
}

title, author and version are free text. icon is an array of equal-length strings using # for ink and . for clear space. icon_scale is an integer; the default is 3. The icon may also be an object such as { "pixels": ["..##.."], "scale": 2 }.

Code mods add these fields:

FieldMeaning
idStable lowercase namespaced identity, also used for namespaced storage.
type"script" for an executable mod.
entryRelative path to the .sgd entry script.
api_versionMod API contract version required for script mods. Use the version supported by the target game; the host rejects a contract it does not implement.
min_game_versionOptional minimum game version.
capabilitiesNon-empty permissions array. See Code mods.
dependenciesOptional required mod IDs, or objects with id and optional.

pets.json

Contains a forms array. The Mod Creator writes this file for you, but hand-editing is supported.

{
  "forms": [
    {
      "id": "mymod.form.fluffy",
      "name": { "en": "Fluffy" },
      "condition_text": { "en": "A very happy pet." },
      "adult": true,
      "collectible": true,
      "priority": 5,
      "weight": 1,
      "conditions": { "average_happiness_min": 65 },
      "any_conditions": [
        { "games_played_min": 4 },
        { "overfed_gt": 2 }
      ],
      "offset": [0, 0],
      "food_offset": [0, 0],
      "sprites": {
        "Idle": [[".....", ".#.#.", "#####", ".....", "....."]],
        "Happy": [[".....", ".#.#.", "#####", ".....", "....."]],
        "Unhappy": [[".....", ".#.#.", "#####", ".....", "....."]]
      }
    }
  ]
}

Form fields

FieldMeaning
idNamespaced content ID and localisation key. Required and stable.
nameOptional literal display name as a string or per-language map.
condition_textSpecies hint shown in the collection. Same literal-or-reference rules as names.
condition_text_idAlternative locale key for the hint. Do not combine with a literal condition_text unless you know which should win.
adulttrue makes the form an evolution candidate. false is for shared Egg, Child or Teen forms.
collectibletrue adds the form to the Species collection and graduation records.
catalogue_orderOptional Species slot. 1..catalogue_size requests a reserved slot; anything else is placed after the reserved slots.
priorityThe highest eligible priority always wins.
weightPositive relative chance between candidates tied at the highest priority, preferring uncollected species. Zero excludes the form.
conditionsAll conditions must pass (AND). An empty object imposes none.
any_conditionsOptional array of condition objects; at least one must pass (OR). If conditions is also supplied, that must pass too.
spritesMaps state names to arrays of pixel-grid frames. Grids may be any size, but every row in a frame must have the same length.
offsetOptional [x, y] nudge in sprite pixels. Defaults to [0, 0].
food_offsetOptional [x, y] nudge for the food sprite during Eat, added on top of offset. Defaults to [0, 0].

A mod may also add a top-level catalogue_size to pets.json. It expands the displayed Species catalogue without increasing the base-game achievement requirement. The base reserved slot count comes from the game's config.cfg.

Sprite states

Supported states are Idle, Hatch, Growing, Happy, Play, Proud, Goodbye, Leaving, Sleeping, Sick, Unhappy, Hungry, Eat, Care, Clean and Scoop. Missing states use the game's normal fallbacks. Idle uses its first frame and bobs vertically; other states can alternate two frames.

Condition rules

Condition keys combine a metric with a comparison suffix:

  • _min means greater than or equal to.
  • _max means less than or equal to.
  • _gt means strictly greater than.
  • _lt means strictly less than.

Use both _min and _max for an inclusive range. Metrics come from accumulated child and teen history frozen at adulthood. Fractions divide by actual recorded child and teen time, and per-hour interaction rates use max(1, recorded simulated care hours).

MetricMeaning
average_happinessTime-weighted happiness, 0 to 100.
average_satiationTime-weighted fullness, 0 to 100. Higher is better fed.
neglect_fractionNeglected hours divided by actual recorded childhood hours. Neglect means fullness below 25 OR happiness below 25 OR sleep below 15; overlapping low needs do not multiply.
sickness_fractionSick hours divided by actual recorded childhood hours. Measures time sick, not illness events.
interactions_per_hourGeneral interactions per care hour: feeding, patting, medicine and games.
care_actions_per_hourCare actions per care hour: feeding, medicine, cleaning and patting.
games_playedCompleted games during childhood.
game_win_rateWins divided by games played.
overfedTotal overfeeding events.
indulgenceOverfeeding events plus childhood chocolate feeds times the configured evolution weight.
missedDistinct low-need episodes.

Selection

  1. Keep adult forms that pass conditions and any_conditions with positive weight.
  2. Keep only the highest priority among them.
  3. Among ties at that priority, prefer uncollected adults and choose by weight.
  4. If none is eligible, the game uses its base fallback form.

Collected species never lose priority to a lower-priority unseen species. Forced debug adults bypass these conditions, so verify eligibility through normal childhood care.

shells.json

{
  "shells": [
    {
      "id": "mymod.shell.mint",
      "name": { "en": "Mint Shell" },
      "path": "shells/my_shell.png"
    }
  ]
}

Each shell needs an id, a name (or name_id) and a path to a texture relative to the mod root. Shells are stretched across the game's logical canvas.

Mod shells are always available by default. Add an unlock object to let a code mod gate the shell:

"unlock": {
  "type": "custom",
    "hint": "Collect two items"
}

The code mod registers a predicate with api.register_unlockable and can call api.unlock_content("shell", id) to use the normal reveal path. Base shells never use mod unlock providers.

stickers.json

{
  "stickers": [
    {
      "id": "mymod.sticker.star",
      "path": "stickers/my_sticker.png",
      "scale": 3,
      "monochrome_mode": "auto"
    }
  ]
}

Each sticker needs an id, a path and an integer scale. The optional monochrome_mode accepts auto, outline, filled or legacy_outline. Missing or invalid values fall back to auto.

Add "distribution": "custom" to exclude a sticker from normal gift rolls. A code mod can then award it with api.give_sticker(id, count). Omit distribution, or use "gifts", for the normal weighted gift pool.

Texture rules

  • Texture paths are relative to the mod root, or an absolute res:// path into the game's resources.
  • Paths with .. segments or absolute filesystem paths are rejected during Workshop publishing.
  • A ZIP's textures are decoded from the archive at load time. Keep the JSON and its textures together at the ZIP root or inside one shared wrapper folder.
  • The Mod Creator materialises res:// textures into exported mods so the result is self-contained.

Backwards compatibility. When adding fields, keep existing IDs and provide sensible defaults for omitted optional fields. Existing saves identify pets, shells and stickers by ID.