Skip to content

Subsystems overview

πŸ“– These pages are also published at storynook.github.io/Accident-Prone-1.21.4 β€” same content, with sidebar nav, search, and the Story Nook theme. The version you’re reading now is the raw source.

Accident-Prone Wiki

Detailed reference docs that don’t need to live in CLAUDE.md. Open the relevant page when you’re working on that subsystem.

Subsystems

  • Nanny NPC system β€” full per-phase component reference (Phases 1–6, all shipped). Includes Citizens2 wiring, care behaviors, navigation, chat engine, discipline tiers, membership integration, and the OAuth/encryption stack.
  • Hypnosis subsystem β€” Hypnosis Clock crafting, programming, application, triggering, persistence, and config. Includes the related β€œCursed” items.
  • Toilet & Warning system β€” intent-driven toilet relief eligibility (canRelieveOnToilet), probability-scaled warnings, session-only Plugin maps, /pee//poop context branching, config keys, and the relieveOnToilet vs handleAccident distinction.
  • Rash system β€” RP accumulation tiers (mess/wetness/underwear), threshold-driven health effects (none/poison/damage/health_reduction), slowness, persistence, and config keys.
  • Design Registry β€” adding new visual design variants (e.g. Goodnite Pull-Up Stars). Auto-detect script + /add-design skill β€” drop PNGs in a folder, run two commands, done.
  • Resource pack β€” 1.21.4 format β€” technical reference for the post-migration pack layout: range_dispatch items, equipment definitions, and the nested-select-on-trim leather_leggings shape.
  • Plugin dependencies β€” Maven dependencies, plugin.yml softdepends, and runtime detection logic (VentureChat / Citizens / PlaceholderAPI).
  • Integrations β€” Jobs Reborn / AdvancedJobs / BeautyQuests bridge: AccidentProneActionEvent, the 14-action catalog, and how to wire jobs/quests on top.
  • Changing Table β€” placeable 2-block furniture: lie-down (packet NPC clone in Pose.SLEEPING), 9-slot clean-only storage, recolor, dual-interaction hitbox, placement-transform tuning.

Other docs in this repo

  • docs/superpowers/specs/ β€” design specs (read before planning a phase).
  • docs/security/hardening.md β€” admin hardening guide for at-rest encryption.
  • docs/security/oauth-redirect.html β€” reference static helper page for OAuth code-paste flow.
  • docs/membership-setup.md β€” admin setup guide for Patreon / Subscribestar / Permission paths.