Hi people I wanted to know if there's something in the 1.13.2 which gives what mobs can spawn only in certain areas and then a few blocks next to this area again
Yes. These are light sources and spawers.
I already knew but there's a command or something?
There's no direct command, but you can use plugins for that.