Skip to content

🦇 蝙蝠生态、避光性与日间栖息 ​

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

Feature ParameterSpecification Details
Primary AI Goal Classnet.vanillaoutsider.betterbats.ai.BatSleepGoal
Roost Validator Classnet.vanillaoutsider.betterbats.ai.BatRoostHelper
Daytime Sky Light LimitSky Light == 0
Daytime Block Light LimitBlock Light <= 7
Roost Search Radius16 blocks (Horizontal) / 10 blocks (Vertical)
Cluster PreferencePrefers roosting within 5x3x5 blocks of existing resting bats
Supported Roost SurfacesSolid ceilings, stalactites, lanterns, chains, fences, walls, leaves

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


☀️ 日间避光机制 ​

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).


🪨 倒吊栖息表面判定 ​

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: 三维群飞与转向数学 | 鸟粪生成与农作物施肥

Official documentation & web portal for Dasik Igaijinn mods.