Skip to content
Rifa edited this page Aug 9, 2026 · 1 revision

Dasik Library Wiki

Minecraft Fabric Loader License Version

Welcome to the official technical documentation for Dasik Library, the shared Hive Mind social AI engine, genetics framework, Boids flocking calculator, and dynamic GameRule infrastructure for Fabric Minecraft mods.

๐Ÿ“Œ Repository Source Disclaimer: The documentation in this Wiki reflects the current source code state in the repository, which may include recent unreleased commits or developmental features ahead of public release builds on CurseForge and Modrinth.


๐Ÿ’ก Architectural Philosophy

Dasik Library operates under two core architectural principles:

  1. "Thin Mod, Fat Library": Modular consumer mods focus strictly on entity content and registration. Complex math, tick scheduling, genetic inheritance, Boids steering vector calculations, and NBT state serialization are centralized within Dasik Library.
  2. "One Brain, Many Minds": Centralized pulse execution via GlobalSocialSystem enforces the Highlander Rule (strictly 1 global tick cycle per game tick) to manage thousands of active entities with low performance impact.

๐Ÿ“ฆ Minecraft Versions Directory

  • MC 26.2 Guide โ€” Installation and configuration for Minecraft 26.2+.
  • Version Compatibility โ€” Multi-version compatibility lifecycle matrix (>=26.1.2- to 26.2+), Knot ClassLoader safety, and version guard rules.

๐ŸŽฎ Core Systems & Mechanics Matrix

Explore the complete technical mechanics and configuration guides:

  • Hive Mind Social System โ€” Single-pulse engine, Highlander Rule, $O(1)$ shard-based SocialRegistry, and tick budgets.
  • Social Scheduler & Events โ€” EntitySocialScheduler, dual-track Mood/Ambient execution, PriorityTier, and SocialEventRegistry.
  • Animal Genetics Engine โ€” EntityGenetics attachment, DNA long encoding, size-stats & scale bounds (0.1x - 3.0x), runt indicators, and inheritance math.
  • Genetics API & Pedigree โ€” DasikAnimalGeneticsAPI facade, Kinship & Pedigree family tree calculation, inbreeding risk prediction formulas, and dynamic trait reset/modifiers.
  • Genetics Loot Modifiers โ€” GeneticsLootModifier, GeneticsLootRegistry, and LivingEntityLootMixin drop wrapping logic.
  • Leader Follower & Flocking โ€” GroupMember, FollowLeaderGoal, Aerial & Terrestrial Boids flocking strategies, and GroupParameters weights.
  • Dynamic GameRules Manager โ€” DynamicGameRuleManager, dynamic registration, English translation injection, bold category headers (ยงl), and math helpers (getPct/getChance).
  • GameRule Codec & Serialization โ€” Integer GameRule bounds validation (Integer.MIN_VALUE fallback) preventing SavedDataStorage.encodeUnchecked crashes.
  • Client GameRule & GUI Helpers โ€” ClientGameRuleHelper integrated server lookups, GuiHelper, ConfigHelper atomic JSON swaps, and server crash safety gating.
  • Dynamic Enchantments & Vision โ€” DynamicEnchantmentManager runtime injection, and PlayerVisionTracker raycasting frustum checks.
  • Stochastic & Math Utilities โ€” FastRandom XORSHIFT algorithms, StochasticUtil decile/permille rolls, and TimeUtil tick-to-second ($20\text{ ticks} = 1\text{s}$) conversions.
  • Stale Attribute Purging & Scale โ€” Attribute modifier purging rules, ADD_VALUE -1.0f scale base offset math, and genetics_ modifier safety.
  • ModVersionGuard & Startup Safety โ€” ModVersionGuard Knot ClassLoader safety (Thread.currentThread().getContextClassLoader()), and pre-release startup crash prevention.

๐Ÿ’ป Developer & Technical Reference

  • Developer Setup & Building โ€” JDK 25 prerequisites, Gradle 9.3+, ./gradlew build --no-daemon, and ./gradlew test.
  • Architecture & Package Layout โ€” Complete ASCII package tree (ai, api, config, core, mixin, util) and thread-safety models.
  • Mixin Reference & Hooks โ€” Detailed Mixin breakdown table (LanguageMixin, LivingEntityLootMixin, MobGoalAccessor, PathfinderMobMixin, ProfileTriggerMixin).
  • Behavior Profiles & Conditions โ€” BehaviorProfileManager, BehaviorProfile, BehaviorCondition, ProfileAware, and DefaultProfileBuilder.
  • Consumer Mods Integration Guide โ€” Integration guide and code snippets for consumer mods (Better Dogs, Natural Reproduction, Collapsible Game Rule Screen, Bat Ecology, Ore Amplifier).

๐Ÿ”— External Links

Clone this wiki locally