Repository navigation
Getting Started
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"))
}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.
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.
- Start your server or world with Orbis Charms and your mod installed.
- Give yourself the item and a Charm Box, or run
/charms. - 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.