# Mild assistance needed

**URL:** <https://forum.makecode.com/t/mild-assistance-needed/35441>\
**Category:** Help\
**Tags:** game\
**Created:** [April 8, 2025, 1:15pm UTC](https://forum.makecode.com/t/mild-assistance-needed/35441 "2025-04-08T13:15:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harmanuary](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/harmanuary/32/21855_2.png) [@Harmanuary](https://forum.makecode.com/u/Harmanuary)\
**Post date:** [April 8, 2025, 1:15pm UTC](https://forum.makecode.com/t/mild-assistance-needed/35441/1 "2025-04-08T13:15:12Z")

</div>

So basically i want to have a proper inventory like minecraft but slightly different. The inventory shows the main items in the game and i want a number to display below showing the amount of resources (even if you have none)

> **[ScarShot V21 (The KnightHood Update)](https://arcade.makecode.com/S39813-24156-08027-93248)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

here is the game for reference any questions just ask and i can help

---

<div class="post-metadata">

**Author:** ![TheBestialCelestial](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thebestialcelestial/32/34092_2.png) [@TheBestialCelestial](https://forum.makecode.com/u/TheBestialCelestial)\
**Post date:** [April 8, 2025, 6:29pm UTC](https://forum.makecode.com/t/mild-assistance-needed/35441/2 "2025-04-08T18:29:31Z")

</div>

You could use the text sprite extension, that usually works well for variables that need to be displayed onscreen.

---

<div class="post-metadata">

**Author:** ![MeatballDev](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/meatballdev/32/28502_2.png) [@MeatballDev](https://forum.makecode.com/u/MeatballDev)\
**Post date:** [April 8, 2025, 10:48pm UTC](https://forum.makecode.com/t/mild-assistance-needed/35441/3 "2025-04-08T22:48:38Z")

</div>

> [@Inventory extension](https://forum.makecode.com/t/inventory-extension/8662):
>
> Not long ago, [I posted some code on drawing an inventory](https://forum.makecode.com/t/simple-ish-inventory-code/8593). Now in extension form! It requires Joey’s sprite utils extension. Here’s an example: Controls: (for example above) Inventory closed: A to “eat.” B to cycle through slots. Inventory open: Use arrow keys to select items. Use A to transfer items. Use B to switch the cursor between the toolbar and inventory. Yes, the example is quite big but it’s smaller than doing it without an extension. winkplay_button Here are the blocks, there a…

> [@Simple(ish) inventory code](https://forum.makecode.com/t/simple-ish-inventory-code/8593):
>
> Here’s a simple(ish) inventory system I made in Arcade: Controls while inventory is closed: Use A to “use.” (actually just pops the selected item from the toolbar) Use B to cycle through slots. Controls while inventory is open: Use arrow keys to select items. Use A to transfer the selected item between the toolbar or the inventory. Use B to move the cursor between the toolbar and inventory. Would definitely appreciate user feedback on how “natural” the controls are and what I can improve…

---

<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:** [April 8, 2025, 11:16pm UTC](https://forum.makecode.com/t/mild-assistance-needed/35441/4 "2025-04-08T23:16:46Z")

</div>

The way I would do this is to decide on a certain order for all the items you can have, and then just have a single array filled with 0s at the start. Whenever you collect an item, the number in the array is increased at whatever position the item is at in the order of items.

Then you just display the items in the item order in the inventory, as well as all the numbers in the array, and each number will correctly map to its respective item. You can probably do this with the Text Sprite extension like @TheBestialCelestial mentioned, which I’m pretty sure lets you draw text on a clear background! If that’s too many sprites, I’m pretty sure someone has made a “draw text on image” block, idk if it’s in base Makecode tho (I use JavaScript which has that function built into base Makecode)

---

<div class="post-metadata">

**Author:** ![Harmanuary](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/harmanuary/32/21855_2.png) [@Harmanuary](https://forum.makecode.com/u/Harmanuary)\
**Post date:** [April 8, 2025, 11:41pm UTC](https://forum.makecode.com/t/mild-assistance-needed/35441/5 "2025-04-08T23:41:54Z")

</div>

Do you have any projects with examples? I have it as more of a hotbar so the inventory code and extension @MeatballDev linked isn’t exactly what im thinking. I just need to figure out how to make the number display underneath and that number needs to be able to go up when you collect an item.

---

<div class="post-metadata">

**Author:** ![Josef](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/josef/32/12457_2.png) [@Josef](https://forum.makecode.com/u/Josef)\
**Post date:** [April 9, 2025, 2:32am UTC](https://forum.makecode.com/t/mild-assistance-needed/35441/6 "2025-04-09T02:32:35Z")

</div>

would recommend fancy text more
