跳到正文

Shaolib

作者:Rew1nd

Shaolib is a high-performance library mod designed to optimize projectile entity handling in Minecraft

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Shaolib Core

Shaolib Core is a NeoForge library mod that provides a high-performance chunk cache, fast world-query utilities, and a lightweight projectile framework for simulation-heavy mods.

High-performance Chunk Cache

Shaolib Core maintains compact, query-friendly snapshots of chunk data so other mods can sample blocks, heights, and cached world state without repeatedly walking live world data. Its cache APIs expose freshness and source information, allowing callers to distinguish live-world reads, memory-cache hits, stale cached results, and unavailable data.

This makes it useful for raycasts, collision checks, terrain-aware simulation, guidance logic, server-side prediction, and other systems that need many world queries per tick.

Projectile Framework

Shaolib Core also includes a flexible projectile runtime for advanced projectile systems. Instead of forcing every projectile to be modeled as a normal Minecraft entity first, it provides lightweight projectile instances with typed state, motion models, synchronized data, server-side contexts, sweep/collision helpers, and chunk-loading policy hooks.

Addon mods can build their own projectile behavior on top of this shared runtime: spawning, ticking, sweeping through the world, syncing state to clients, and resolving block or body hits can all use the same infrastructure while each projectile keeps its own gameplay logic.

For Mod Developers

Shaolib Core is primarily a dependency/library mod. On its own, it focuses on infrastructure rather than large amounts of player-facing content. Other mods can use it to implement high-speed munitions, custom raycasts, physics-body interactions, cache-backed terrain queries, and other performance-sensitive simulation features.

常见问题

Shaolib 支持哪些 Minecraft 版本?

Shaolib 支持 Minecraft Java 版 1.20.1–1.21.1,共 2 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

Shaolib 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

Rew1nd 的其他作品

查看全部 →