What is the name of the command again to display phantom spawning in Minecraft?
/ gamerule doInsomnia false
Nene already gives something that the phantoms don't spawn after the three nights without sleep.
Okay, I believe you.
Try / kill @ e [type = minecraft: phantom]
with a command block and a redstone clock
That is clear. But as in the question above and I have already written under another answer, a command is not wanted to kill the phantoms, but that they do not spawn at all.
Stop insulting me
How so? I don't.