跳到正文

Slimes API

作者:EldarGods

A utility library for Slimes Studios, making development easier.

收藏

介绍

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

SlimesAPI is the shared utility library that powers every Resurgence mod. It isn’t a content mod on its own; install it whenever another Resurgence mod asks for it. You may also use it to develop your own mods if you wish.

Features (as of v2.1.0):

  • Per-player persistent data API; typed, codec-driven storage attached to every player.
  • Item name gradient API interface, with static (two-color) and animated (sliding, breathing, or rainbow) support.
  • Json5, comments and nesting support for configs.
  • Server operators can edit any registered config in-game; non-ops see a read-only view.
  • Tooltip rendering hook into item tooltip drawer, plus an event for injecting extra components and a comparator hook for ordering.
  • Register a built-in resource pack bundled in mod jars with one-line.
  • Color interpolation, look-vector math, mod-loaded checks, JSON pretty-printing.

常见问题

Slimes API 支持哪些 Minecraft 版本?

Slimes API 支持 Minecraft Java 版 1.20.1,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Slimes API 怎么安装?

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

评论

登录后评论和评分

EldarGods 的其他作品

查看全部 →