spigot change move speed of living entity creature code example
Example: spigot change move speed of living entity creature
// wolf's default MS = 0.3
double moveSpeed = ((Attributable)wolf).getAttribute(Attribute.GENERIC_MOVEMENT_SPEED).getValue();
wolf.getAttribute(Attribute.GENERIC_MOVEMENT_SPEED).setBaseValue(0.5);