Skip to content

🥚 Dedicated Chicken Reproduction & Fertilized Eggs

NOTE

📌 代碼倉庫源碼狀態免責聲明:本 Wiki 文件反映了代碼倉庫中的當前源碼狀態v1.3.4+26.2)。可能包含領先於 CurseForge 與 Modrinth 公開發布版本的最新未發布提交或開發特性。


📋 System Infobox

PropertyValue
Feature NameDedicated Avian Reproduction System
Fertilized Eggs Togglenatural-reproduction:fertilized_chicken_eggs (Default: true)
Infertile Regular Eggsnatural-reproduction:chicken_infertile_regular_eggs (Default: true)
Autonomous Mating Split50% Immediate Chick / 50% Fertilized Egg Item
Player Throw Hatch Rate100% Guaranteed Hatch
Dispenser Hatch Ratenatural-reproduction:dispenser_egg_hatch_chance (Default: 75%)
Vanilla Regular Egg HatchReduced to 1/64 ($1.56%$) Miracle Hatch
Primary HelperChickenEggHelper.java, ThrownEggMixin.java

🎮 Player & Survival Gameplay Workflow

  1. Egg Collection vs. Breeding:
    • Chickens laying regular eggs every 5–10 minutes produce Unfertilized Eggs (safe for baking cakes and pies without accidental chick explosions).
  2. Autonomous Chicken Mating:
    • When adult chickens mate autonomously in grassy pastures or near seed crops, they roll a 50/50 chance to either hatch an immediate baby chick or drop a Fertilized Egg entity item.
  3. Manual Player Incubation:
    • Right-clicking (throwing) a Fertilized Egg provides a guaranteed 100% hatch rate for a healthy chick.
  4. Automated Hatcheries (Dispensers):
    • Loading Fertilized Eggs into redstone Dispensers fires eggs with a 75% hatch rate, allowing high-throughput automated farm designs.

🧮 Mathematical Probabilities & Dispersion Matrix

1. Autonomous Mating Distribution

When two chickens complete a breeding cycle:

$$R = \text{random.nextFloat}()$$

$$\text{Outcome} = \begin{cases} \text{Instant Baby Chick} & \text{if } R < 0.50 \ \text{Fertilized Egg Item Drop} & \text{if } R \ge 0.50 \end{cases}$$

2. Egg Hatch Comparison Table

Egg TypeDelivery MethodHatch ChanceOffspring Quality
Fertilized EggPlayer Throw100% (1/1)Inherits parent scale & genetics
Fertilized EggDispenser Ejection75% (3/4)Inherits parent scale & genetics
Regular EggPlayer Throw / Dispenser1.56% (1/64)Random baseline vanilla stats
              [Chicken Breeding Cycle]

           ┌─────────────┴─────────────┐
           ▼ (50% Chance)              ▼ (50% Chance)
  [Immediate Baby Chick]       [Fertilized Egg Item]

                         ┌─────────────┴─────────────┐
                         ▼ Player Throw              ▼ Dispenser Ejection
                       100% Hatch                  75% Hatch Rate

💻 Developer & Mixin Hooks

Mixin Interception on Egg Impact

ThrownEggMixin intercepts onHitEntity and onHitBlock:

java
// Intercept thrown egg impact to check for Fertilized Egg CustomData
@Inject(method = "onHit", at = @At("HEAD"), cancellable = true)
private void naturalreproduction$onEggImpact(HitResult hitResult, CallbackInfo ci) {
    if (ChickenEggHelper.isFertilizedEgg(this)) {
        ChickenEggHelper.handleFertilizedEggImpact(this, this.level(), hitResult);
        ci.cancel();
    }
}

支持模組開發:如果您喜歡本模組,歡迎前往 Ko-fi 支持作者獲取最新開發測試組建!


Official documentation & web portal for Dasik Igaijinn mods.