🧬 动物遗传学与性状继承
📌 代码仓库源码免责声明:本维基文档反映了仓库当前的源代码状态,可能包含领先于 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}})$$
