Is it possible to prevent monsters from spawning in a specific area of a world? I am currently making a survival map and want monsters to be able to spawn throughout the world, but I don't want them in a certain area. I do want animals to spawn in this area, however. I have worldedit, so if there is a way to do this with it, that would work. I made command blocks that would kill certain entities in an area, but that keeps their death animation and particles. I want to keep the biome as plains so that animals can spawn and so that the weather still works in the area.
You could change the biome to a mushroom biome and add passive mob spawners in maybe? That way passive mobs still spawn, and no hostile ones do.. The wiki lists it as a temperate/ lush biome, meaning it'll rain anywhere under the build limit.
The drawbacks of that would be that mooshrooms spawn in those areas and you would be limited to entire chunks, meaning the passive area might not be the specific size you want it to be.
The only other thing I can think of is lighting, like highlyze said.