ModsFinder

CosmetologyLib

by lukegrahamlandry

CosmetologyLib is a Forge library for Minecraft 1.16.5 that other mods use to add and manage player cosmetics.

ForgeClient and serverMIT LicenseOpen source1.16.5

What it does

Mod developers use the library to register custom cosmetics, group them into slots, and control which players may equip each one. A unified interface handles equipping across the rendering libraries it supports, so a mod does not need its own system for cosmetic placement and access.

Cosmetic data is kept on the server and synced to clients through packets, and changes to a cosmetic set can be loaded remotely. That allows an update to the cosmetic list without requiring players to receive a new version of the mod. Geckolib is an optional dependency and adds support for animated models.

The library is released for Forge only, with a single file for 1.16.5 dated 2022-11-19 and version 1.0.13 as the latest build. It runs on the client and server together, so both the server and every player need it to be installed. The source code and issue tracker are public, and it is released under the MIT License.

Key features

  1. Cosmetic slot tracking

    Cosmetics are assigned to slots, and the library tracks which slot each equipped cosmetic occupies.

  2. Access control

    Each cosmetic can be restricted or opened for a player, with permission checks before equipping.

  3. Server-synced data

    Saved cosmetic data lives on the server, and packets keep each client's view of it up to date.

  4. Cosmetic GUI widgets

    Widgets display the available cosmetics in in-game screens, and most features rely on manually registered event handlers.

  5. Armor model layer

    An extra armor model layer on the player renders cosmetic models over the default body.

Compatibility

Latest build for each game version and loader.

1.16.51.0.13
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Requirements

Dependencies declared by the latest file for each loader.

Optional 1

GeckolibA 3D animation library for entities, blocks, items, armor, and more!
Optional

Use cases

Adding cosmetics to a modpack

A modpack author can add a set of hats or outfits through a mod built on the library, controlling who may equip them.

Remote cosmetic updates

A developer can change the cosmetic list on the server without forcing players to update their mod files.

Who it’s for: Mod developers who want to add cosmetics to their own mods, and server owners who run mods built on the library and need to manage player access to those cosmetics.

Questions

Does CosmetologyLib need to be installed on both sides?

Yes. Every player and the server need a copy of the mod.

Which loader does CosmetologyLib support?

Forge only. Its only published file is for Minecraft 1.16.5, with version 1.0.13 as the latest build.

Is Geckolib required to use CosmetologyLib?

No. Geckolib is an optional dependency, so the library works without it, and installing it adds animated model support.

In the catalog

CosmetologyLib is one of 3,514 Library mods on ModsFinder, and one of 1,576 Library mods for Forge. 5,992 mods support Minecraft 1.16.5.

More from lukegrahamlandry

All projects

Similar mods

What the author says

A library to help Minecraft mods add custom cosmetics. A unified interface for equipping cosmetics supplied by a variety of rendering libraries. Provides tools for managing which cosmetics each player has permission to equip. This is a library for developers, it adds no content on its own.
lukegrahamlandry, on the Modrinth page

Official listing

Owner
lukegrahamlandry
Published
2022-11-19
Updated on Modrinth
2022-11-19
Facts verified
2026-10-15

Tags