The Baubles Mod is small on purpose. Its own notes say it adds seven bauble slots and an API. It brings next to no items or blocks. The plan is that other mods use it to add rings, charms and more. This page walks through each part of the 1.12.2 build.
Seven extra slots
The Baubles Mod gives your player seven new slots. They sit apart from your armor and your main bag. So a worn item never takes up normal space. Each slot has a fixed number and a type.
- Slot 0: AMULET. The tooltip reads "Bauble (Amulet)".
- Slots 1 and 2: RING. The tooltip reads "Bauble (Ring)".
- Slot 3: BELT. The tooltip reads "Bauble (Belt)".
- Slot 4: HEAD. The tooltip reads "Bauble (Head)".
- Slot 5: BODY. The tooltip reads "Bauble (Body)".
- Slot 6: CHARM. The tooltip reads "Bauble (Charm)".
- Any slot: TRINKET. The tooltip reads "Bauble (Any)".
TRINKET is not a slot of its own. It is a type that fits in all seven. A mod maker picks it when an item can go in any spot. Hover over an item to see its type.
Back on 1.7.10, you got only four, for an amulet, a belt and a pair of rings. The head, body and charm slots came later.
The API for other mods
The real heart of the Baubles Mod is its API. It lives in the baubles.api package. Any mod that wants a worn item can use it. That way, all those mods share one set of slots.
The IBauble methods
An item turns into a bauble with IBauble. It has seven methods:
getBaubleTypesays which slot type the item fits.onWornTickruns each tick while you wear it.onEquippedruns when you put it on.onUnequippedruns when you take it off.canEquipcan stop it from going on.canUnequipcan stop it from coming off.willAutoSynckeeps it in sync for other players.
BaublesApi helpers
The BaublesApi class has three quick tools.
getBaublesHandler(player)hands back the slots as an item handler.getBaubles(player)gives the oldIInventoryview.isBaubleEquipped(player, item)gives the slot number, or -1 if the item is not worn.
Two more parts round it out. BaublesCapabilities lets an item hold bauble data. IRenderBauble lets an item draw on the player.
The slot screen
You can reach the slots in two ways. The first is a key. In Controls, look in the Inventory group for "Baubles Inventory". The key it starts on is B.
The second way is a small "Baubles" button on your normal bag screen. Click it to swap to the slot view. A "Normal" button there takes you back. You can also right-click a bauble item. It then jumps to the first free slot that fits.
The Miner's Ring test item
The mod has just one item, the Miner's Ring. It is a ring, so it goes in slot 1 or 2. While you wear it, you get Haste I. You can find it in the Tools tab in creative mode.
The source code has no crafting recipe for it. It is a demo item that shows the slots work. In a real pack, your rings and charms come from other mods.
The /baubles command
Server staff get one command. You can also type it as /baub or /bau. Only ops can use it.
/baubles view <player>lists what that player has on./baubles clear <player>wipes all of their slots./baubles clear <player> <slot>wipes one slot by number.
This helps when a bad item gets stuck. It also helps when a player needs a fresh start.
One config option and a tiny file
There is just one setting. It is baubleRender.enabled on the client side. Set it to false to hide baubles on your player. The items still work. You just will not see them.
The JAR is very light, too. The 1.5.2 file is about 105.9 KB. It adds next to no load time to your pack.
What Baubles Expanded adds
Baubles Expanded is a fork of the 1.7.10 build. The GTNewHorizons team keeps it up. It still works with mods made for the old Baubles Mod. Out of the box, it has the same four slots as the 1.7.10 build. But it can grow to as many as twenty.
With it, other mods can add new slot types. A bauble can also fit more than one type of slot. In the config, you can change which slot goes where. You can set the Soulbound IDs there as well.
