玩家技能
一个提供玩家专属技能基础实现的库模组。它本身的功能非常有限,因为它旨在尽可能保持中立(不预设具体行为)。
与 GameStages 和 GamePhases 类似,该模组提供了一个注册表,用于追踪所有可能的技能以及特定玩家当前拥有的技能。与其他模组不同,此模组中的技能会立即添加到玩家身上,并通过“技能类型”(Skill Types)来利用能力检查机制。
xSkills 系列模组
Player Skills | Block Skills | Dimension Skills | Fluid Skills | Item Skills | Mob Skills
概念
本模组提供了两种可扩展的实体:技能类型(Skill Types)和技能(Skills)。
技能类型
技能类型处理与其类型相关的所有技能管理逻辑。这包括提供一种将技能序列化和反序列化为持久格式的方法。更高级的用例可以利用技能类型来判断技能是否达到足够的阈值。由于这种特性,技能类型无法通过 KubeJS 创建。
内置类型
Basic提供一个简单的布尔值true/false。非常适合诸如“能阅读”之类的简单技能。Numeric提供一个整数值(0, 1, 2 等)。非常适合可以提升的技能或属性,例如“力量”。Tiered是Numeric的特化版本,允许使用字符串。一个例子可以是“教育”水平(粗通/小学、基础/中学、中级/大学、高级/研究生、顶尖/博士)。Specialization提供一种技能,允许从列表中选择一个或多个专精。例如“魔法类型”(红、黑、白、绿、蓝)。
技能
技能记录所需的数据,供技能类型计算玩家是否能够执行基于技能的动作。技能会被序列化并保存在玩家特定的 NBT 数据中。技能通过 KubeJS 暴露出来,以便整合包作者可以根据需要进行操作。本模组不提供任何内置技能,因为我们希望鼓励整合包和其他模组提供这些内容。
限制
限制器负责根据设定的条件、当前维度以及当前生物群系来确定玩家是否拥有某项能力。它还可能为目标资源提供一个替代方案。与技能一样,我们在此也不提供任何限制器。其他的 xSkills 模组为许多原版元素实现了限制器。
更多信息
文档、示例等内容可在 GitHub 上的 readme 中找到。
整合包
想在整合包中使用这个模组?太棒了!这个模组的设计初衷就是面向整合包开发者的。无需询问,直接可以使用。
Player Skills
A library mod that provides a baseline implementation of player-specific skills. On its own, this does very little as it is meant to be as un-opinionated as possible.
Like GameStages and GamePhases, this provides a registry for tracking possible skills as well what skills a given player currently possesses. Unlike the other mods, skills are added to a player immediately and leverage ability checking via Skill Types.
xSkills Mods
Player Skills | Block Skills | Dimension Skills | Fluid Skills | Item Skills | Mob Skills
Concepts
This mod provides two entities that can be extended: Skill Types and Skills.
Skill Type
A skill type handles all logic around managing skills tied to its type. That includes providing a way to (de)serialize the skill into a persistent format. More advanced use cases can leverage the skill type for determining if a skill is of a sufficient threshold. Because of this nature, skill types cannot be created via KubeJS.
Builtin Types
Basicprovides a simple booleantrue/false. Great for simple skills such as "can read."Numericprovides an integer value (0, 1, 2, etc). Great for skills or attributes which can be improved such as " strength."Tieredare specialized version ofNumericin that strings can be used. One example could be "education" education (crude/primary, basic/secondary, intermediate/university, advanced/postgraduate, top/doctorate).Specializationprovide a skill which allows one or more specializations out of a list. An example is "magic type" ( red, black, white, green, blue).
Skill
A skill tracks the data needed for SKill Types to calculate if a player can perform a skill-based action. Skills get serialized and persisted in player-specific NBT data. Skills are exposed via KubeJS for modpack authors to manipulate as they see fit. This mod provides no built-in skills, as we want to encourage modpacks and other mods to provide that shape.
Restriction
A restrictions handles the logic for determining if a player has an ability based on the set condition, current dimension, and current biome. It may also provide a replacement to the target resource. Like Skills, we provide no restrictions here. The other xSkills mods implements restrictions for many vanilla elements.
More Information
Documentation, examples, and more can be found in the readme on Github.
Modpacks
Want to use this in a modpack? Great! This waBecause os designed with modpack developers in mind. No need to ask.
下载 Player Skills
下载 Player Skills
下载 Player Skills
下载 Player Skills
下载 Player Skills
下载 Player Skills
下载 Player Skills
下载 Player Skills
下载 Player Skills
下载 Player Skills
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
评论 0
登录后参与评分
还没有评论,来抢沙发吧