# Can't find "choose one of" block

**URL:** <https://forum.makecode.com/t/cant-find-choose-one-of-block/28728>\
**Category:** Help\
**Created:** [May 12, 2024, 9:47pm UTC](https://forum.makecode.com/t/cant-find-choose-one-of-block/28728 "2024-05-12T21:47:29Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrGibbsTeach](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mrgibbsteach/32/15174_2.png) [@MrGibbsTeach](https://forum.makecode.com/u/MrGibbsTeach)\
**Post date:** [May 12, 2024, 9:47pm UTC](https://forum.makecode.com/t/cant-find-choose-one-of-block/28728/1 "2024-05-12T21:47:29Z")

</div>

Hi  
I completed a tutorial that used the blocks. It was found in the arrays catagory.  
However, this block is not available in a new project I have started.  
Any idea?  
Thanks

 ![choose one of](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/4/4dc5617e3403037fd4bb44b0519ecdc6bb2ac4a5.png)

---

<div class="post-metadata">

**Author:** ![RobbyZero](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/robbyzero/32/17188_2.png) [@RobbyZero](https://forum.makecode.com/u/RobbyZero)\
**Post date:** [May 13, 2024, 2:05am UTC](https://forum.makecode.com/t/cant-find-choose-one-of-block/28728/2 "2024-05-13T02:05:28Z")

</div>

I believe that is an extension.

---

<div class="post-metadata">

**Author:** ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)\
**Post date:** [May 13, 2024, 4:54pm UTC](https://forum.makecode.com/t/cant-find-choose-one-of-block/28728/3 "2024-05-13T16:54:20Z")

</div>

Hmm, not sure why it’s called that in the tutorial. But the equivalent in the real workspace is the “get random value from …” block.

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

(It’s in arrays, in the read category)

---

<div class="post-metadata">

**Author:** ![KIKIvsIT](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kikivsit/32/10492_2.png) [@KIKIvsIT](https://forum.makecode.com/u/KIKIvsIT)\
**Post date:** [May 13, 2024, 4:57pm UTC](https://forum.makecode.com/t/cant-find-choose-one-of-block/28728/4 "2024-05-13T16:57:11Z")

</div>

Hi there! The `choose one of` block is what we call a “magic block,” made just to simplify tutorials. If you’d like to use it in your project, you can copy the link from a project where you’re already using it and import that link as an extension.

Otherwise, @Sarge is right. It’s something that can be replicated by choosing a random image from an array.

---

<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:** [May 13, 2024, 4:57pm UTC](https://forum.makecode.com/t/cant-find-choose-one-of-block/28728/5 "2024-05-13T16:57:18Z")

</div>

Isn’t that the “get random value from (list)” block? It’s at the bottom of the “read” section in the arrays tab for me. You could always use  
“(list) get value at ((length of array (list)) [-] (1)”

---

<div class="post-metadata">

**Author:** ![MrGibbsTeach](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mrgibbsteach/32/15174_2.png) [@MrGibbsTeach](https://forum.makecode.com/u/MrGibbsTeach)\
**Post date:** [May 13, 2024, 4:57pm UTC](https://forum.makecode.com/t/cant-find-choose-one-of-block/28728/6 "2024-05-13T16:57:22Z")

</div>

Any idea what the extension is called. I can’t see it. Thanks!

---

<div class="post-metadata">

**Author:** ![RobbyZero](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/robbyzero/32/17188_2.png) [@RobbyZero](https://forum.makecode.com/u/RobbyZero)\
**Post date:** [May 13, 2024, 6:47pm UTC](https://forum.makecode.com/t/cant-find-choose-one-of-block/28728/7 "2024-05-13T18:47:43Z")

</div>

I’m not sure

---

<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:** [May 13, 2024, 7:13pm UTC](https://forum.makecode.com/t/cant-find-choose-one-of-block/28728/8 "2024-05-13T19:13:16Z")

</div>

That’s so interesting! I wonder if there is a way to get “magic blocks” from different tutorials into one project. Could be interesting idk.

---

<div class="post-metadata">

**Author:** ![MrGibbsTeach](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mrgibbsteach/32/15174_2.png) [@MrGibbsTeach](https://forum.makecode.com/u/MrGibbsTeach)\
**Post date:** [May 14, 2024, 2:34am UTC](https://forum.makecode.com/t/cant-find-choose-one-of-block/28728/9 "2024-05-14T02:34:26Z")

</div>

Thanks everyone! I know I am way off with this setup but can someone please point me in the correct direction?  
Error: **Argument of type ‘Sprite’ is not assignable to parameter of type ‘Image’.**  
**Property ‘drawIcon’ is missing in type ‘Sprite’.**

 ![Screenshot 2024-05-14 082610](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/7/7bae31d8ef42eeb5142d705a0aa4ac0c156abf44.png)

---

<div class="post-metadata">

**Author:** ![KIKIvsIT](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kikivsit/32/10492_2.png) [@KIKIvsIT](https://forum.makecode.com/u/KIKIvsIT)\
**Post date:** [May 14, 2024, 2:36am UTC](https://forum.makecode.com/t/cant-find-choose-one-of-block/28728/10 "2024-05-14T02:36:32Z")

</div>

I think the error is trying to tell you that you’re setting the projectile twice. The space where you have “get random value from list” only needs an image. That means you only need to add the image of the hearts to your array, then you can call those in the next line.

(Basically, remove the “sprite of kind [Projectile]” from around the hearts.)

Hope that helps!

---

<div class="post-metadata">

**Author:** ![MrGibbsTeach](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mrgibbsteach/32/15174_2.png) [@MrGibbsTeach](https://forum.makecode.com/u/MrGibbsTeach)\
**Post date:** [May 16, 2024, 4:17pm UTC](https://forum.makecode.com/t/cant-find-choose-one-of-block/28728/11 "2024-05-16T16:17:03Z")

</div>

Thanks!  
I think this must be close to the solution however there isn’t a way to just put the image in the array is there? I can’t sperate it from the sprite block.

---

<div class="post-metadata">

**Author:** ![KIKIvsIT](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kikivsit/32/10492_2.png) [@KIKIvsIT](https://forum.makecode.com/u/KIKIvsIT)\
**Post date:** [May 16, 2024, 4:31pm UTC](https://forum.makecode.com/t/cant-find-choose-one-of-block/28728/12 "2024-05-16T16:31:04Z")

</div>

Check **Advanced-\>Images** there’s a solo image block hanging out in there.
