IIngredient.addGlobalAttributeModifier(attribute as Attribute, name as string, value as double, operation as AttributeOperation, slotTypes as MCEquipmentSlotType[]);
<item:minecraft:diamond_sword>.anyDamage().addGlobalAttributeModifier(<attribute:minecraft:generic.attack_damage>,"cb3f55d3-645c-4f38-a497-9c13a33db5cf", "a", 100, AttributeOperation.ADDITION, [<constant:minecraft:equipmentslot:mainhand>]);