I'm trying to rebalance the axe, and the speed works fine but when I tried adding the line to change the damage it broke the script. I pretty much copied it directly from the wiki, so I'm not really sure what I could've done wrong
ItemEvents.modification(event => {
event.modify('minecraft:iron_axe', item => {
item.attackDamage = 6.0
item.attackSpeed = -3.2
})
})