Skip to content

⚙️ Dynamic GameRules Reference Table ​

Category Identifier: better-bats:better_bats (§lBetter Bats)

Better Bats utilizes DynamicGameRuleManager from DasikLibrary to register dynamic, per-world GameRules that sync seamlessly with client configuration menus while backing live world gameplay logic.


📋 Complete GameRules Matrix ​

GameRule Namespace KeyTypeDefault ValueValid RangeLocalization Display TitleDescription & Behavior
better-bats:bat_swarm_sizeInteger5UnboundedBat Swarm SizeMaximum size of bat flocks. When met, bats stop recruiting new members. Set to 0 to disable flocking.
better-bats:bat_guano_thresholdInteger12000UnboundedGuano Production SpeedTime interval in game ticks required for a resting bat to produce guano/fertilizer ($12000\text{t} = 10\text{min}$). Lower is faster.
better-bats:bat_pest_controlBooleantruetrue/falseEnable Pest ControlIf true, bats aggressively dive-bomb, target, and defeat Silverfish and Endermites.
better-bats:bat_alignmentInteger50 to 100Bat Alignment WeightScale factor dictating how strongly bats match velocity and flight heading of nearby flock members.
better-bats:bat_cohesionInteger50 to 100Bat Cohesion WeightScale factor dictating how strongly bats are drawn toward the center of mass of their flock.
better-bats:bat_separationInteger100 to 100Bat Separation WeightScale factor controlling how aggressively bats avoid collision and push away from neighbors.
better-bats:bat_spawn_weightInteger300 to 100Bat Spawn WeightAmbient spawn weight in dark surface/cave settings (Vanilla is 10). Set to 0 to disable bat spawning entirely.
better-bats:bat_drop_guano_itemBooleanfalsetrue/falseDrop Guano ItemsIf true, resting bats drop physical Bone Meal item entities over non-farmland blocks or fully grown crops.

💻 In-Game Command Execution Examples ​

Server operators and singleplayer players can modify any GameRule live in-game using standard vanilla Brigadier /gamerule commands:

mcfunction
# Set bat flock size limit to 10
/gamerule better-bats:bat_swarm_size 10

# Accelerate guano production to every 2 minutes (2400 ticks)
/gamerule better-bats:bat_guano_threshold 2400

# Enable physical bone meal item drops
/gamerule better-bats:bat_drop_guano_item true

# Query active bat spawn weight
/gamerule better-bats:bat_spawn_weight

⚠️ Configuration Sync Warning ​

⚠️ GameRule vs Config Sync Note: Values modified in .minecraft/config/better-bats.json set baseline defaults for NEW WORLDS ONLY. Existing active worlds read and store their values directly inside the world's level.dat GameRule container. To reconfigure an existing world, use /gamerule or the in-game Collapsible Game Rule Screen.


Official documentation & web portal for Dasik Igaijinn mods.