# How to put a tilemap in a tilemap

**URL:** <https://forum.makecode.com/t/how-to-put-a-tilemap-in-a-tilemap/42040>\
**Category:** Help\
**Created:** [February 9, 2026, 4:55am UTC](https://forum.makecode.com/t/how-to-put-a-tilemap-in-a-tilemap/42040 "2026-02-09T04:55:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)\
**Post date:** [February 9, 2026, 4:55am UTC](https://forum.makecode.com/t/how-to-put-a-tilemap-in-a-tilemap/42040/1 "2026-02-09T04:55:35Z")

</div>

So I was working on a Minecraft game and I was wondering how to put a smaller “structure tilemap” into the larger “world tilemap” so it would have stuff like houses and portals and whatnot

---

<div class="post-metadata">

**Author:** ![dogSquid](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dogsquid/32/26689_2.png) [@dogSquid](https://forum.makecode.com/u/dogSquid)\
**Post date:** [February 9, 2026, 5:36pm UTC](https://forum.makecode.com/t/how-to-put-a-tilemap-in-a-tilemap/42040/2 "2026-02-09T17:36:53Z")

</div>

> [@Tilemaps connecting by doors](https://forum.makecode.com/t/tilemaps-connecting-by-doors/4115/13):
>
> Here’s an example:
> 
> ![](https://pxt.azureedge.net/blob/e9dfde3b71399a21bd1f586efa4748d0fa6775a0/static/logo.svg) [Microsoft MakeCode](https://arcade.makecode.com/78306-73899-03440-54795)
> 
> ![](https://pxt.azureedge.net/api/78306-73899-03440-54795/thumb)
> 
> ### [door-worked-example](https://arcade.makecode.com/78306-73899-03440-54795)
> 
> Made with ❤ in Microsoft MakeCode Arcade.
> 
> I added comments to explain the code. Let me know if you have any questions!

Is this what you mean?

(not made by me; `@richard` made it for someone else)

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [February 9, 2026, 5:38pm UTC](https://forum.makecode.com/t/how-to-put-a-tilemap-in-a-tilemap/42040/3 "2026-02-09T17:38:24Z")

</div>

Use the doors blocks in tile util or use arrays to organise them and store the tile maps and connections. You can also manually make different tiles and code them in with overlap blocks

---

<div class="post-metadata">

**Author:** ![coder42](https://avatars.discourse-cdn.com/v4/letter/c/b782af/32.png) [@coder42](https://forum.makecode.com/u/coder42)\
**Post date:** [February 9, 2026, 5:38pm UTC](https://forum.makecode.com/t/how-to-put-a-tilemap-in-a-tilemap/42040/4 "2026-02-09T17:38:53Z")

</div>

Hi, to my knowledge, what you’re looking for is makecode’s tilemaps extension. It contains a lot of new blocks, including one to connect tilemaps by a “door”, essentially allowing you to create the houses and portals you mentioned. Also, depending on what you’ve already implemented or what your plans are for allowing the player to move between adjacent tilemaps, I’d recommend checking out Richard’s arcade-overworld extension, which makes this kind of thing much more intuitive. It can be found at [github.com/riknoll/arcade-overworld](http://github.com/riknoll/arcade-overworld)

Hope this helps!

---

<div class="post-metadata">

**Author:** ![Rune](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/rune/32/18951_2.png) [@Rune](https://forum.makecode.com/u/Rune)\
**Post date:** [February 9, 2026, 5:42pm UTC](https://forum.makecode.com/t/how-to-put-a-tilemap-in-a-tilemap/42040/5 "2026-02-09T17:42:32Z")

</div>

The color-coded tilemaps extension works great for this, as you can just draw the house image onto map the world image with 1 block. Otherwise you would need nested for each loops to run through a tilemaps one by one and place each tile on a position on the main map.

---

<div class="post-metadata">

**Author:** ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)\
**Post date:** [February 9, 2026, 11:19pm UTC](https://forum.makecode.com/t/how-to-put-a-tilemap-in-a-tilemap/42040/6 "2026-02-09T23:19:37Z")

</div>

I feel nest loops would be easier lol

---

<div class="post-metadata">

**Author:** ![Bifrosty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bifrosty/32/24819_2.png) [@Bifrosty](https://forum.makecode.com/u/Bifrosty)\
**Post date:** [February 12, 2026, 7:47pm UTC](https://forum.makecode.com/t/how-to-put-a-tilemap-in-a-tilemap/42040/7 "2026-02-12T19:47:01Z")

</div>

The default tilemap utility extension has a very handy “get tile at location in specific tilemap” block. You could use this to “scan” tilemaps and then place them at a location within a separate larger tilemap.
