#attributes on modded weapons

4 messages · Page 1 of 1 (latest)

gaunt walrusBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

pastel jacinth
barren wrenBOT
#

[➤](#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")
})
pastel jacinth
#

You'd need to do it in client script