inventory-crafting-logic

Implement slot-based inventories and recipe-driven crafting for Unity games.

Updated Feb 25, 2026
One-click install
npx skills add https://github.com/Criezzz/Gametopia2026 --skill inventory-crafting-logic
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: inventory-crafting-logic
Source: https://github.com/Criezzz/Gametopia2026/tree/main/.agent/skills/inventory-crafting-logic
Command: npx skills add https://github.com/Criezzz/Gametopia2026 --skill inventory-crafting-logic

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Provides a reusable, slot-based inventory and recipe-driven crafting architecture for Unity games so teams avoid fragile, ad-hoc item handling and stacking bugs while accelerating development of loot, equipment, and crafting systems.

Core Features & Use Cases

  • Slot-based storage & stacking: Slot model with stack handling, max stack sizes, and overflow reporting.
  • ScriptableObject item definitions: ItemDataSO for identity, rarity, value, consumable/equipment flags, and editor-friendly asset creation.
  • Recipe-based crafting: CraftingRecipeSO and CraftingSystem that validate ingredients, remove components, and add results with basic overflow handling.
  • Use Cases: Implement RPG inventories, loot/drop systems, shop buy/sell flows, and player crafting benches in Unity projects.

Quick Start

Generate and import the provided templates into your Unity project, wire ItemDataSO assets to the InventorySystem and CraftingSystem, then test crafting recipes by using the CraftingSystem's TryCraft method.

Frequently Asked Questions about inventory-crafting-logic

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement a slot-based inventory system with item stacking in Unity?

A slot-based inventory system in Unity manages item storage using slot models that handle stack limits and overflow reporting, preventing fragile ad-hoc item handling bugs. This architecture uses ScriptableObject item definitions to standardize item identity, rarity, and max stack sizes.

How does recipe-based crafting validation work for RPG loot systems in Unity?

Recipe-based crafting validation in Unity uses CraftingRecipeSO assets to define required ingredients, and a CraftingSystem component validates those ingredients before removing components and adding crafting results. This system includes basic overflow handling to manage inventory capacity during item creation.

Can I use ScriptableObject for item definitions and equipment management in Unity?

Yes, ScriptableObject is used for item definitions in Unity to establish identity, rarity, value, and consumable or equipment flags. This editor-friendly asset creation method supports slot stacking, inventory events, and equipment management for RPG inventories and shop buy/sell flows.

What is the best way to handle inventory overflow when adding crafting results in Unity?

The best way to handle inventory overflow in Unity is to use a crafting system that includes basic overflow reporting and handling during recipe validation. When a TryCraft method adds results, the slot-based storage model checks max stack sizes to prevent item duplication or loss.

Do I need specific Unity dependencies to set up a crafting bench and loot drops?

No external dependencies are required to set up a crafting bench and loot drops in Unity. The implementation provides self-contained scripts for inventory events, recipe validation, and item stacking that integrate directly into Unity game development scenarios like RPG equipment management.

Why does my Unity inventory system have item stacking bugs and how can I fix them?

Item stacking bugs in Unity inventory systems often occur due to fragile, ad-hoc item handling that lacks standardized max stack sizes and overflow reporting. Implementing a reusable slot-based storage architecture with ScriptableObject item definitions fixes these issues by enforcing consistent stack limits.