I'm trying to add Iron's Spells and Spellbooks attributes to existing weapons and armor.
ItemEvents.modification(event => {
event.modify("minecraft:diamond_sword", item => {
item.addAttribute("irons_spellbooks:max_mana", "Mana", 200)
})
})
It keeps saying addAttribute doesn't exist, how would I do it then?
And before you say it, no, I won't use Custom Item Attribute mod because it doesn't work at all.