setAttribute

public static void setAttribute(LivingEntity livingEntity, String attributeKey, double value)