跳到正文

Somnium API

作者:Eclipce77

A highly customizable Power and Ability API, for those who can dream it possible.

收藏

介绍

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

Somnium

A highly customizable Power and Ability API, for those who can dream it possible.

What Somnium Provides

Powers & Abilities — A complete ability system with five activation types (Instant, Toggle, Hold, Charged, Passive), groupable into Powers with configurable unlock conditions. Includes a drag-and-drop ability inventory, a 6-slot HUD bar with paging, and customizable categories.

Stamina & Overuse — A universal stamina resource that drains when abilities are used and regenerates over time. Pushing too far triggers the Overuse system — a three-stage penalty that discourages ability spam while creating meaningful risk-reward decisions.

Composition — A permanent growth stat unique to each player. Composition increases through gameplay (ability usage, stamina recovery, overuse survival) and directly expands the player’s stamina capacity. Diminishing returns ensure no hard cap while maintaining balance.

Power Leveling — Optional per-power XP and leveling. Abilities can require minimum power levels to unlock, and XP is earned through ability usage within that power.

Custom Meters — A flexible value system for addon developers to create their own resources (mana, rage, focus, etc.) with independent drain, regen, and scaling.

Transformations — A dedicated ability type for shapeshifting, with phase transitions, visual data hooks, and automatic inventory management.

Tag System — A lightweight labeling system for gating abilities behind conditions. Tags can be granted by items, events, curios, or any custom logic.

Optional Compatibility —
[GeckoLib 4]
[Curios API]
[Pehkui]

常见问题

Somnium API 支持哪些 Minecraft 版本?

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

Somnium API 怎么安装?

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

评论

登录后评论和评分

Eclipce77 的其他作品

查看全部 →