Godot inventory system

From thedivergentai/GD-Agentic-Skills · View interactive version

Godot inventory system is an AI agent skill from the GitHub repository thedivergentai/GD-Agentic-Skills. Expert blueprint for inventory systems (Diablo, Resident Evil, Minecraft) covering slot-based containers, stacking logic, weight limits, equipment systems, and drag-drop UI. Use when building RPG inventories, survival item management, or loot systems. Keywords inventory, slot, stack, equipment, craf

How to use this skill

Skill file

Scenario triggers (which script?)

| Scenario | Open |

|---|---|

| Slot bag (WoW-style stacks) | inventory_data_resource.gd + item_slot_data.gd + inventory_ui_controller.gd |

| Tetris grid (Diablo/RE footprint) | grid_inventory_logic.gd / inventory_grid.gd |

| Equipment | Item Resources + RPG stats complement; drag via drag_and_drop_slot.gd |

| Loot table | loot_table_resource.gd + item_pickup_node.gd |

| Persist | inventory_persistence.gd (ids + amounts, not nested Resources) |

| Consumables | consumable_item_logic.gd |

| DB lookup | item_database_loader.gd |

MANDATORY reads

  1. inventory_item_resource.gd — item blueprint
  2. inventory_data_resource.gd — two-pass stack + weight validation
  3. inventory_ui_controller.gd — reactive UI that reuses slot controls

NEVER Do in Inventory Systems

Decision trees

Add item

  1. Weight/volume OK?
  2. Pass 1: fill partial stacks
  3. Pass 2: empty slots / grid footprint
  4. Return overflow count; single UI signal

UI

Save

Deep recipes (on demand)

| Topic | Reference / script |

|-------|-------------------|

| Resource item model | core-architecture.md + inventory_item_resource.gd |

| Two-pass stack add | inventory-manager.md + inventory_data_resource.gd |

| Tetris grid footprint | elite-technical-patterns.md + grid_inventory_logic.gd |

| Equipment & crafting | equipment-system.md / crafting-integration.md |

| Reactive UI & save ids | ui-integration.md + inventory_persistence.gd |

Reference

Progressive disclosure: open Official Documentation links only when researching a specific API; load Related Skills when routing to a peer domain — do not preload the whole lattice.

Official Documentation

Related Skills

Prerequisites
Complements
Downstream / consumers
Master
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.