We previously discovered multiple superconducting phases in the ammoniated Na-doped FeSe material, (NH3)yNaxFeSe. To clarify the origin of the multiple superconducting phases, the variation of Tc was fully investigated as a function of x in (NH3)yNaxFeSe. The 32 K superconducting phase is mainly produced in the low-x region below 0.4, while only a single phase is observed at x = 1.1, with Tc = 45 K, showing that the Tc depends significantly on x, but it changes discontinuously with x. The crystal structure of (NH3)yNaxFeSe does not change as x increases up to 1.1, i.e., the space group of I4/mmm. The lattice constants, a and c, of the low-Tc phase (Tc = 32.5 K) are 3.9120(9) and 14.145(8) Å, respectively, while a = 3.8266(7) Å and c = 17.565(9) Å for the high-Tc phase (~46 K). The c increases in the high Tc phase, implying that the Tc is directly related to c. In (NH3)yLixFeSe material, the Tc varies continuously within the range of 39 to 44 K with changing x. Thus, the behavior of Tc is different from that of (NH3)yNaxFeSe. The difference may be due to the difference in the sites that the Na and Li occupy.