介绍
SparkyAPI
A lightweight client-side library for SparkNox mods. SparkyAPI doesn’t add features on its own — it provides the shared backbone (config handling, event hooks, HUD rendering, keybind management, and utility functions) that other SparkNox mods like ZoroCrystal build on top of.
If you’ve ever used Fabric API, Cloth Config, or PlaceholderAPI, you already get the idea — install it once, and every mod that depends on it just works.
What’s inside:
- Config system — saves and loads JSON configs to
.minecraft/config/sparky/, with sane defaults if a file doesn’t exist yet. - Event bus — shared tick events (
PLAYER_TICK,CLIENT_TICK) so dependent mods don’t each register their own listeners. - HUD helper — register persistent on-screen text lines, draw boxes, outlined panels, and shadowed text without boilerplate.
- Keybind manager — register keybinds with a single call and handle press logic automatically.
- Utility belt — common helpers like finding items in your hotbar/inventory, checking ping, distance calculations, and more.
SparkyAPI is built for Fabric 1.21.4, is client-side only, and has no gameplay impact by itself. It exists purely to keep dependent mods lighter, more consistent, and easier to maintain.
If a mod tells you it needs SparkyAPI, this is the one to grab. 🔧
常见问题
SparkyAPI 支持哪些 Minecraft 版本?
SparkyAPI 支持 Minecraft Java 版 1.21.4–1.21.11,共 8 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
SparkyAPI 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。
评论
登录后评论和评分