attribute

fun attribute(attribute: Attribute, modifier: AttributeModifier)

Adds an attribute modifier to the ItemStack.

Parameters

attribute

The attribute to modify

modifier

The modifier to apply