Skip to content

Adoption System

Home / Adoption System


📄 Infobox: Adoption System Overview

ParameterSpecification
Activation ItemPaper (minecraft:paper)
Activation GestureShift + Right-Click tamed wolf with Paper
Claiming GestureRight-Click pending dog with empty hand
Associated AdvancementLooking for a Home (Task)
Cancellation TriggersShift+Right-Click paper again OR dog takes damage
Personality Pre-AssignmentAuto-assigns random personality (WolfPersonality.random) if dog lacks one

🔄 1. Adoption Lifecycle Workflow

       [Owner: Holds Paper] ──► Shift + Right-Click Dog


                           [Pending Adoption State]

         ┌──────────────────────────────┼──────────────────────────────┐
         ▼                              ▼                              ▼
 [Other Player Right-Clicks]   [Owner Shift+Right-Clicks]     [Dog Takes Damage]
         │                              │                              │
         ▼                              ▼                              ▼
 [Ownership Transferred]       [Adoption Cancelled]           [Adoption Cancelled]
 "You have adopted [Name]!"    "Adoption cancelled for..."    "Adoption cancelled because..."

📜 2. Chat Notifications & Security

  • Pending Activation: Broadcasts "[Name] is now ready for adoption! Another player can right-click them to claim."
  • Claim Transfer: Updates entity owner UUID to the new player, clearing old sitting/guarding states.
  • Damage Protection: If an adoption-pending dog takes environmental or combat damage, adoption state automatically cancels to prevent griefing during transfers.

NOTE

Giving every dog a loving home: Seamless ownership transfers and village stray adoptions make multiplayer community pet shelters and gift-giving effortless. If you enjoy building dog-friendly communities on your server, supporting my independent development on Ko-fi helps me keep expanding these companion systems!


🛡️ 3. Personality Safeguards & Stability (v4.24.4+ / v5.0.19+)

When adopting pre-existing vanilla dogs or dogs imported from older worlds:

  • Automatic Personality Assignment: If the dog does not have an initialized personality NBT tag when claimed, the system automatically assigns a random personality (WolfPersonality.random) prior to calculating owner stats.
  • Stat Modifier Fallback: WolfStatManager enforces a null guard (WolfPersonality.NORMAL fallback), guaranteeing that adoption claims never throw null pointer exceptions regardless of entity origin.

Back to Home | View Goat Horns & Tactical Commands

Official documentation & web portal for Dasik Igaijinn mods.