Currently I am just applying an AttributeModifier to one of my items to change through these lines of code (Pulled from actual code because everything around it is irrelevant);
//Modifier
public static AttributeModifier MAINSP = new AttributeModifier(UUID.fromString("6e1c0233-8b3b-4592-b944-a1756fa62a40"), "HandSpeed", 0.05D, 1);
//AttributeModifier adding
output.addAttributeModifier("generic.movementSpeed", AMods.MAINSP, EntityEquipmentSlot.MAINHAND);
This works, my item now causes me to run faster when held, however it also affects my items attack speed / damage.
When applied to a sword, it takes ~20 attacks to kill a zombie, meaning it is doing fist damage, rather than the swords actual damage, along with the attackspeed being the same as my bare fist.
It works the other way around, modifying attack speed does not affect movement speed and keeps the correct attack damage
Does anyone know what is going wrong here?