跳到正文

DoxCore

作者:Doxa97

Shared library for Dox mods — soft-link APIs so they mesh without hard dependencies.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。
### Short description
DoxCore is the shared library the Dox mod suite is built on. It contains **no gameplay** by itself — only small “soft-link” contracts that let the other mods detect and mesh with each other at runtime **without hard dependencies**. Install it because another Dox mod requires it.

### What it provides
– **Part-hit soft-link** — a way for a hitbox engine to publish “which body part was hit” and for damage/health mods to read it (falls back gracefully when absent).
– **Pose soft-link** — lean angle & hold-breath state that gun-integration code can read, so lean/breath mods stay independent of the gun mod.
– **Item-size soft-link** — items publish their backpack-grid size (width×height, stackable) so a backpack mod can lay them out, without the backpack mod depending on the item mods.
– **Networking helpers** — per-mod channel creation and byte-buffer/sanitize utilities (each mod owns its own channel; no shared-channel ordering fragility).

### Requirements
– None beyond Forge. This is a dependency library — it does nothing visible on its own.

### For modders
Soft-link entry points (register from your mod at setup):
– `DoxParts.register(DoxPartService)` / `DoxParts.resolve(attacker, victim)` → part name or null.
– `DoxPose.registerLean(…)` / `DoxPose.registerBreath(…)`; read via `DoxPose.leanAngle`, `leanPeekOffset`, `breathFade`.
– `DoxItemSize.register(matcher, w, h, stackable)` / `DoxItemSize.resolve(stack)` → backpack-grid size (falls back when unregistered).
– `DoxNetworks.create(modid, proto)` for a SimpleChannel; `DoxBufs` for safe string I/O.
***All projects were produced using AI.***

常见问题

DoxCore 支持哪些 Minecraft 版本?

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

DoxCore 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

Doxa97 的其他作品

查看全部 →