Skip to content

Getting Started

Traverse-Joe edited this page Dec 3, 2026 · 1 revision

1. Depend on Orbis Charms

Add the dependency to your mod's manifest.json so Orbis Charms loads first:

"Dependencies": {
  "Traverse:OrbisCharmsAPI": "*"
}

If your mod only ships JSON (an asset pack), that's all you need. If it uses the Java API, compile against the Orbis Charms jar without bundling it:

dependencies {
    compileOnly(files("libs/OrbisCharmsAPI-0.1.0.jar"))
}

2. Turn on the slots you use

Every standard slot type ships disabled, so players never see empty slots no mod uses. Enable the ones your charms need with a file in your asset pack at Server/OrbisCharms/EnabledSlots/<YourMod>.json:

{
  "Slots": { "Necklace": 1, "Ring": 2 }
}

The number is how many slots of that type you need. When several mods enable the same type, players get the highest count any of them asked for, not the sum. A count of 0 enables the type with its default count.

See Charm slots for the Java equivalent and for adding your own slot types.

3. Make a charm

The quickest charm is an ordinary item with a CharmSlot tag:

"Tags": {
  "CharmSlot": ["Necklace"]
}

It can now go in any Necklace slot. To give it bonuses, effects or visuals, add a charm definition file. See Creating charms.

4. Test it

  1. Start your server or world with Orbis Charms and your mod installed.
  2. Give yourself the item and a Charm Box, or run /charms.
  3. Drag the charm into its slot. The Equipped Charms panel lists it with its bonuses, and the Stats panel updates.

The server log line Loaded N charm definitions and N slot types from asset packs; N slot types enabled confirms your files were found.

Clone this wiki locally