🧬 動物遺傳學與性狀繼承
📌 代碼倉庫原始碼免責聲明:本維基文件反映了倉庫當前的原始碼狀態,可能包含領先於 CurseForge 與 Modrinth 上公開發布版本的最新開發提交或未發布功能。
| Trait Key | Target Attribute | Modifier Operation | Default Base | Min Bound | Max Bound | Mutation Rule |
|---|---|---|---|---|---|---|
scale | minecraft:generic.scale | ADD_VALUE | 0.0f | 0.75f | 1.30f | uniform(0.75f, 1.30f) |
movement_speed | minecraft:generic.movement_speed | ADD_MULTIPLIED_BASE | 0.0f | -0.04f | 0.08f | uniform(-0.04f, 0.08f) |
attack_damage | minecraft:generic.attack_damage | ADD_VALUE | 0.0f | 1.0f | 4.0f | uniform(1.0f, 4.0f) |
☕ 獨立開發者寄語:如果你喜歡蝙蝠逼真的三維群飛和鳥糞為莊稼施肥的生態體驗,歡迎在 Ko-fi 上支持我的獨立開發!
🧬 遺傳基因註冊與屬性修飾符
Better Bats leverages the standalone genetics engine from DasikLibrary (DasikAnimalGeneticsAPI). When a bat spawns, individual alleles are generated within continuous Gaussian or uniform intervals. Wingspans visibly vary from tiny micro-bats ($0.75\times$) to giant fruit-bat silhouettes ($1.30\times$), with corresponding flight speed and attack damage attributes scaling proportionately.
📊 性狀範圍與變異規律
$$\text{Wingspan Scale} = 1.0 + \Delta_{\text{gene}} \quad (\Delta \in [-0.25, +0.30])$$ $$\text{Effective Speed} = V_{\text{base}} \times (1.0 + M_{\text{speed}})$$
