46 lines
1.7 KiB
Markdown
46 lines
1.7 KiB
Markdown
# Curios
|
|
|
|
A port of [Curios](https://github.com/TheIllusiveC4/Curios): accessory slots, like rings, necklaces and belts, for any
|
|
mod's items. Players open them with the Curios button next to their inventory, or G while an inventory is open.
|
|
|
|
Like the original, Curios adds no items and no slots of its own. A slot type only shows up once some mod puts an item in
|
|
its tag.
|
|
|
|
## Making an Item a Curio
|
|
|
|
Add the item to the slot type's item tag. For a ring, `tags/items/curios/ring.json` in your mod:
|
|
|
|
```json
|
|
{ "format_version": 1, "tag": { "values": ["jewelry:gold_ring"] } }
|
|
```
|
|
|
|
| Tag | Slot |
|
|
| ------------------ | ---------------------- |
|
|
| `#curios:curio` | Any slot, and its own. |
|
|
| `#curios:head` | Head |
|
|
| `#curios:necklace` | Necklace |
|
|
| `#curios:back` | Back |
|
|
| `#curios:body` | Body |
|
|
| `#curios:bracelet` | Bracelet |
|
|
| `#curios:hands` | Hands |
|
|
| `#curios:ring` | Ring |
|
|
| `#curios:belt` | Belt |
|
|
| `#curios:feet` | Feet |
|
|
| `#curios:charm` | Charm |
|
|
|
|
Every player has one slot of each type. Curios drop when the player dies, like the rest of what they carry.
|
|
|
|
## Attribute Modifiers
|
|
|
|
An item with the `curios:attribute_modifiers` component changes the wearer's
|
|
[attributes](../../docs/modding/entities/players.md#attributes) while it's in a curio slot, and says so in its tooltip.
|
|
The Power Glove from Artifacts:
|
|
|
|
```json
|
|
"components": {
|
|
"curios:attribute_modifiers": [{ "attribute": "bworld:attack_damage", "amount": 4, "operation": "add_value" }]
|
|
}
|
|
```
|
|
|
|
Depend on `curios` to use it.
|