inventory-crafting-logic

Implement slot-based inventory and recipe crafting for Unity using ScriptableObjects.

71|11|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/nlelouche/Unity-SkillForge --skill inventory-crafting-logic-nlelouche
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: inventory-crafting-logic
Source: https://github.com/nlelouche/Unity-SkillForge/tree/main/.agent/skills/02-gameplay/inventory-crafting-logic
Command: npx skills add https://github.com/nlelouche/Unity-SkillForge --skill inventory-crafting-logic-nlelouche

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides a robust system for managing in-game items, including storage, stacking, and a flexible recipe-based crafting mechanism.

Core Features & Use Cases

  • Slot-based Inventory: Store items in a defined number of inventory slots.
  • Item Stacking: Stack identical items up to a defined maximum size.
  • Recipe Crafting: Define recipes with required ingredients and craft new items.
  • ScriptableObject Integration: Uses ScriptableObjects for item and recipe definitions, promoting data-driven design.
  • Use Case: Implement a complete inventory and crafting system for an RPG, allowing players to collect loot, manage their inventory, and craft powerful new gear.

Quick Start

Use the inventory-crafting-logic skill to add a 'Health Potion' item with 'Common' rarity to the player's inventory.

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 in Unity?

A slot-based inventory system in Unity stores items in a defined number of slots using ScriptableObjects for item definitions. It manages item stacking up to a maximum size and supports item rarity and equipment slots.

How do I set up recipe-based crafting in Unity?

Recipe-based crafting in Unity uses ScriptableObjects to define recipes with required ingredients and results. You specify the ingredient items and quantities needed to craft new items, enabling flexible data-driven gameplay mechanics.

Can I use ScriptableObjects to manage RPG item rarity and equipment slots?

Yes, ScriptableObjects manage RPG item rarity and equipment slots by defining item data assets. This approach supports consumable item usage and distinct equipment categories without hardcoding values in your gameplay scripts.

How do item stacking limits work in a Unity inventory system?

Item stacking limits in a Unity inventory system restrict identical items to a defined maximum stack size within a single slot. This prevents excessive slot usage while maintaining accurate item counts during gameplay.

What is the best way to handle consumable item usage in a Unity RPG?

Handling consumable item usage in a Unity RPG involves defining the consumable effect within a ScriptableObject and triggering it during gameplay. The inventory system then removes the consumed item from the slot-based storage.