Trinkets Minecraft Mod

repository·main·Indexed 42 days ago

https://github.com/emilyploszaj/trinkets

A data-driven accessory mod for Minecraft using the Fabric loader. It provides a flexible slot and slot group system that allows mods to register specific accessory slots, such as head, chest, or custom groups, without cluttering the UI.

Tokens
342
Snippets
1
Records
2
Agent score
3%

What's inside Trinkets

  1. What are Trinkets slot groups and slots?

    main

    Trinkets implements a slot group and slot system for Minecraft.

    • Slot Groups: Collections of slots representing a specific body part or area. The default groups are head, chest, legs, feet, offhand, and hand. Developers can define additional groups as needed.
    • Slots: Individual attachment points within a group.

    Unlike traditional inventory systems, Trinkets only displays slots that are actively requested by mods, preventing unused UI clutter. The system is designed to be intuitive and accessible for players.

  2. Add Trinkets as a dependency to your Fabric project

    main

    To use Trinkets in your Minecraft mod development, you must add the 'Sleeping Town' and 'Ladysnake Libs' Maven repositories to your build.gradle, then add trinkets as a modImplementation dependency.

    Ensure you have a trinkets_version variable defined in your Gradle configuration.

    repositories {
    	maven {
    		name = "Sleeping Town"
    		url = "https://repo.sleeping.town/"
    	}
    	maven {
    		name = "Ladysnake Libs"
    		url = 'https://maven.ladysnake.org/releases'
    	}
    }
    
    dependencies {
    	modImplementation "dev.emi:trinkets:${trinkets_version}"
    }