Reference
One entry point for every Dejinochi mod reference. Start here when you need an exact field, API call, capability, event payload or language rule.
Looking for the workflow? Use Getting started for a first data mod and Mod API for the code-mod lifecycle and examples. This page is the index to the exact references.
Reference map
Content and packaging
Folders, load order, IDs, manifests, pets, shells, stickers, unlock metadata, distribution and texture rules.
Mod API
Every call, callback, argument, return value, capability, event payload and limit, plus home entries, main-screen layers, foods, collections, pet presentation, game state, screens, canvas, input, minigames, pet stats, settings, items, unlocks and storage.
DejiScript
Values, operators, control flow, functions, built-ins, execution limits and the sandbox restrictions.
What each reference covers
| Reference | Use it for |
|---|---|
| Content and packaging | Manifest fields, file layout, merge behaviour, pet forms and conditions, shell and sticker schemas, unlock metadata and sticker distribution. |
| Every API call | The complete method index, with exact arguments, return values and capabilities. |
| Capabilities | The complete permission list and which API calls each capability grants. |
| Screens and menu entries | Screen registration, lifecycle callbacks, drawing commands and input events. |
| Home entries | First-class home-screen views, tile drawing, badges and host placement. |
| Main-screen layers | Full-LCD background, under-pet and over-pet drawing with pointer and key input. |
| Foods | Custom Food menu entries and the consumption callback. |
| Collections entries | Host-rendered Collections rows that open mod screens. |
| Complete game state | Pet, visitor, gift, poo, page, progression and presentation snapshots. |
| State modifiers | Safe visitor, poo, sleep/sick and mod-gift changes. |
| Pet presentation and reactions | Live pet rect/pose data, look-at/approach/interact reactions and host animations. |
| Minigames | Registering a custom minigame, update/input callbacks and reporting completion. |
| Events | Every implemented event and its payload. |
| Items | Registering mod-owned items, counts, gifting and Items-menu use callbacks. |
| Mod-owned unlocks | Custom shell conditions, owned sticker grants and locked/custom-only content. |
| Persistent storage | Namespaced state, schema versions, migrations and limits. |
| Pet stats and per-pet storage | Per-pet stats, decay, formatting, Stat page display and pet-scoped storage. |
| Settings | Typed settings sections and rows in the normal settings menus. |
| Console commands | Registering namespaced debug commands and running them from the console. |
| DejiScript | Syntax, values, control flow, built-ins, execution budgets and sandbox restrictions. |
Data mod or code mod?
| You want to add | Use |
|---|---|
| Pets, shells, stickers, images | A data mod. No code is required. |
| Custom screens, menus, simulations or minigames | A code mod in DejiScript. |
| First-class views or status on the main pet screen | A code mod with the ui.home capability. |
| Arbitrary home-screen drawing or HUDs | A code mod with ui.main, plus pet.presentation for pet reactions. |
| Custom foods | A code mod with the foods capability. |
| Custom Collections pages | A code mod with the ui.collections capability. |
| Custom per-pet stats and per-pet data | A code mod with the pet.stats capability. |
| Game-state reads or safe state changes | A code mod with state.read or state.modify. |
| Settings sections and rows | A code mod with the settings capability. |
| Items, shops or currencies | A code mod with the items capability. |
| Custom shell unlock conditions or custom-only stickers | A data definition plus a code mod with content.unlock. |
| Event reactions or persistent custom state | A code mod with events and storage. |
Related guides
- Mod Creator — creating and packaging data or code projects.
- Install & test — local installation, logs, the Mods page and troubleshooting.
- Publish to Workshop — validation, upload, updates and Steam errors.
