# Cannot get position shadow to appear in custom block

**URL:** https://forum.makecode.com/t/cannot-get-position-shadow-to-appear-in-custom-block/35980
**Category:** Minecraft
**Created:** [April 21, 2025, 2:30am UTC](https://forum.makecode.com/t/cannot-get-position-shadow-to-appear-in-custom-block/35980 "2025-04-21T02:30:36Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![AndrewMackintosh91](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/andrewmackintosh91/32/21224_2.png) [@AndrewMackintosh91](https://forum.makecode.com/u/AndrewMackintosh91)
#### Post date: [April 21, 2025, 2:30am UTC](https://forum.makecode.com/t/cannot-get-position-shadow-to-appear-in-custom-block/35980/1 "2025-04-21T02:30:36Z")

</div>

I am trying to create a custom block that spawns fireworks with a bang.  
I want it to look something like this:

 ![Firework block basic](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/a/f/afa5d8ab904741105da5b4db3ace239425001d92.png)  
However, when I try to create the postion shadow, I just get a blank hole.

Here is my code so far:

```auto

/**
* Use this file to define custom functions and blocks.
* Read more at https://minecraft.makecode.com/blocks/custom
*/

/**
 * Custom blocks
 */
//% weight=100 color=#0fbc11 icon="✴"
namespace fireworks {
    /**
     * TODO: describe your function here
     * @param position: (0, 0, 0)
     * @param s describe parameter here, eg: "Hello"
     * @param e describe parameter here
     */
    //% blockId=fireworks_spawnFirework
    //% position.shadow=minecraftCreatePosition
    //% block="spawn firework at %position|with a bang %bang"

    export function spawnFirework(position: Position, bang: boolean): void {

    }
}

```

What am I doing wrong?

---

<div class="post-metadata">

### Author: ![AndrewMackintosh91](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/andrewmackintosh91/32/21224_2.png) [@AndrewMackintosh91](https://forum.makecode.com/u/AndrewMackintosh91)
#### Post date: [April 21, 2025, 9:56pm UTC](https://forum.makecode.com/t/cannot-get-position-shadow-to-appear-in-custom-block/35980/2 "2025-04-21T21:56:20Z")

</div>

Nevermind. I solved the problem. I just needed to restart Minecraft to make it show up.
