How to Make Inventory System in Godot [Tutorial]

I wrote a grid Inventory tutorial for Godot 4.3, inspired from Minecraft inventory system. This godot inventory system is Modular and follows a natural Godot’s tree-like structure.

Recording 2024-08-26 at 08.51.32

In the tutorial, we have:

  1. Inventory items that have icon, name and amount of the item stored in inventory.
  2. Inventory slot, used to hold an item.
  3. Inventory system, composed on many slots.
  4. GUI input handling, such as picking an item, dropping an item, selecting half an amount of item, and so on.
  5. In demo project, it is also demonstrated how we can create an item object in inventory (for example, when picking an object from the game world), and how we can throw object from inventory to the game world.

In successive tutorial, I have extended the inventory system to make a trading system in Godot. Trading system inspired from Tradewinds 2 or other trading games. But the exact implementation is more like the Minecraft trading system, in which we place an item in one slot & get a item from other slot.

This trading system can further be used for different kinds of games such as vending machine simulators.
Recording 2024-08-26 at 08.50.59

5 Likes