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.