A universal inventory system for the Godot game engine.
A universal inventory system for the Godot game engine.
GLoot is a universal inventory system plugin for Godot Engine 4. It provides a flexible set of nodes and resources for implementing inventories with support for item stacking, grid-based layouts, weight constraints, and drag-and-drop UI controls. Fully written in GDScript with built-in serialization for easy save/load integration.
Inventory — base inventory class supporting add, remove, transfer, and stack operations with unlimited capacity.
InventoryItem — represents an item stack with configurable stack sizes and properties inherited from prototypes.
Item prototypes defined via JSON resources, allowing shared properties across item types.
Full serialization support — all classes provide serialize() and deserialize() methods for JSON, binary, or custom formats.
GridConstraint — organize items on a 2D grid with configurable size (Vector2i) and 90° rotation support.
WeightConstraint — limit inventory capacity by total weight, with per-item unit weight properties.
Constraints can be combined (grid + weight) for complex inventory rules.
CtrlInventoryGrid — displays inventory contents on a 2D grid with customizable field size, icons, and stretch options.
CtrlItemSlot — single-slot control node for equipment slots or quick-access bars.
Built-in drag-and-drop support for item transfer between inventories.
Pure GDScript — no native compilation required, install and go.
Example scenes included — basic transfer, stacked transfer with weight, grid transfer, and combined grid + weight.
Modular design — use only the components you need, from simple lists to full grid inventories.
Save/Load ready — serialization built into every class.
Author: Peter Kiš — License: MIT — Requires: Godot 4.4+
No reviews yet. Be the first!
Free
Latest: v3.0.1 · External content
Creator
Godot Foundry Team