🦇 Ecologia dos morcegos, fotofobia e poleiros diurnos
📌 Aviso sobre o Código-Fonte do Repositório: A documentação desta Wiki reflete o estado atual do código-fonte no repositório, podendo incluir commits recentes ou recursos em desenvolvimento não lançados no CurseForge ou Modrinth.
| Feature Parameter | Specification Details |
|---|---|
| Primary AI Goal Class | net.vanillaoutsider.betterbats.ai.BatSleepGoal |
| Roost Validator Class | net.vanillaoutsider.betterbats.ai.BatRoostHelper |
| Daytime Sky Light Limit | Sky Light == 0 |
| Daytime Block Light Limit | Block Light <= 7 |
| Roost Search Radius | 16 blocks (Horizontal) / 10 blocks (Vertical) |
| Cluster Preference | Prefers roosting within 5x3x5 blocks of existing resting bats |
| Supported Roost Surfaces | Solid ceilings, stalactites, lanterns, chains, fences, walls, leaves |
☕ Nota do desenvolvedor: Se você gosta dos morcegos em revoadas 3D realistas e fertilizando plantações com guano, apoie meu trabalho solo no Ko-fi!
☀️ Mecânica de fotofobia diurna
When the sun rises in the Overworld (world.isDay()), bats activate photophobia. Bats will refuse to remain in exposed areas where daylight reaches (Sky Light > 0). Instead, they search for dark subterranean caverns or dense overhangs (Sky Light == 0 and Block Light <= 7).
🪨 Superfícies válidas de poleiro
BatRoostHelper dynamically evaluates ceiling blocks suitable for inverted hanging:
- Pointed dripstone tips (
#minecraft:pointed_dripstone). - Ceiling-mounted chains (
minecraft:chain) and iron bars. - Lantern bases (
minecraft:lantern,minecraft:soul_lantern). - Leaves in dark forest canopies.
- Any solid opaque block underside with clear air underneath.
Next: Revoadas 3D BOIDs e física | Produção de guano e adubo
