A ready-to-open, modular 2D inventory and crafting source project for developers who want a working foundation they can adapt to their own game. The included demo lets you add items, manage stacks, move items between slots, inspect selected items, craft an Iron Sword, and test JSON save/load immediately.
Show full description...
A working foundation for your game—without rebuilding inventory and crafting from scratch.
✨What’s included
Inventory: A fixed-size inventory component with configurable slot count, stackable and non-stackable items, per-item stack limits, safe slot swaps, item counting, addition and removal. Inventory data remains separate from the visual interface and reports changes through a signal.
Crafting: Resource-based recipes with item IDs and required quantities. The crafting system verifies ingredients and output capacity before consuming items. The demo includes an Iron Sword recipe using Wood and Iron Ore.
User interface: A 2D slot grid, mouse drag-and-drop, clear selection highlighting, stack quantity badges, and an item detail card showing a configurable name and description. The navy-and-copper demo theme is pixel-art-inspired and can be replaced to match your game.
Save and load: JSON persistence stores item IDs and quantities—not Godot resources. Registered item resources are restored through the item database when loading.
Ready-to-open demo: A connected Godot project with 24 visible slots, five sample items, one sample recipe, and controls to add test items. The package also includes English and Spanish documentation and 68 automated regression checks.
How to start
- Extract the ZIP.
- Import project.godot in Godot and run the project with F5.
- Add Wood and Iron Ore using the demo controls.
- Craft the Iron Sword, select items to inspect their details, and drag items between slots.
- Read README.md or README.es.md before integrating the reusable components into your own project.
Designed for your own game
Item definitions are editable Godot Resources. Replace the sample names, descriptions, icons, recipe, theme and demo controls with content appropriate for your project. The demo presents a 2D pixel-art-inspired interface, but the backend is independent of that visual style.
Important scope
This is a Godot source template, not a standalone game or browser-playable build. It does not include equipment, a hotbar, stack splitting, inventory sorting, item-use actions, weight limits, cross-inventory dragging, CSV import, or a general-purpose loot system. The included recipe produces one result item per craft. Tested with Godot 4.7.2; other Godot 4 versions have not been verified.
License and sample art
One purchase licenses the reusable system for multiple games or applications made by the buyer, including commercial projects, under the included LICENSE.md. Reselling or redistributing the template as a standalone development product is not permitted. The five sample item icons are for testing the demo only and must be replaced before distributing a finished game. Template branding must also be replaced in the buyer’s finished product. The bundled Space Grotesk font has its own SIL Open Font License.
Feedback
If you find a problem, leave a comment with your Godot version, steps to reproduce it, the error message, and what you expected to happen. Created by Roberto Ponce Llanos (Modular 2D Systems).
Spend less time building inventory menus. Spend more time making your game.
Thank you for supporting my work.
— robertdev