# I need help on Gardening Game

**URL:** <https://forum.makecode.com/t/i-need-help-on-gardening-game/38318>\
**Category:** Help\
**Created:** [July 28, 2025, 3:06am UTC](https://forum.makecode.com/t/i-need-help-on-gardening-game/38318 "2025-07-28T03:06:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Typhoon](https://avatars.discourse-cdn.com/v4/letter/t/ed8c4c/32.png) [@Typhoon](https://forum.makecode.com/u/Typhoon)\
**Post date:** [July 28, 2025, 3:06am UTC](https://forum.makecode.com/t/i-need-help-on-gardening-game/38318/1 "2025-07-28T03:06:47Z")

</div>

I am making a gardening game, and I have been trying to make an inventory system. I want to make it so you can only have one type of item in one inventory slot. But when i have been trying to make water go into my inventory slot it says, Program Error: Cannot read properties of undefined (reading ‘fields’). Here is the game [https://arcade.makecode.com/S30901-49437-34092-71621](https://arcade.makecode.com/S30901-49437-34092-71621)

---

<div class="post-metadata">

**Author:** ![DanielZ1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/danielz1/32/21989_2.png) [@DanielZ1](https://forum.makecode.com/u/DanielZ1)\
**Post date:** [July 28, 2025, 4:25pm UTC](https://forum.makecode.com/t/i-need-help-on-gardening-game/38318/2 "2025-07-28T16:25:37Z")

</div>

This is the fixed version BY CHATGPT

> **[Gardening](https://arcade.makecode.com/S92744-97942-48623-08432)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Typhoon](https://avatars.discourse-cdn.com/v4/letter/t/ed8c4c/32.png) [@Typhoon](https://forum.makecode.com/u/Typhoon)\
**Post date:** [July 28, 2025, 10:06pm UTC](https://forum.makecode.com/t/i-need-help-on-gardening-game/38318/3 "2025-07-28T22:06:25Z")

</div>

ok thanks
