Download Curios API — Minecraft Mods — MetaMods

Curios API

Active

Downloads

169

Last update

5 months ago

Versions

1.13.2 — 1.21.5
Client and server
Fabric
Forge
Neoforge
Adventure
Weapons and armor
Libraries
Utils

Curios API

Curios is a universal and expandable system for working with accessories and equipment, designed for both developers and players. The main purpose of this API is to provide a convenient and compatible way to add additional equipment slots, while allowing users to customize these slots according to their preferences.

By default, the mod does not add any content except for an inventory graphical interface. It has no pre-installed slots and only two items, which are available exclusively through creative mode and serve mainly as examples for developers.

Key Features

Expandable slot system through a centralized library. New equipment slots are easily created and managed through an identifier registry. Identical identifiers are automatically merged to avoid functional duplication and ensure maximum compatibility with potential items, while unique identifiers can be used to designate special types when necessary.

Slots are created only on demand. The system has no pre-installed slots - they only appear when there is a need for them. This eliminates situations where there are unnecessary slots in the inventory without suitable items for them.

Complete customization and slot management. Slots can have custom backgrounds, different sizes, and can also be disabled or hidden by default. But how can a player access disabled slots? Through the API, developers can use functions to enable/disable player slots or add/remove a certain number of slots of a given type.

Flexible item-accessory relationship system using vanilla tag system. The selection of suitable accessories is done through Minecraft's standard tag system. This means that categorizing items by accessory types comes down to simply creating a .json file in the data/curios/tags folder. Items can be assigned to any number of accessory types if they are tagged in the appropriate files, and these settings can be completely overridden.

Complete integration with other inventory mechanics. Mending and Curses enchantments work with all applicable items equipped in Curios slots. There are also various helper functions for developers that simplify the integration of their own items or mechanics into the Curios system.

Access through a unified graphical interface. Curios comes with its own GUI accessible from the inventory, which shows all available slots to the player. This allows players to see all extended equipment slots in one place without having to switch between different inventory interfaces. At the same time, developers can create their own GUIs for their mod-specific slots if needed. The default key to open the GUI is 'g'.

Curios Interface

Documentation

Project members
TheIllusiveC4

TheIllusiveC4

Developer

Created: 3 Feb 2023

ID: 209