My textbook says the following about the Ellingham diagram:
Each plot is a straight line except when some change in phase ($\ce{s -> liq}$ or $\ce{liq -> g}$) takes place. The temperature at which such change occurs is indicated by an increase in the slope on the positive side (e.g., in the $\ce{Zn}$, $\ce{ZnO}$ plot, the melting is indicated by an abrupt change in the curve).
However, I do not understand this. If a solid metal oxide changes into a liquid or a liquid into a gas, shouldn't the entropy increase? And as a result, the change in entropy should become less negative with regards to the equation:
Ellingham diagram normally consists of plots of $\Delta_\mathrm fG^\circ$ vs $T$ for formation of oxides of elements i.e., for the reaction,
$$\ce{2x M (s) + O2 (g) -> 2 M_xO (s)}$$
In this reaction, the gaseous amount (hence molecular randomness) is decreasing from left to right due to consumption of gases leading to a negative value of $\Delta S$ which changes the sign of the second term in equation (6.14). Subsequently $\Delta G$ shifts towards higher side despite rising $T$ (normally, $\Delta G$ decreases i.e. goes to lower side with increasing temperature). The result is positive slope in the curve for most of the reactions shown above for formation of $\ce{M_xO (s)}$.
If this is the case, the slope should become less positive according to the equation:
$$\Delta G = \Delta H - T\,\Delta S$$
where $-\Delta S$ is the slope. Am I missing something?