diff --git a/docs/curios/items/curios-nbt.md b/docs/curios/items/curios-nbt.md index 32fc0c7..f1b3e4a 100644 --- a/docs/curios/items/curios-nbt.md +++ b/docs/curios/items/curios-nbt.md @@ -23,7 +23,7 @@ This is the vanilla way of adding an attribute modifier to the chest slot in an /give @s netherite_chestplate{AttributeModifiers:[{Slot:"chest", AttributeName:"generic.attack_damage", Name:"generic.attack_damage", Amount:20.0, Operation:0, UUID:[I; 42853, 1689024593, -201178, -1559272105]}]} 1 ``` -This is the Curios way of achieving the same in the body slot: +This is the Curios way of achieving the same in the `body` slot: ``` /give @s netherite_chestplate{CurioAttributeModifiers:[{Slot:"body", AttributeName:"generic.attack_damage", Name:"generic.attack_damage", Amount:20.0, Operation:0}]} 1 ``` @@ -31,6 +31,18 @@ This is the Curios way of achieving the same in the body slot: Note that the main differences are the change from `AttributeModifiers` to `CurioAttributeModifiers` and the change in the slot name. The slot name should be the `identifier` of a registered slot type. +### Slot Modifiers + +This method can also be used to add slot modifiers, modifiers that can add or remove curio slots. The syntax is the +same, the only difference is that the `AttributeName` should be of the format `curios:identifier` with `identifier` +being the slot identifier that is being added or removed. + +Going back to the previous example, this will make the item add 1 `back` slot when worn in the `body` slot: + +``` +/give @s netherite_chestplate{CurioAttributeModifiers:[{Slot:"body", AttributeName:"curios:back", Name:"back_modifier", Amount:1.0, Operation:0}]} 1 +``` + :::tip It is recommended that the UUID be left out except for special circumstances. When absent, Curios will give the attribute modifier a UUID based on the slot context which will prevent any stacking issues that could arise when multiple slots