diff --git a/1.18.x.html b/1.18.x.html index 33e5d59..40f4914 100644 --- a/1.18.x.html +++ b/1.18.x.html @@ -4,7 +4,7 @@
/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
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.
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
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 -of the same type exist and the same attribute modifier is applied multiple times.