⏳ Pregnancy Gestation & Prenatal Pasture Care
NOTE
📌 リポジトリソースコード免責事項: このWikiのドキュメントは、リポジトリ内の現在のソースコード状態(v1.3.4+26.2)を反映しています。CurseForgeやModrinthの公式公開ビルドに先行する開発中の最新コミットや機能が含まれる場合があります。
📋 System Infobox
| Property | Value |
|---|---|
| Feature Name | Autonomous & Manual Gestation Timers |
| Autonomous Gestation Toggle | natural-reproduction:gestation_period (Default: true) |
| Manual Breeding Gestation | natural-reproduction:manual_gestation (Default: true) |
| Default Gestation Duration | natural-reproduction:gestation_duration (24000 ticks / 1 MC Day) |
| Prenatal Health Bonus | +15% Max Health |
| Prenatal Speed Bonus | +10% Movement Speed |
| Prenatal Scale Bonus | +10% Baseline Physical Scale |
| Primary Helper | AnimalGestationHelper.java |
🎮 Player & Survival Gameplay Workflow
- Mating & Conception: When two animals mate (either autonomously in the wild or via player manual feeding), the female parent enters pregnancy gestation.
- Gestation Countdown: A 24,000-tick timer (1 in-game Minecraft Day) begins ticking down in the mother's persistent data.
- Pasture Care During Pregnancy:
- If the mother spends her pregnancy in an Enriched Pasture with hay bales, water cauldrons, and shelter, she continuously accumulates Prenatal Vitality Points.
- If the mother is starved, trapped in a 1x1 pit, or overcrowded, prenatal vitality points decay.
- Delivery: When the countdown reaches
0, the mother delivers her offspring. If prenatal points exceed the threshold, the baby is born with shimmering greenHAPPY_VILLAGERsparkles and receives Prenatal Vitality.
🧮 Mathematical Formulas & Stat Inheritance
1. Gestation Countdown Progression
On each server tick ($20\text{ ticks} = 1\text{s}$):
$$T_{\text{remaining}} = T_{\text{remaining}} - 1$$
When $T_{\text{remaining}} \le 0$, deliverOffspring(mother, fatherLineage) executes.
2. Prenatal Vitality Buff Calculation
When born from a well-nourished mother ($\text{vitalityScore} \ge 80$):
$$\text{MaxHealth}_{\text{offspring}} = \text{BaseHealth} \times 1.15$$
$$\text{MovementSpeed}_{\text{offspring}} = \text{BaseSpeed} \times 1.10$$
$$\text{Scale}_{\text{offspring}} = \min(\text{InheritedScale} \times 1.10, \text{max_scale})$$
[Conception: 24,000 Ticks]
│
▼ (Daylight Grazing)
Enriched Pasture Active? ──Yes──► [+1 Vitality Point / 200 ticks]
│ No
Cramped Pen / Starved? ──Yes──► [-1 Vitality Point / 200 ticks]
│
▼ (Delivery at 0 Ticks)
Vitality >= 80 Points?
├── Yes ──► [Offspring receives +15% HP, +10% Speed, +10% Scale]
└── No ──► [Standard Base Offspring]💻 Developer & NBT / CustomData Schema
Persistent Pregnancy Attachment
Gestation data is stored in the entity's persistent custom data:
{
"NaturalReproduction": {
"IsPregnant": true,
"GestationTicks": 14200,
"PrenatalVitality": 92,
"FatherUUID": "c044d03e-8302-4212-9214-7d52ef7ca241"
}
}Programmatic Gestation API
// Check if an animal is pregnant
boolean pregnant = AnimalGestationHelper.isPregnant(animal);
// Query remaining gestation time
int remainingTicks = AnimalGestationHelper.getRemainingGestation(animal);☕ 開発サポート: このMODを気に入っていただけましたら、ぜひ Ko-fi で作者をご支援いただき、最新テストビルドをいち早くお試しください!
