
Touhou Maid: Affection
Adding a “kiss” feature to Touhou Little Maid, inspired by “kiss-a-friend”
About this Mod
Touhou Maid: Affection
An affection and bond expansion for Touhou Little Maid.
Latest Release
1.7.2.2 brings AI cache persistence, expanded management commands, and smarter language defaults:
- Cache persistence: AI-generated dialogue and TTS audio are now saved to
world/generated_morning_kiss/and survive server restarts. - New commands:
/tma morning_kiss status(runtime overview),/tma morning_kiss cache(per-maid stats),/tma morning_kiss ai on|offand/tma morning_kiss tts on|off(runtime toggle), and expanded/tma morning_kiss clear_ai_cache(maid/pool/entry/voice granularity). - Config:
aiDialogueCacheConsumeOnUse(defaultfalse) controls whether cached entries are consumed or peeked.aiDialogueLanguagenow defaults totlmto follow per-maid TLM language preferences. - Language resolution: Text generation and TTS voice language now resolve independently based on chat vs. TTS source language.
Full release history lives in CHANGELOG.md.
Features
Kiss Interaction
Sneak with an empty hand and right-click your maid to kiss her. Kisses grant favorability, play random kiss sounds, spawn heart particles, and use a short close-up camera effect. Repeated kisses can trigger the custom Maid's Prayer effect.
When CarryOn is installed, the right-click condition changes to avoid interaction conflicts. A dedicated keybind also supports kissing a princess-carried maid.
Targeted Kiss Key
Controls include a targeted kiss action. When your crosshair points at an owned maid within range, the client sends only the entity id; the server re-checks ownership, distance, line of sight, cooldown, and normal kiss rules before applying the interaction.
Bond System
High-affection maids can become bonded companions. Bond abilities currently include:
| Ability | Purpose |
|---|---|
| Lap Pillow | Rest with your maid using configurable sit/lie poses and optional YSM actions. |
| Morning Kiss | Schedule or manually call a morning greeting with kisses, dialogue, and voice playback. |
| Emergency Rescue | Let bonded maids contribute daily rescue chances and rescue voice lines. |
| Random Gift | Let bonded maids accumulate and deliver small gifts over time. |
The server remains authoritative for unlocks, costs, distance checks, cooldowns, and ability execution. The client UI is a display and configuration surface.
Custom Dialogue And Voices
Version 1.7.2+ adds datapack-driven voice pools:
data/touhou_maid_affection/morning_kiss/profile.json
data/touhou_maid_affection/morning_kiss/voices/*.ogg
data/touhou_maid_affection/emergency_rescue/profile.json
data/touhou_maid_affection/emergency_rescue/voices/*.ogg
Morning Kiss datapacks can define static dialogue pools, kiss sound behavior, and OGG voice files. Emergency Rescue datapacks define rescue OGG voice files and a fallback sound event. See 早安吻文本修改教程.md and the ready-to-zip sample pack in examples/TMA-Custom-Voice-Pack.
AI Hub
Morning Kiss can optionally use TLM AI sites to pre-generate dialogue and TTS audio. Runtime behavior, prompts, and the aiDialogueLanguage language setting are configured in config/touhou_maid_affection-common.toml, while datapacks stay responsible for static text and pre-recorded OGG files. After changing language or prompt settings, admins can run /tma morning_kiss clear_ai_cache to clear generated cache for the current server session so later scans regenerate it.
TMA also registers AI Hub chat and TTS site presets for TLM's AI settings UI. The current provider implementation is MiMo-compatible, but the in-game entry is named around TMA AI behavior so future chat, TTS, and STT-facing features can share the same doorway. User API keys and enabled site state remain managed by Touhou Little Maid.
Compatibility
- Touhou Little Maid: required dependency.
- Yes Steve Model: optional action playback and action discovery.
- CarryOn: optional right-click conflict avoidance.
- TLM GUI and sound packs: soft integration where available, silent fallback where absent.
Installation
- Install Minecraft
1.21.1with NeoForge21.1.x. - Install Touhou Little Maid
1.5.1+. - Put
touhou-maid-affection-1.7.2.2.jarinto yourmodsfolder. - Launch the game.
Build From Source
git clone https://github.com/yabo083/Touhou-Maid-Affection.git
cd Touhou-Maid-Affection
./gradlew build
Output jar:
build/libs/touhou-maid-affection-<version>.jar
Maintenance Docs
- PROJECT_ARCHITECTURE.md: architecture boundaries and module responsibilities.
- CHANGELOG.md: user-facing release history.
- 早安吻文本修改教程.md: datapack text, voice, and AI setup guide.
- TESTING.md: test scope and regression commands.
- DEPLOYMENT.md: release constraints and pre-release checklist.
License
Available Versions
How to Install Touhou Maid: Affection on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set forge Loader
In the panel under "Egg", select the forge loader and matching Minecraft version (1.21.11).
Install Mod
Open the mod browser in the dashboard and search for "Touhou Maid: Affection". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21.11, 1.21.10, 1.21.9 (+10 more)
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Touhou Maid: Affection server crashes on startup – what to do?
Most common cause: wrong forge version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.11). You can switch loaders with one click in the panel.
Is Touhou Maid: Affection compatible with forge and neoforge?
Touhou Maid: Affection officially supports forge, neoforge for Minecraft 1.21.11, 1.21.10, 1.21.9. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with Touhou Maid: Affection – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Touhou Maid: Affection consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install Touhou Maid: Affection with just one click on your server.