Back to 9Minecraft
Wiki 9Minecraft Wiki 9Minecraft
Trinkets Mod Wiki › Guides › Trinkets Data Formats

Trinkets Data Formats

Trinkets is entirely data-driven, meaning slots and entity configurations are handled via JSON files in data packs.

Slot Configuration

Slots are defined in data/<namespace>/trinkets/slots/<name>.json. A slot definition includes: - Icon: The texture used for the slot in the UI. - Priority: Determines the order in which slots appear. - Size: The number of items the slot can hold (usually 1).

Entity Configuration

To determine which entities have access to which slots, Trinkets uses entity files located in data/<namespace>/trinkets/entities/<name>.json. By default, the mod provides a configuration for the player, but any living entity can be assigned trinket slots, allowing for complex mob equipment systems.

{
 "entities": [
 "minecraft:player"
 ],
 "slots": [
 "chest/necklace",
 "hand/ring"
 ]
}