Download Player Skills — Minecraft Mods — MetaMods

Player Skills

Active

Downloads

22

Last update

1 year ago

Versions

1.18.2 — 1.19.3
Client and server
Fabric
Forge
Adventure
Game mechanics
Libraries

Player Skills

A library mod that offers a basic implementation of personalized skills for players. By itself, it does almost nothing as it's designed with minimal bias towards gameplay.

Similar to mods like GameStages and GamePhases, this project provides a registry for tracking possible skills and those currently possessed by a specific player. However, unlike them, skills are assigned to the player instantly and use ability checking through Skill Types.

Core Concepts

The mod includes two expandable entities: Skill Types and Skills.

Skill Type

A skill type handles all the logic for managing skills associated with its type. This includes the ability to serialize and deserialize the skill into a persistent format. More complex use cases can utilize the skill type to determine if a skill meets the required threshold. Due to this nature, skill types cannot be created via KubeJS.

Built-in Types

  1. Basic provides a simple boolean value true/false. Perfect for simple skills like "ability to read".

  2. Numeric provides an integer value (0, 1, 2, etc.). Great for skills or attributes that can be improved, such as "strength".

  3. Tiered is a specialized version of Numeric where strings can be used. An example could be "education" (elementary, secondary, higher, postgraduate, doctoral).

  4. Specialization provides a skill that allows one or more specializations from a list. Example: "magic type" (red, black, white, green, blue).

Skill

A skill tracks the data needed by Skill Types to calculate whether a player can perform a skill-based action. Skills are serialized and stored in the player-specific NBT data. Skills are accessible via KubeJS, allowing modpack authors to manage them as they see fit. This mod does not provide built-in skills to encourage modpacks and other mods to create them independently.

Restriction

A restriction handles the logic for determining if a player has an ability based on the set condition, current dimension, and biome. It can also provide a replacement for the target resource. As with skills, we do not provide restrictions here. Other mods in the xSkills series implement restrictions for many vanilla elements.

Additional Information

Documentation, examples, and more can be found in the readme file on Github.

Modpacks

Want to use this mod in a modpack? Great! It was designed with modpack developers in mind. No need to ask for permission.

Project members
impleri

impleri

Developer

Created: 26 Nov 2022

ID: 7262