# My Extension

**URL:** <https://forum.makecode.com/t/my-extension/6253>\
**Category:** Show & Tell\
**Tags:** extension\
**Created:** [February 18, 2021, 7:59pm UTC](https://forum.makecode.com/t/my-extension/6253 "2021-02-18T19:59:03Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)\
**Post date:** [February 18, 2021, 7:59pm UTC](https://forum.makecode.com/t/my-extension/6253/1 "2021-02-18T19:59:03Z")

</div>

This adds lots of new blocks

> **[agent14bricks/agent-14-essential-extensions](https://github.com/agent14bricks/agent-14-essential-extensions)**
>
> Will add various miscellaneous blocks, such as average, array of all sprites, and so much more!

(NOTE: the array of all sprites block was written by @richard. All I did was turn it into extension form)

---

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [February 18, 2021, 8:42pm UTC](https://forum.makecode.com/t/my-extension/6253/2 "2021-02-18T20:42:00Z")

</div>

Nice 👍  
Could you post a picture of them? (And will you add more stuff upon request?)

---

<div class="post-metadata">

**Author:** ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)\
**Post date:** [February 18, 2021, 10:01pm UTC](https://forum.makecode.com/t/my-extension/6253/3 "2021-02-18T22:01:37Z")

</div>

Will take requests, but I am too lazy to take pics…

---

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [February 18, 2021, 10:04pm UTC](https://forum.makecode.com/t/my-extension/6253/4 "2021-02-18T22:04:01Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/5/501ef4409caae830073becdcc87e8cbe579eed63.png)

That red color is good.

---

<div class="post-metadata">

**Author:** ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)\
**Post date:** [February 19, 2021, 5:26pm UTC](https://forum.makecode.com/t/my-extension/6253/5 "2021-02-19T17:26:05Z")

</div>

Added a new block, that @cosmoscowboy wanted

- does sprite kind exist

---

<div class="post-metadata">

**Author:** ![cosmoscowboy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cosmoscowboy/32/1718_2.png) [@cosmoscowboy](https://forum.makecode.com/u/cosmoscowboy)\
**Post date:** [February 19, 2021, 10:22pm UTC](https://forum.makecode.com/t/my-extension/6253/6 "2021-02-19T22:22:01Z")

</div>

I cannot remember which block ‘I wanted’, but I do like being mentioned 😉 . Perhaps you can take a screenshot of the block ‘does sprite kind exist’ and how it is used. On my Windows machine I use a tool from Microsoft called ‘Snipping Tool’; it is very easy to use.

---

<div class="post-metadata">

**Author:** ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)\
**Post date:** [February 20, 2021, 12:58am UTC](https://forum.makecode.com/t/my-extension/6253/7 "2021-02-20T00:58:34Z")

</div>

I would take screenshots with that, but sometimes it breaks windows file explorer and the task bar so I need to restart the process with task manager.

---

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [February 20, 2021, 1:52am UTC](https://forum.makecode.com/t/my-extension/6253/8 "2021-02-20T01:52:02Z")

</div>

Was gonna take another pic of the blocks but I think something is broken…

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/d/d3df8986295c4eab1d464333dd4e5c0f007c6c4a.png)

---

<div class="post-metadata">

**Author:** ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)\
**Post date:** [February 20, 2021, 3:29am UTC](https://forum.makecode.com/t/my-extension/6253/9 "2021-02-20T03:29:58Z")

</div>

Yes that…  
I’m seeing with the make code team to see bout that. For now you need to add the blocks through JavaScript.

---

<div class="post-metadata">

**Author:** ![cosmoscowboy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/cosmoscowboy/32/1718_2.png) [@cosmoscowboy](https://forum.makecode.com/u/cosmoscowboy)\
**Post date:** [February 22, 2021, 11:08pm UTC](https://forum.makecode.com/t/my-extension/6253/10 "2021-02-22T23:08:32Z")

</div>

I had a quick look at the custom.ts file. Please correct if I am wrong, but it seems that the function ‘doesKindExists’ does not use the variables ‘kind’.

> export function doesKindExists(kind: number): boolean {  
> let temporaryVar = 0  
> for(let value of Extras.arrayOfAllSprites()){  
> temporaryVar += 1  
> }  
> if(temporaryVar \> 0){  
> return true  
> }else{  
> return false  
> }  
> }

---

<div class="post-metadata">

**Author:** ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)\
**Post date:** [February 22, 2021, 11:56pm UTC](https://forum.makecode.com/t/my-extension/6253/11 "2021-02-22T23:56:24Z")

</div>

Hmmm, that’s odd. It may just be a random bug that reverted part of the code. Will fix tomorrow.
