# Extension In an Extension

**URL:** https://forum.makecode.com/t/extension-in-an-extension/11830
**Category:** micro:bit
**Tags:** extension
**Created:** [January 21, 2022, 11:46pm UTC](https://forum.makecode.com/t/extension-in-an-extension/11830 "2022-01-21T23:46:15Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![GMat915](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gmat915/32/5653_2.png) [@GMat915](https://forum.makecode.com/u/GMat915)
#### Post date: [January 21, 2022, 11:46pm UTC](https://forum.makecode.com/t/extension-in-an-extension/11830/1 "2022-01-21T23:46:15Z")

</div>

So I’m currently making an extension, and I want to make a custom block.  
But, I need a different extension to do that.  
Could I add an extension to my extension?  
Thanks!  
-GMat915

---

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [January 22, 2022, 12:30am UTC](https://forum.makecode.com/t/extension-in-an-extension/11830/2 "2022-01-22T00:30:04Z")

</div>

Yep! If you are editing your extension in the MakeCode editor, you can add an extension just like you would with a normal project and it will be added to the user project when they use your extension.

If you’re editing outside the MakeCode editor, you can do this by editing the pxt.json of your project. Here’s an example where I added the [tilemaps extension](https://github.com/microsoft/pxt-tilemaps) to an arcade project:

```json
{
    "name": "Untitled",
    "description": "",
    "dependencies": {
        "device": "*",
        "tilemaps": "github:microsoft/pxt-tilemaps#v1.12.0"
    },
    "files": [
        "main.blocks",
        "main.ts",
        "README.md",
        "assets.json"
    ],
    "preferredEditor": "tsprj"
}

```

Note the “dependencies” map entry

Be careful when editing this file though! If you mess up the JSON, you can break your extension.
