You do not want a switch for this - you’re right in thinking it’d be too messy. Where is the input coming from? A database / player input? How do we know what needs spawning where?
Fore some reason I want to add a Trap to a grid.
How do we know that? The player chooses it from the interface? Or you have XY sheet and we read rows & columns? Is this like a map editor?