Hi, I read on the Wiki how to modify items. This is the script I have for testing:
ItemEvents.modification(event => {
event.modify('minecraft:diamond_sword', item => {
item.attackDamage = 4;
item.speed = 0.5;
})
}
)
The attack damage works okay (makes the Diamond sword deal 5 damage) but the attack speed is stuck at 4 plus whatever number I put. For example, the above script leads to the sword having 0.5 attack speed. How do I make it so it actually has a 0.5 attack speed? Also, is it possible to make it so that the weapon has a 3.0 block range?
It would also help if somebody could point me to a tutorial or a way I can learn for myself on how to modify weapons attributes, since the Wiki seems to be incomplete.
