Accessory API

Accessory API

Provides an Accessory API for b1.7.3 in the Babric toolchain

by
6.8K Downloads
babricfabricornithegame-mechanics
Rent Server with this Mod

Screenshots

Inventory Preview
Cape and Gloves

About this Mod

Side note:

Aether for Station API utilizes this mod!

Accessory API

Using Babric 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.

Inventory Preview

Developer Usage

To learn about modding b1.7.3 in the babric toolchain, join The Modification Station!
It's very similar to fabric and fabric-api, but for b1.7.3.

Workspace

Add Accessory API to your build.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)

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[0]; // 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:

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

Available Versions

accessory-api 0.9.1+mcb1.7.3 (Babric)release
MC b1.7.3babric
June 10, 2026
accessory-api 0.9.1+mcb1.7.3 (Ornithe)release
MC b1.7.3ornithe
June 10, 2026
0.9.0+gen2 (orn -> bab convert)release
MC b1.7.3babric, fabric
June 8, 2026
0.8.4release
MC b1.7.3babric, fabric
June 6, 2026
0.8.3release
MC b1.7.3babric, fabric
June 2, 2026

How to Install Accessory API on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set babric Loader

In the panel under "Egg", select the babric loader and matching Minecraft version (b1.7.3).

3

Install Mod

Open the mod browser in the dashboard and search for "Accessory API". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

babricfabricornithe

Minecraft Versions

b1.7.3

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Accessory API server crashes on startup – what to do?

Most common cause: wrong babric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (b1.7.3). You can switch loaders with one click in the panel.

Is Accessory API compatible with babric and fabric and ornithe?

Accessory API officially supports babric, fabric, ornithe for Minecraft b1.7.3. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Accessory API – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Accessory API consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Accessory API with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
Creative Commons Zero v1.0 Universal
Server-side
Required

Supported Versions

b1.7.3