# Multi-part buildings

**URL:** <https://discourse.cataclysmdda.org/t/multi-part-buildings/5065>\
**Category:** The Toolbox\
**Created:** [February 14, 2014, 2:40am UTC](https://discourse.cataclysmdda.org/t/multi-part-buildings/5065 "2014-02-14T02:40:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mad\_Jackal](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mad_jackal/32/253_2.png) [@Mad\_Jackal](https://discourse.cataclysmdda.org/u/Mad_Jackal)\
**Post date:** [February 14, 2014, 2:40am UTC](https://discourse.cataclysmdda.org/t/multi-part-buildings/5065/1 "2014-02-14T02:40:17Z")

</div>

Let’s say I wanted to make a building with multiple parts to it, like the Hospital or Mansion. How would I go about doing it?  
I’m already familiar with how to add a single building to CDDA, I’m just not too clear on how I’m supposed to go about making sure they spawn adjacent to one another. I’ve searched around some, with no luck. Any advice?

---

<div class="post-metadata">

**Author:** ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)\
**Post date:** [February 14, 2014, 5:06am UTC](https://discourse.cataclysmdda.org/t/multi-part-buildings/5065/2 "2014-02-14T05:06:37Z")

</div>

I’m afraid we don’t have support for this in JSON yet, you have to manipulate some stuff in the mapgen code to make it happen at the moment. Specifically overmap.cpp generate()
