Accessory API

⭐ — (7 endorsements) 📥 8,293 downloads 📌 v0.9.1+mcb1.7.3+babric 📅 10/18/2023
🟡 Updated this year

By Slainlight · babric

⬇ Download Mod Source: Modrinth ↗ 📅 Updated: 6/10/2026 📅 Created: 10/18/2023
⚠️ Install Order · 2 steps
1🛠️ Forge — Minecraft Forge (mod loader) Download ↗
2🛠️ Fabric — Fabric Loader Download ↗

Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.

🔍 Analysis

  • 👍 0.1% endorsement rate
  • 🏆 #6 of 15 babric mods in this game by downloads

📋 About This Mod

## Side note: (https://github.com/matthewperiut/aether-fabric-b1.7.3/releases/tag/a1.0.0) utilizes this mod! # Accessory API Using (https://babric.github.io/) in b1.7.3, this mod provides an API to add additional slots for various items similar to the Trinkets API and Baubles API, with styling inspired by b1.7.3's Aether. !(https://i.imgur.com/CVVfbAN.png) # Developer Usage To learn about modding b1.7.3 in the babric toolchain, join (https://discord.gg/8Qky5XY)! It's very similar to fabric and fabric-api, but for b1.7.3. ## Workspace Add Accessory API to your `build.gradle` ```gradle repositories { maven { name = "Jitpack" url "https://jitpack.io/" } } dependencies { modImplementation('com.github.matthewperiut:accessory-api:0.5.1') { transitive false } } ``` ## Recommendation If you want to quickly see how to use this API, clone the repo (in an ide preferably) and navigate to src/test/java/com/matthewperiut/testmod. Also view API javadocs / documentation ## Implementation Implement "Accessory" inside your item class (with STAPI, will work with any API/mixins) ```java public class ExampleRing extends TemplateItemBase implements Accessory { public Pendant(Identifier identifier) { super(identifier); } // To define trinket slots that your item can go into: @Override public String getAccessoryTypes(ItemInstance item) { return new String{ "ring" }; // return new String; // returns no slots // return new String{ "ring", "cape" }; // can be put in multiple types of slots // return new String{ "all" }; // can be in any accessory slot } // other methods you can use, use @Override // void tickWhileWorn(PlayerBase player, ItemInstance accessory) // void onAccessoryAdded(PlayerBase player, ItemInstance accessory) // void onAccessoryRemoved(PlayerBase player, ItemInstance accessory) // Rendering private YourCustomRenderer renderer; @Override public Optional<AccessoryRenderer> getRenderer() { return Optional.ofNullable(renderer); } } ``` You can choose different types of default accessory types: "pendant" "cape" "shield" "ring" "gloves" "misc" "all" or use your own custom accessory type ## Accessory Functions Explained This is called when an accessory slot is clicked on with an item, the item is passed to the function. This provides the slot information to see if it is compatible with it. `String getAccessoryTypes(ItemInstance item)` This is called in the tick function of the associated player, passing the item that is being ticked on which player. `void tickWhileWorn(PlayerBase player, ItemInstance item)` This is called when the inventory relating to the accessory has an item added/removed. The function provides what player added/removed an accessory as well as the item that was added/removed. `void onAccessoryAdded(PlayerBase player, ItemInstance accessory)` `void onAccessoryRemoved(PlayerBase player, ItemInstance accessory)` Provide rendering functions with getRenderer: `public AccessoryRenderer getRenderer()` ## Creating Accessory Renderer example: ```java public class CustomRenderer implements AccessoryRenderer { void renderThirdPerson(PlayerBase player, PlayerRenderer renderer, ItemInstance itemInstance, double x, double y, double z, float h, float v) { // do entity rendering magic } void renderFirstPerson(PlayerBase player, PlayerRenderer renderer, ItemInstance itemInstance) { // do entity first person rendering magic } } ``` Similar usage as EntityRenderers Built-in AccessoryRenderers: `CapeRenderer` `GloveRenderer` `NecklaceRenderer` `ConfigurableRenderer`

## Side note: (https://github.com/matthewperiut/aether-fabric-b1. 7. 3/releases/tag/a1. 0. 0) utilizes this mod! # Accessory API Using (https://babric.github.io/) in b1. 7. 3, this mod provides an API to add additional slots for various items similar to the Trinkets API and Baubles API, with styling inspired by b1. 7. 3's Aether.

!(https://i.imgur.com/CVVfbAN.png)

# Developer Usage

To learn about modding b1. 7. 3 in the babric toolchain, join (https://discord.gg/8Qky5XY)! It's very similar to fabric and fabric-api, but for b1. 7. 3.

## Workspace

Add Accessory API to your `build.gradle` ```gradle repositories { maven { name = "Jitpack" url "https://jitpack.io/" } }

dependencies { modImplementation('com.github.matthewperiut:accessory-api:0. 5. 1') { transitive false } } ```

## Recommendation

If you want to quickly see how to use this API, clone the repo (in an ide preferably) and navigate to src/test/java/com/matthewperiut/testmod. Also view API javadocs / documentation

## Implementation

Implement "Accessory" inside your item class (with STAPI, will work with any API/mixins) ```java public class ExampleRing extends TemplateItemBase implements Accessory { public Pendant(Identifier identifier) { super(identifier); } // To define trinket slots that your item can go into: @Override public String[] getAccessoryTypes(ItemInstance item) { return new String[]{ "ring" }; // return new String; // returns no slots // return new String[]{ "ring", "cape" }; // can be put in multiple types of slots // return new String[]{ "all" }; // can be in any accessory slot }

// other methods you can use, use @Override // void tickWhileWorn(PlayerBase player, ItemInstance accessory) // void onAccessoryAdded(PlayerBase player, ItemInstance accessory) // void onAccessoryRemoved(PlayerBase player, ItemInstance accessory)

// Rendering private YourCustomRenderer renderer; @Override public Optional getRenderer() { return Optional.ofNullable(renderer); } } ```

You can choose different types of default accessory types: "pendant" "cape" "shield" "ring" "gloves" "misc" "all" or use your own custom accessory type

## Accessory Functions Explained

This is called when an accessory slot is clicked on with an item, the item is passed to the function. This provides the slot information to see if it is compatible with it. `String[] getAccessoryTypes(ItemInstance item)`

This is called in the tick function of the associated player, passing the item that is being ticked on which player. `void tickWhileWorn(PlayerBase player, ItemInstance item)`

This is called when the inventory relating to the accessory has an item added/removed. The function provides what player added/removed an accessory as well as the item that was added/removed. `void onAccessoryAdded(PlayerBase player, ItemInstance accessory)` `void onAccessoryRemoved(PlayerBase player, ItemInstance accessory)`

Provide rendering functions with getRenderer: `public AccessoryRenderer getRenderer()`

## Creating Accessory Renderer example: ```java public class CustomRenderer implements AccessoryRenderer { void renderThirdPerson(PlayerBase player, PlayerRenderer renderer, ItemInstance itemInstance, double x, double y, double z, float h, float v) { // do entity rendering magic }

void renderFirstPerson(PlayerBase player, PlayerRenderer renderer, ItemInstance itemInstance) { // do entity first person rendering magic } } ``` Similar usage as EntityRenderers

Built-in AccessoryRenderers: `CapeRenderer` `GloveRenderer` `NecklaceRenderer` `ConfigurableRenderer`

🤖 AI-enhanced — based on mod data

📊 Mod Details

Game
Minecraft Mods
Author
Slainlight
Version
0.9.1+mcb1.7.3+babric
Downloads
8,293
Endorsements
7
Category
babric
Created
10/18/2023
Updated
6/10/2026
Game Versions
b1.7.3
Tags
game-mechanics

🔧 How to Install Minecraft Mods Mods

Download from Modrinth. Use Prism Launcher or drop into your mods folder.

📖 Full step-by-step install guide for Minecraft Mods →

Visit the official mod page for specific installation instructions for this mod.

🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Mods commands, item IDs, and more.

❓ Frequently Asked Questions

Which Minecraft Mods versions does Accessory API support?

The author lists b1.7.3. Other versions may work but are untested by the author.

What is the latest version of Accessory API?

Version 0.9.1+mcb1.7.3+babric, published 2026-06-10 with 8,293 downloads recorded at the source.

Keep browsing — more Minecraft Mods mods await

📋 All Minecraft Mods Mods 🏆 Top 25 📂 More babric 👤 More by Slainlight 🔎 Similar Mods 🌐 Best babric (All Games) 🔀 Check Compatibility ⚖️ Compare Mods 🆕 New Mods