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

What each reference covers

ReferenceUse it for
Content and packagingManifest fields, file layout, merge behaviour, pet forms and conditions, shell and sticker schemas, unlock metadata and sticker distribution.
Every API callThe complete method index, with exact arguments, return values and capabilities.
CapabilitiesThe complete permission list and which API calls each capability grants.
Screens and menu entriesScreen registration, lifecycle callbacks, drawing commands and input events.
Home entriesFirst-class home-screen views, tile drawing, badges and host placement.
Main-screen layersFull-LCD background, under-pet and over-pet drawing with pointer and key input.
FoodsCustom Food menu entries and the consumption callback.
Collections entriesHost-rendered Collections rows that open mod screens.
Complete game statePet, visitor, gift, poo, page, progression and presentation snapshots.
State modifiersSafe visitor, poo, sleep/sick and mod-gift changes.
Pet presentation and reactionsLive pet rect/pose data, look-at/approach/interact reactions and host animations.
MinigamesRegistering a custom minigame, update/input callbacks and reporting completion.
EventsEvery implemented event and its payload.
ItemsRegistering mod-owned items, counts, gifting and Items-menu use callbacks.
Mod-owned unlocksCustom shell conditions, owned sticker grants and locked/custom-only content.
Persistent storageNamespaced state, schema versions, migrations and limits.
Pet stats and per-pet storagePer-pet stats, decay, formatting, Stat page display and pet-scoped storage.
SettingsTyped settings sections and rows in the normal settings menus.
Console commandsRegistering namespaced debug commands and running them from the console.
DejiScriptSyntax, values, control flow, built-ins, execution budgets and sandbox restrictions.

Data mod or code mod?

You want to addUse
Pets, shells, stickers, imagesA data mod. No code is required.
Custom screens, menus, simulations or minigamesA code mod in DejiScript.
First-class views or status on the main pet screenA code mod with the ui.home capability.
Arbitrary home-screen drawing or HUDsA code mod with ui.main, plus pet.presentation for pet reactions.
Custom foodsA code mod with the foods capability.
Custom Collections pagesA code mod with the ui.collections capability.
Custom per-pet stats and per-pet dataA code mod with the pet.stats capability.
Game-state reads or safe state changesA code mod with state.read or state.modify.
Settings sections and rowsA code mod with the settings capability.
Items, shops or currenciesA code mod with the items capability.
Custom shell unlock conditions or custom-only stickersA data definition plus a code mod with content.unlock.
Event reactions or persistent custom stateA code mod with events and storage.

Related guides