Oh, that map is only to demonstrate command spawn via grid based. It'll only spawn grid based, there's no other logic behind it. To make a farm game, you'll need a lot eventing, more than what shown in that map.
Can't I use it while passable events the 'not spawn on' function of the spawn event?
I don't understand what you mean. Try write this to not spawn on parameter: impassable events
This way it won't spawn on a tile that is occupied by an event that isn't Through ON.
There are a lot of other ways to achieve the same result but it's really up to your eventing skill.
Thank you for your answer, it was helpful!