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

Dasik Library

The core library and API for all Dasik mods, including the Vanilla Outsider collection. You only need this if another mod requires it.

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

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

Requires Fabric API Java License

🧠 Dasik Library

No Backports: This library targets Minecraft 26.2+. Older versions are unsupported.

This is a Core Library / API. It provides shared functionality for my mods (Vanilla Outsider, Instant Gratification, and Delayed Gratification collections). It does nothing on its own.

Dasik Library provides a unified Hive Mind architecture for complex social behaviors. Entities become aware of "Social Events" (Alerts, Moods, Requests) and participate in a global, optimized social scheduler.


✨ Features

📡 The Hive Mind (Global Signal System)

Entities don't just "tick"—they pulse.

  • Unified Scheduler: One centralized system manages social interactions for all supported mods.
  • Performance Optimized: Uses a "Highlander" pattern ensuring logic only runs once per tick, even if 100 mods use the library.

🎭 Social Events Registry

A standardized way for entities to communicate.

  • Tracks: Events are categorized (e.g., Mood (High Priority), Ambient (Low Priority)).
  • Lazy Freeze: The registry respects mod loading order but locks down tight for stabilization once the world loads.

[!NOTE] Developer Note: This library solves the "Mod Initialization Race Condition" using the Lazy Freeze Pattern. You can register events safely in your onInitialize, and the system won't lock until ServerTick.

🤝 Inter-Mod Compat

  • Better Dogs: Uses Dasik to handle Pack mechanics, howling, and wild wolf leader-follower logic.
  • MCA Female Gender Bridge: Integrates genetics & breeding physics solvers.
  • Collapsible Game Rule Screen: Utilizes dynamic GameRule registration and localization helpers.

🐺 Leader-Follower API (Cached Boids)

The most advanced flocking API in the Fabric ecosystem.

  • Cached Boids Pattern: Supports massive swarms (100+ entities) with minimal CPU usage by pre-calculating group data on the Leader.
  • Biomechanical Logic: Alignment, Cohesion, and Separation steering for organic movement.
  • Minecraft 26.2+ Native: Fully utilizes native 26.2+ entity attributes and dynamic GameRule registration.

📦 Install

  1. Install Fabric API.
  2. Download dasik-library-1.8.5.jar (or latest) and place it in your mods folder.
  3. Required by all Vanilla Outsider, Instant Gratification, and Delayed Gratification mods.

☕ Support

If you enjoy the ecosystem, consider fueling the next update!

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 / Instant Gratification / Delayed Gratification
License LGPLv3

[!IMPORTANT] 📦 Modpack Permissions: You are free to include this mod in any modpack on any platform. However, the mod itself must be downloaded from its official distribution pages on Modrinth or CurseForge. Re-uploading or redistributing the mod jar file to third-party sites is strictly prohibited unless explicitly permitted by the creator.


Made with ❤️ for the Minecraft community

Part of the Vanilla Outsider Collection

Ченджлог

1.8.16Релиз26.1.2, 26.2 · 15 августа 2026 г.

[1.8.16] - 2026-08-14

Fixed

  • SignalBus SAME_SPECIES ClassCastException Crash: Fixed SignalBus.shouldReceive to safely verify source instanceof SocialEntity socialSource via pattern matching before evaluating species ID equivalence. Prevents fatal server crashes when non-SocialEntity actors (such as players) emit social signals under Scope.SAME_SPECIES.
1.8.15Релиз26.1.2, 26.2, 26.3-snapshot-7 · 8 августа 2026 г.

[1.8.15] - 2026-08-08

Fixed

  • GameRule Codec Bounds Crash Fix: Updated DynamicGameRuleManager IntegerBuilder so min defaults to Integer.MIN_VALUE (or Math.min(Integer.MIN_VALUE, defaultValue)). Prevents SavedDataStorage.encodeUnchecked from throwing IllegalStateException when serializing game_rules.dat on world save for integer GameRules containing negative values.

[1.8.14] - 2026-08-08

Fixed

  • Category-Only Bold Formatting Isolation: Restricted §l bold formatting exclusively to category header entries (gamerule.category...), removing un-intended bolding from individual GameRule display names (e.g. Instant Gratification ore rules).

[1.8.13] - 2026-08-07

Fixed & Added

  • GameRule Category Header Bold Formatting: Updated registerCategory in DynamicGameRuleManager to inject bolded (§l) category translation entries into GENERATED_TRANSLATIONS for category titles (e.g. Natural Reproduction (9 rules)).

[1.8.12] - 2026-08-07

Added

  • Bold GameRule Title Formatting: Added §l formatting code to DynamicGameRuleManager.generateReadableName so all dynamically registered GameRule display names appear bolded in vanilla and modded GameRule menus.

[1.8.11] - 2026-08-07

Fixed

  • Stale Attribute Modifier Purging: Fixed giant animal scale bug by actively purging all legacy and duplicate genetics_ / mod-related attribute modifiers before applying new genetics modifiers in GeneticsEngine.applyGeneticsModifiers and resetGenetics.

[1.8.10] - 2026-08-07

Fixed

  • Scale Attribute Base Offset Calculation: Fixed GeneticsEngine.applyGeneticsModifiers to subtract 1.0f from the modifier value when applying ADD_VALUE attribute modifiers for scale / minecraft:scale. Prevents base scale 1.0 from adding +1.0 (rendering 200% giant entities).
  • Expanded Scale API Bounds: Updated DasikAnimalGeneticsAPI.getScale and setScale clamp range from [0.5f, 2.0f] to [0.1f, 3.0f] to support dynamic custom scale configurations.
1.8.9Релиз26.1.2, 26.2, 26.3-snapshot-6 · 1 августа 2026 г.

[1.8.9] - 2026-08-01

Fixed

  • Minecraft 26.1.2 Compatibility: Adjusted fabric.mod.json dependency bounds to "minecraft": ">=26.1.2-" to ensure dasik-library loads seamlessly on both MC 26.1.2 and MC 26.2+.
  • ModVersionGuard Class Check: Updated ModVersionGuard.checkClass in DasikLibraryMod to check "net.minecraft.world.entity.EntityType" (present on 26.1.2 and 26.2+) instead of EntityTypes (introduced in 26.2). Resolves GitHub issue #1.
1.8.4Релиз26.3-snapshot-3, 26.3-snapshot-4, 26.3-snapshot-5 · 22 июля 2026 г.

[1.8.4] - 2026-07-22

⚠️ Version Guard Notice

  • Includes zero-dependency ModVersionGuard pre-release protection. Halts startup with an explicit warning banner if run on incompatible Minecraft drops or missing core dependencies (fabric-api) to prevent world save corruption.

Fixed

  • ModVersionGuard ClassLoader Patch: Updated ModVersionGuard.java to resolve target classes via Thread.currentThread().getContextClassLoader() for Knot ClassLoader integration during startup.
1.8.3Релиз26.3-snapshot-2, 26.3-snapshot-3, 26.3-snapshot-4 · 11 июля 2026 г.

[1.8.3] - 2026-07-11

Added

  • Size-Stats Genetics API: Introduced a high-level builder SizeStatsBuilder to easily configure genetics-based physical size scaling mapped to vanilla minecraft:scale.
  • Linked Attribute Modifiers: Added LinkedAttributeRegistry, LinkedAttribute, and LinkMode to map genetics traits (like size) to other attributes (e.g., max health, movement speed, attack damage) with automatic proportional, inverse, or squared scaling.
  • GeneticsEngine Integration: Refactored GeneticsEngine.applyGeneticsModifiers to apply linked modifiers automatically, preserving full backward compatibility with existing TraitConfigs.
1.8.2Релиз26.2-rc-1, 26.2-rc-2, 26.2 · 6 июня 2026 г.

[1.8.2] - 2026-06-06

Added

  • GuiHelper API: Introduced net.dasik.social.api.config.GuiHelper dynamic configuration screen resolver utilizing classloader isolation and reflection to prevent dedicated server crashes.
1.8.1Релиз26.2-pre-2, 26.2-pre-3, 26.2-pre-4 · 5 июня 2026 г.

[1.8.1]

Added

  • Genetics-Based Loot Modification API: Introduced GeneticsLootModifier functional interface and GeneticsLootRegistry mapping EntityType<?> to modifiers.
  • LivingEntityLootMixin: Intercepts LivingEntity.dropFromLootTable using a @ModifyVariable hook to wrap the item stack consumer, allowing registered modifiers to replace, scale, or remove drops dynamically based on entity genetics.

[1.8.0]

Added

  • Genetics & Breeding API: Introduced a generic, entity-agnostic, and attribute-agnostic genetics registry and calculation engine (net.dasik.social.api.genetics).
  • EntityGenetics Attachment: Registered standard persistent Fabric Attachment dasik-library:genetics to track parent UUIDs, inbreeding state, and dynamic trait modifiers across world save cycles.
  • Inbreeding Verification & Outcross Recovery: Added standard calculation formulas for triangular mutations, average inheritance, inbreeding penalties, and genetic outcross recovery.
1.7.4Релиз26.2-pre-1, 26.2-pre-2, 26.2-pre-3 · 29 мая 2026 г.

[1.7.4]

Added

  • Config Helper: Introduced a generic ConfigHelper providing safe configuration loading, saving, atomic temporary file swaps, size-limit checks, version checking, and backup generation to be shared across consumer mods.

[1.7.3]

Added

  • GameRule Helpers: Added getPct, getChance, getProb, and getDecileFloat to DynamicGameRuleManager to centralize math conversions (percentages, permilles, deciles) for GameRule values.

Комментарии

Загружаем…