# Question for smart people

**URL:** <https://forum.makecode.com/t/question-for-smart-people/42102>\
**Category:** Help\
**Tags:** extension\
**Created:** [February 12, 2026, 3:34am UTC](https://forum.makecode.com/t/question-for-smart-people/42102 "2026-02-12T03:34:36Z")\
**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 12, 2026, 3:34am UTC](https://forum.makecode.com/t/question-for-smart-people/42102/1 "2026-02-12T03:34:36Z")

</div>

I was working on an extension and I was wondering how to create enums that can be added on to like the sprite kinds  
Edit in spritekind.ts I found this

```auto
    //% blockHidden=1 shim=ENUM_GET deprecated=true
    //% blockId=spritetype block="$kind" enumInitialMembers="Player,Projectile,Food,Enemy"
    //% enumName=SpriteKindLegacy enumMemberName=kind enumPromptHint="e.g. Coin, Fireball, Asteroid..."
    export function _spriteType(kind: number): number {
        return kind;

```

I am wondering how does this make the sprite kinds editable  
I know this  
`enumPromptHint="e.g. Coin, Fireball, Asteroid..."`  
make the add sprite kind text but how does it get edited?

---

<div class="post-metadata">

**Author:** ![British\_Dog](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/british_dog/32/34353_2.png) [@British\_Dog](https://forum.makecode.com/u/British_Dog)\
**Post date:** [February 12, 2026, 5:38pm UTC](https://forum.makecode.com/t/question-for-smart-people/42102/2 "2026-02-12T17:38:05Z")

</div>

the most im gonna say is I tried messing with this once and I had to reboot my PC so yeah

---

<div class="post-metadata">

**Author:** ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)\
**Post date:** [February 12, 2026, 5:48pm UTC](https://forum.makecode.com/t/question-for-smart-people/42102/3 "2026-02-12T17:48:00Z")

</div>

This looks like a deprecated version of the function. You might have better luck with the version actually in use. I’ll try to find it myself and look at it. Obviously the thing to do is simply copy/paste this exact code into your project and see if it works. Remove the deprecated tag ofc.

---

<div class="post-metadata">

**Author:** ![RandomGames](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomgames/32/14334_2.png) [@RandomGames](https://forum.makecode.com/u/RandomGames)\
**Post date:** [February 12, 2026, 5:50pm UTC](https://forum.makecode.com/t/question-for-smart-people/42102/4 "2026-02-12T17:50:38Z")

</div>

Im not smart enough for this 👍

---

<div class="post-metadata">

**Author:** ![RoboVacDev](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/robovacdev/32/29619_2.png) [@RoboVacDev](https://forum.makecode.com/u/RoboVacDev)\
**Post date:** [February 12, 2026, 5:57pm UTC](https://forum.makecode.com/t/question-for-smart-people/42102/5 "2026-02-12T17:57:31Z")

</div>

Can’t you already create and edit sprite kinds already?

---

<div class="post-metadata">

**Author:** ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)\
**Post date:** [February 12, 2026, 7:47pm UTC](https://forum.makecode.com/t/question-for-smart-people/42102/6 "2026-02-12T19:47:07Z")

</div>

Ok looks like the documentation is here:

> **[Defining blocks](https://makecode.com/defining-blocks)**
>
> This section describes how to annotate your MakeCode APIs to expose them in the Block Editor.

Scroll down to the section labeled “Creating enumerations with blocks”

Actually, the correct implementation is directly above the one you found, like, just go back and look at \_spriteKind instead of \_spriteType. They are right next to each other!

The specified function simply defines the function that takes in the enum and returns the value, and the block definition causes a sprite kind enum to be created when the block is used. Looks like the version you found was depreciated because the “ENUM\_GET” shim only allows for adding new options, so they made “KIND\_GET” to support renaming and deleting as well.

---

<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:** [September 29, 2026, 5:06pm UTC](https://forum.makecode.com/t/question-for-smart-people/42102/7 "2026-09-29T17:06:42Z")

</div>

oh man this is getting bookmarked because this site is OP w Microsoft tho for being helpful also

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/8/3/83bcf4f03f8330b21ead4ea0ddbc7de66b0f1f1a.png)  
MECURY!!! how dare you @richard you foul pigeon disgracing my brother like this I will smite you DOWN/j
