#attributes on modded weapons
4 messages · Page 1 of 1 (latest)
You may want to check this thread.
#1382278496704925727 message
[➤](#1382278496704925727 message)
This seems like a topic brought up from time to time. So I tried to make it easier. The scripts go into startup. No need for other addons. It supports vanilla items and curios.
ItemAttributes.modify(attributes => {
const {Attributes} = attributes
attributes.remove(Ingredient.of("netherite_chestplate"), Attributes.ARMOR)
attributes.add(Ingredient.of("#minecraft:swords"), Attributes.ARMOR, 20, "addition")
attributes.add(Item.of('magicaljewelry:silver_amulet', '{GemColor:"cyan"}').weakNBT(), Attributes.ARMOR, 20, "addition")
attributes.add(Ingredient.of("minecraft:totem_of_undying"), Attributes.ATTACK_KNOCKBACK, 1.1, "multiply_base", "offhand")
})
You'd need to do it in client script