Skip to content

Using Inventory Database

Rafael Correa edited this page Sep 23, 2023 · 2 revisions

This page demonstrates how an inventory Database is used by the addon nodes.

After creating a database and filling it with information, such as items, you can start using it in your project through nodes that extend NodeInventorySystemBase:

  • Inventory
  • Hotbar
  • InventoryHandler
  • Crafter
  • CraftStation

Let's take an example of adding an inventory node, after adding it we get a warning warning that we need to configure the database for this node

image

image

See the inventory node inspector, there we have the base class with the database property waiting to be configured:

image

Select the previously created database:

image

Okay, now all items that will be added to the inventory will correspond to the database

Continue to the next tutorials: [TODO] Using the Inventory node

Clone this wiki locally