← Назад к ресурсам

CoryLib

Unified data storage and synchronization library for Minecraft mods. ⚙️

Modrinth library utility

Описание

# CoryLib⚡ **A Minecraft Library for unified data storage and synchronization library for Minecraft mods.** > Designed for mods that need a clean way to store, retrieve, version, and synchronize data across server, dimension, player, and client contexts. ![line](https://cdn.modrinth.com/data/cached_images/be5716eb4df8c4a1e89155a6c0727ddb64cf6bb9_0.webp) ## So, why CoryLib? 🤷‍♂️ Minecraft mods often reimplement the same data systems over and over: - Dimension-specific state - Client preferences - Server-to-client sync - Runtime-only transient data **So CoryLib provides one fluent API for all of those cases.** ``` public static final CoryContext DATA = CoryData.init("my_mod"); public static final DataEntry KILLS = DATA.player("kills", Codec.INT) .defaultValue(0) .storage(Storage.DISK) .version(1) .sync(SyncTrigger.IMMEDIATE) .build(); ``` You can check the repository for details and guides. ![line](https://cdn.modrinth.com/data/cached_images/be5716eb4df8c4a1e89155a6c0727ddb64cf6bb9_0.webp) You can support by simply downloading the mod or donating me! Thanks if you do! 💕 ``` This was made by devs, to devs ❤️ ```