Stackable Item Definition
Stackable item system for the Lilia framework.
Overview
Stackable items can be combined together and have quantity limits. They display quantity visually and support splitting functionality.
PLACEMENT: - Place in: ModuleFolder/items/stackable/ItemHere.lua (for module-specific items) - Place in: SchemaFolder/items/stackable/ItemHere.lua (for schema-specific items)
USAGE: - Stackable items can be combined with other stacks - They can be split into smaller quantities - Visual indicators show quantity in inventory - Items are consumed when used - Maximum quantity is controlled by ITEM.maxQuantity
name
📋 Purpose
Sets the display name shown to players
💡 Example Usage
model
📋 Purpose
Sets the 3D model used for the item
💡 Example Usage
width
📋 Purpose
Sets the inventory width in slots
💡 Example Usage
height
📋 Purpose
Sets the inventory height in slots
💡 Example Usage
isStackable
📋 Purpose
Enables stacking functionality for this item
💡 Example Usage
maxQuantity
📋 Purpose
Sets the maximum quantity that can be stacked together
💡 Example Usage
canSplit
📋 Purpose
Allows players to split stacks into smaller amounts