Перейти к содержимому
Mineforgian

VO: Better Bats

Better Bats overhauls the vanilla Bat into a dynamic, ecosystem-driven entity with swarming behaviors, guano fertilization, and pest control mechanics. Built for Minecraft 26.1+ with DasikLibrary integration.

Загрузки
1K
Подписчики
9
Обновлён
9 августа 2026 г.
Лицензия
GPL-3.0-or-later

Опубликован 19 апреля 2026 г.

Better Bats Banner

Requires Fabric API Java 25 License Minecraft 26.2+

🦇 Better Bats

Active Version Policy: I build 1 JAR for 1 Version. I only update and maintain the latest active Minecraft version (e.g. when 26.3 is released, 26.2 is retired). No backports or legacy version maintenance. Please do not ask.

The Vanilla Problem: In vanilla Minecraft, bats are purely cosmetic, chaotic, ambient entities that offer no interactive value to the player's world. They fly aimlessly, spawn in complete darkness, and drop absolutely nothing, rendering them essentially useless.

Better Bats changes this foundation. It integrates bats into the ecosystem as active, social, and symbiotic neighbors. They group into coordinated swarms, seek shelter from the sun, fertilize crops with guano, hunt insect pests, circle lanterns like moths, flee from natural predators, roost beneath stalactites and chains, and panic dynamically when loud events disrupt their sleep.


🔥 Features

🐝 Hive Mind (Social Swarms / Murmuration)

Bats no longer fly in erratic, individual patterns. They organize into coordinated, leaderless swarms (murmurations) using a true Boids flocking algorithm. Each bat behaves independently — adjusting its flight to stick close to, align with, and avoid colliding with its immediate neighbors. No leader, no hierarchy, just emergent organic behavior.

[!NOTE] Boids Steering: Swarm flight is powered by a true leaderless Boids murmuration algorithm.
Flocking Range: 12 blocks — Cohesion, alignment, and separation steer bats naturally.

💩 Guano Fertility (Natural Growth)

While roosting upside down in the dark, bats slowly accumulate guano. Once the accumulation threshold is met (~10 minutes by default), they drop guano to fertilize soil and crops far below. You'll see vanilla bone meal particles and a burst of green Happy Villager particles when a crop is fertilized, plus drifting Mycelium particles falling from the roost to show guano dropping.

[!TIP] Farmland Enrichment: If a bat roosts above crops, it scans up to 20 blocks down to apply a bone meal growth tick — with full visual and audio feedback.

🦴 Physical Guano Harvest

Want to build a guano collector tower? Enable the bat_drop_guano_item GameRule and roosting bats will drop physical Bone Meal item entities when resting over non-farmland blocks or when crops below are fully grown. Collect guano as a renewable resource!

[!TIP] GameRule: bat_drop_guano_item (Default: false). Enable it to turn bats into a passive bone meal farm.

🪔 Phototaxis (The Moth Effect)

During the night, bats are attracted to bright artificial light sources like moths. They break from their swarms and fly towards lanterns using a curved banking approach, then circle the light source with a vertical sine-wave bobbing pattern. After 10-30 seconds, they drop interest, go on cooldown, and eventually discover a new lantern — no more getting permanently stuck to one light.

[!NOTE] Insect Feeding: Bats circle light sources with brightness >8, emitting crit particles to represent feeding on attracted insects.

🦟 Pest Control (Symbiotic Defense)

Bats are natural allies in pest management. They will aggressively dive-bomb and one-shot crawling pests that enter their vicinity.

[!TIP] Predatory Prey: Bats target Silverfish and Endermites in a 10-block radius and instantly defeat them.

😱 Acoustic Panic

Caves are quiet for a reason. Loud noises (sprinting players, block mining, explosions) nearby will wake sleeping bat swarms instantly, sending them into a frantic, high-speed scatter — resetting their guano timers and dispersing the flock.

[!WARNING] Sleep Interruption: Noise events within 16 blocks trigger immediate panic flight and clear the bat's flocking state.

🐱 Predator Avoidance

Bats are aware of their natural predators. They constantly scan for Cats, Ocelots, and Phantoms within a 10-block radius. Roosting bats wake up immediately and panic when predators approach, while flying bats receive a strong directional flee steering vector pushing them away from danger.

[!WARNING] Natural Predators: Cats, Ocelots, and Phantoms within 10 blocks trigger an immediate flee response. Keep a cat nearby to deter bats from an area!

🏠 Expanded Roosting

Bats can now roost upside down beneath far more than just solid ceilings. Supported roost surfaces include:

  • Pointed Dripstone (stalactites hanging down)
  • Hanging Lanterns
  • Iron Chains
  • Fences and Walls
  • Tree Leaves
  • Any block with a sturdy bottom face (slabs, stairs, etc.)

🌅 Twilight Funneling

At dusk (12000-14000 ticks) and dawn (22000-24000 ticks), the Boids parameters shift dramatically: alignment and cohesion increase 2.5× while separation drops 60%. This causes bats to stream together in tight formation when entering or leaving caves — creating a dramatic visual swarming effect at twilight.

✈️ Smooth Flight Engine

The flight system has been completely re-engineered for organic, natural movement:

  • Smooth 3-Axis Rotation: Turns use Mth.approachDegrees lerping (max 12° per tick) instead of instant 90° snapping
  • Hard Altitude Cap: Bats can never fly more than 30 blocks above the terrain surface
  • Nighttime Comfort Zone: At night, bats stay within a 5-20 block band above terrain
  • Minimum Flight Speed: Active flying bats maintain at least 0.15 blocks/tick — no mid-air hovering
  • Ground/Water/Ceiling Avoidance: Continuous scanning prevents crashes, drowning, and ceiling collisions
  • Two-Phase Daytime Return: High-altitude bats first descend to near-surface, then probe for dark cave spots

🎮 Multiplayer

Better Bats is fully compatible with multiplayer environments. The flocking, guano, predator, and roosting algorithms run entirely server-side, ensuring vanilla clients can connect without issues.


🔄 Behavior Scenarios

Here is how bats naturally react in various environmental and player-driven scenarios:

  • Daytime in Caves: Bats steer towards dark areas (lowest sky light) to find deep cave pockets. If they find a suitable ceiling (or stalactite, chain, lantern, etc.), they will roost and start producing guano.
  • Daylight Avoidance: If bats get near a cave exit during the day, the sky light steering force will guide them back into the dark interior.
  • Nighttime Exploration: At night, their preference reverses, steering them towards the highest sky light. Roosting bats will wake up and fly out of cave mouths to swarm under the open night sky.
  • Twilight Streaming: At dusk and dawn, bats stream together in tight formation — alignment and cohesion surge while separation drops, creating dramatic cave-exit and cave-entry swarms.
  • Murmuration Merging: When solitary bats fly near each other, they seamlessly merge into a cohesive murmuring flock due to cohesion and alignment forces.
  • Expanded Roosting: Bats hang from stalactites, chains, hanging lanterns, fences, walls, leaves, and any block with a sturdy bottom face — not just solid ceilings.
  • Guano Collection: With bat_drop_guano_item enabled, roosting bats drop physical Bone Meal items that can be collected via hoppers or other automation.
  • Water & Ground Avoidance: Bats constantly scan below and apply an upward steering force to avoid falling, crashing, or drowning in water.
  • Acoustic Panic: Loud noises (mining, player sprinting, explosions) wake resting bats, forcing them to scatter in panic before eventually regrouping.
  • Predator Evasion: Cats, ocelots, and phantoms within 10 blocks trigger an immediate flee response. Place a cat near your crops to keep bats away!
  • Predation (Silverfish/Endermites): Bats will swoop down from their flock to eliminate nearby Silverfish and Endermites, then rejoin the murmuration.
  • Artificial Light Attraction: At night, bats are drawn to lanterns (brightness >8) to hunt bugs, circling with curved banking and vertical bobbing before eventually losing interest and finding a new light source.

⚙️ Config

[!IMPORTANT] Config vs. In-Game GameRules: The global configuration file only defines default values for new worlds at creation time. If you have already created/opened a world, changing the config file will have no effect. You must change the settings in-game using the Edit Game Rules UI screen or the /gamerule command.

The mod works out of the box with zero setup.

  • Global Template: config/better-bats.json (Sets defaults for new worlds)
  • In-Game: Use /gamerule [rule_name] for core settings:
    • bat_swarm_size: Max bats allowed in a single flock. (Default: 5)
    • bat_guano_threshold: Ticks required for a roosting bat to drop guano. (Default: 12000)
    • bat_pest_control: Enables/disables hunting of silverfish and endermites. (Default: true)
    • bat_drop_guano_item: If true, roosting bats drop physical Bone Meal items. (Default: false)
    • bat_alignment: Strength of matching velocity direction with the swarm (0-100). (Default: 5)
    • bat_cohesion: Strength of pull towards the swarm's center of mass (0-100). (Default: 5)
    • bat_separation: Strength of collision avoidance from neighboring bats (0-100). (Default: 10)
    • bat_spawn_weight: Spawn weight of bats relative to vanilla (0-100). (Default: 30)

[!IMPORTANT] Recommended Mod: Since this mod generates 8 GameRules, it is highly recommended to use Collapsible Game Rules for a cleaner UI.


🧩 Suggested Mods

For the best experience, we recommend installing:


📦 Installation & Environment

⚛️ Environment Support

  • Client-side only: All functionality is done client-side and is compatible with vanilla servers.
  • Server-side only: All functionality is done server-side and is compatible with vanilla clients.
    • Works in singleplayer too
    • Dedicated server only
  • Client and server: Has some functionality on both the client and server.

📥 Install Instructions

  1. Install Fabric API.
  2. Install DasikLibrary.
  3. Download the latest Better Bats JAR for your Minecraft version and place it in your mods folder.

🔗 Compatibility

Feature Fabric (26.2+)
Singleplayer
Multiplayer (LAN/Server)
VO: Better Dogs
Empty Dimensions

❤ Support

If you enjoy Better Bats and the Vanilla Outsider philosophy, consider fueling the next update with a coffee!

Ko-fi SocioBuzz Saweria

[!NOTE] Indonesian Users: SocioBuzz and Saweria support local payment methods (Gopay, OVO, Dana, etc.) if you want to support me without using PayPal/Ko-fi!


👤 Credits

Role Author
Creator Dasik (Rifaditya)
Collection Vanilla Outsider
License GNU GPLv3

[!IMPORTANT] This mod is part of the Vanilla Outsider collection. You are free to use it in modpacks, videos, and servers.

[!IMPORTANT] Modpack Permissions: You are free to include this mod in modpacks, provided the modpack is hosted on the same platform (e.g. Modrinth).

Cross-platform distribution is not permitted. If you download this mod from Modrinth, your modpack must also be published on Modrinth.


Made with ❤️ for the Minecraft community

Part of the Vanilla Outsider Collection

Ченджлог

1.1.24+26.2Релиз26.2 · 9 августа 2026 г.

[1.1.24+26.2] - 2026-08-09

Fixed & Optimized

  • Performance: Throttled resting predator entity lookup (level.getEntitiesOfClass(...)) to once every 20 ticks (1 sec) instead of every tick while bats are roosting, eliminating unnecessary AABB allocations during long sleep cycles.
  • Build Infrastructure: Updated org.gradle.java.home configuration in gradle.properties to align with JDK 25 path requirements (E:/JDK25).

[1.1.23+26.2] - 2026-08-01

Added

  • Animal Genetics API Integration: Integrated DasikAnimalGeneticsAPI and GeneticsEngine from dasik-library. Bats now possess individual genetic traits:
    • scale: Variable wingspan and entity size scaling (0.75x microbats to 1.30x giant cave bats).
    • movement_speed: Genetic flight speed modifiers.
    • attack_damage: Pest dive-bomb damage scaling against Silverfish and Endermites.

[1.1.22+26.2] - 2026-08-01

Added

  • AI/Ambience & Echolocation: Pitch-Dark Cave Echolocation (Feature 10). Flying bats in total darkness (Sky Light 0, Block Light < 4) periodically emit high-pitched ambient clicks and subtle SCULK_SOUL sonic pulse particles, providing atmospheric cave depth.
  • AI/Roosting: Roost Clustering (Feature 11). Sleep-seeking bats now actively scan for existing resting bats within a 16-block radius and prioritize ceiling blocks adjacent to their roosting peers, forming natural bat colonies hanging from cave ceilings.
  • AI/Weather: Storm Shelter Seeking (Feature 12). Flying bats exposed to open rain or thunderstorms (isRaining() && canSeeSky()) now actively seek dark overhangs, tree canopies, or cave entrances to take shelter and roost until the weather clears.
1.1.17+26.2Релиз26.2 · 22 июля 2026 г.

[1.1.17+26.2] - 2026-07-22

Added

  • Forward Compatibility & Version Guard: Configured fabric.mod.json with "minecraft": ">=26.2-" for open-ended forward compatibility. Added zero-dependency ModVersionGuard check on startup to display human-readable guidance if an incompatible Minecraft API version is encountered.
1.1.16-26.2Релиз26.2 · 15 июля 2026 г.

[1.1.16-26.2] - 2026-06-20

Changed

  • AI/Lantern Circling: "Moth Effect" Overhaul. Bats no longer get permanently stuck to one lantern. They will circle a lantern for 10-30 seconds, drop it, go on cooldown, and eventually discover a new lantern to fly to.
  • AI/Lantern Circling: Flight paths improved. Bats now use a curved banking approach to lanterns, and bob vertically in a sine-wave pattern while circling to mimic real bat flight.
  • AI/Lantern Circling: Replaced custom random probe with native deterministic BlockPos.findClosestMatch for guaranteed light detection within a 10-block radius without RNG misses.
  • AI/Movement: Replaced flat upward/downward steering forces with smoothed parabolic curves (lerping) based on altitude for a more natural flight feel.
  • AI/Movement: Twilight Funneling. At dusk (12000-14000) and dawn (22000-24000), Boids parameters shift dramatically (Alignment/Cohesion up 2.5x, Separation down 60%) to cause bats to stream together closely when entering or leaving caves.
1.1.15-26.1.2Альфа26.2 · 14 июля 2026 г.

[1.1.15-26.2] - 2026-06-19

Fixed

  • AI/Lantern Circling: Lowered light detection threshold from >12 to >8 so bats can detect lanterns within ~7 blocks instead of requiring ~2 blocks proximity.
  • AI/Lantern Circling: Increased approach steering force from 0.05/dist (~0.005/tick) to 0.12 with separated X/Z and Y axes, strong enough to overcome ground avoidance forces.
  • AI/Lantern Circling: Expanded search from 10 probes in 16×8 volume to 25 probes in 24×30 volume with heavy downward bias (-24 to +5 Y), so flying bats can detect light sources on the ground below them.
1.1.14-26.2Альфа26.2 · 13 июля 2026 г.

[1.1.14-26.2] - 2026-06-19

Changed

  • AI/Movement: Added a hard altitude cap — bats can never fly more than 30 blocks above the terrain surface. A proportional downward force is applied when exceeding the cap.
  • AI/Movement: Added a nighttime comfort zone (5–20 blocks above terrain). Bats in open sky at night are gently steered back into this band instead of climbing indefinitely.
  • AI/Movement: Replaced the daytime cave-seeking random probe with a two-phase system: bats first deterministically descend to near-surface level, then switch to a focused 16-block dark-spot probe. This ensures high-altitude bats reliably return to caves during the day.
  • AI/Movement: Nighttime sky-seeking now only activates when the bat is actually underground. Bats already in open sky at night no longer receive upward steering.
1.1.13-26.2Альфа26.2 · 11 июля 2026 г.

[1.1.13-26.2] - 2026-06-19

Changed

  • AI/Movement: Separated horizontal X/Z and vertical Y steering forces during day/night light seeking. This prevents large Y distances (like cave depths) from suppressing horizontal X/Z forces, ensuring bats steer strongly sideways towards cave openings.
1.1.12-26.2Альфа26.2 · 10 июля 2026 г.

[1.1.11-26.2] - 2026-06-19

Added

  • Goal Isolation: Added a goal active flag so that when a bat runs a custom goal (lantern circling, sleep seeking, dive-bombing, or panicking), it skips murmuration/Boids math and day/night environment steering. This prevents Boids from fighting or corrupting the goal's trajectory.
  • AI/Movement: Re-engineered Day/Night light preference steering to scan a wider range (24 blocks). Bats in sunlight will now actively steer and descend (-0.12 Y) towards cave shade/ceilings, and bats in caves at night will actively steer and climb (+0.08 Y) towards sky openings.
1.1.11-26.1.2Альфа26.2 · 8 июля 2026 г.

[1.1.11-26.2] - 2026-06-19

Added

  • Goal Isolation: Added a goal active flag so that when a bat runs a custom goal (lantern circling, sleep seeking, dive-bombing, or panicking), it skips murmuration/Boids math and day/night environment steering. This prevents Boids from fighting or corrupting the goal's trajectory.
  • AI/Movement: Re-engineered Day/Night light preference steering to scan a wider range (24 blocks). Bats in sunlight will now actively steer and descend (-0.12 Y) towards cave shade/ceilings, and bats in caves at night will actively steer and climb (+0.08 Y) towards sky openings.

[1.1.10-26.2] - 2026-06-19

Changed

  • AI/Movement: Softened flocking by introducing a random horizontal wandering force to prevent literal/mechanical Boids steering.
  • AI/Wandering: Enforced a minimum flight speed (0.15 blocks/tick) for active flying bats so they never hover or stop in mid-air.

[1.1.9-26.2] - 2026-06-19

Changed

  • AI/Movement: Replaced the leader-follower hierarchy with a true leaderless BOIDs murmuration model. All bats now run independent local cohesion, alignment, and separation calculations from their neighbors.
  • AI/Wandering: Restored standard vanilla wandering AI as the base individual intent when not influenced by neighbors.

[1.1.8-26.2] - 2026-06-19

Fixed

  • AI/Movement: Fixed follower bats losing AI movement, falling, drowning, and teleporting by overriding distance checks to keep follow leader goal active continuously.
  • Flight Mechanics: Integrated ground/water avoidance, ceiling avoidance, and sky-seeking (night) / cave-seeking (day) light preference steering forces.

Комментарии

Загружаем…