Skip to content

🦇 环境自然生成与权重调节 ​

📌 代码仓库源码免责声明:本维基文档反映了仓库当前的源代码状态,可能包含领先于 CurseForge 与 Modrinth 上公开发布版本的最新开发提交或未发布功能。

ParameterSpecification Details
Spawn Injector Mixinnet.vanillaoutsider.betterbats.mixin.NaturalSpawnerMixin
Surface Spawn Mixinnet.vanillaoutsider.betterbats.mixin.BatMixin.betterbats$onCheckBatSpawnRules
Mob CategoryMobCategory.AMBIENT
Vanilla Base Spawn Weight10
Mod Default Weight30 (better-bats:bat_spawn_weight)
Valid Surface Spawn Block Tag#minecraft:bats_spawnable_on
Surface Spawn Sky LightSky Light <= 7 (Nighttime or dark forest cover)

☕ 独立开发者寄语:如果你喜欢蝙蝠逼真的三维群飞和鸟粪为庄稼施肥的生态体验,欢迎在 Ko-fi 上支持我的独立开发!


🌲 地表夜间生成机制 ​

In vanilla Minecraft, bats are restricted almost exclusively to dark underground depths. Better Bats extends spawning to the surface world during nighttime hours (Sky Light <= 7) over natural surface blocks (grass, leaves, stone), introducing twilight swarms outside caves.


🕳️ 洞穴生成权重动态替换 ​

The ambient spawner weight dynamically scales via better-bats:bat_spawn_weight:

$$P_{\text{spawn}} = \frac{W_{\text{bat}}}{\sum W_{\text{ambient}}}$$

Where $W_{\text{bat}}$ defaults to 30 (3x vanilla density), configurable without restarting the server.


Next: 动态游戏规则参考表 | 蝙蝠生态与日间栖息

Official documentation & web portal for Dasik Igaijinn mods.