🦇 Génération ambiante et modificateurs de poids
📌 Clause de non-responsabilité relative au code source : La documentation de ce Wiki reflète l'état actuel du code source dans le dépôt, incluant d'éventuels commits récents non publiés sur CurseForge ou 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) |
☕ Note du développeur: Si vous appréciez les nuées de chauves-souris en 3D réaliste fertilisant vos cultures avec leur guano, soutenez mon travail sur Ko-fi !
🌲 Apparition nocturne en surface
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.
🕳️ Remplacement dynamique des poids en caverne
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: Règles GameRules dynamiques | Écologie et perchoirs diurnes
