Skip to content

🦇 コウモリの生態、走光忌避と昼間休息メカニクス ​

📌 リポジトリソースコードに関する免責事項: 本Wikiドキュメントはリポジトリの最新ソースコード状態を反映しており、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

☕ 個人開発者ノート: 3D BOIDsによるコウモリのリアルな群飛やグアノによる作物施肥を気に入っていただけたら、ぜひ 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: 3D BOIDs群飛と物理計算 | グアノ生成と作物施肥

Official documentation & web portal for Dasik Igaijinn mods.