Hello all. So I'm trying to adjust the attack speed of a custom mob (zombie) and I'm getting a NPE when trying to adjust the attack speed. Adjusting the Max-Health with attributes is working fine with no NPEs. Just curious what would cause a Attack-Speed attribute adjustment to throw NPE? Code (Java): zombie.getAttribute(Attribute.GENERIC_ATTACK_SPEED).setBaseValue(aSpeed);
Try adding the attribute to the zombie as zombie probably doesn’t originally have it or you could do it in an entitydamage event