🦇 Generación ambiental y modificadores de peso
📌 Aviso sobre el código fuente del repositorio: La documentación de esta Wiki refleja el estado actual del código fuente en el repositorio, que puede incluir confirmaciones recientes o características en desarrollo no disponibles aún en CurseForge o Modrinth.
| Parameter | Specification Details |
|---|---|
| Spawn Injector Mixin | net.vanillaoutsider.betterbats.mixin.NaturalSpawnerMixin |
| Surface Spawn Mixin | net.vanillaoutsider.betterbats.mixin.BatMixin.betterbats$onCheckBatSpawnRules |
| Mob Category | MobCategory.AMBIENT |
| Vanilla Base Spawn Weight | 10 |
| Mod Default Weight | 30 (better-bats:bat_spawn_weight) |
| Valid Surface Spawn Block Tag | #minecraft:bats_spawnable_on |
| Surface Spawn Sky Light | Sky Light <= 7 (Nighttime or dark forest cover) |
☕ Nota del desarrollador: Si disfrutas de los murciélagos en bandadas 3D realistas y fertilizando cultivos con guano, ¡apoya mi trabajo en Ko-fi!
🌲 Generación nocturna en superficie
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.
🕳️ Reemplazo dinámico de peso en cuevas
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.
