wyrt_inventory
v1.0.0Inventory
Core inventory management system with slots, stacking, and persistence
Features
- Configurable inventory slots and capacity
- Item stacking with max stack sizes
- Database persistence per character
- Add/remove/move item operations
- Inventory full detection
- Slot-based organization
- Automatic cleanup of empty stacks
Quick Start
const invModule = context.getModule('wyrt_inventory');
const invSystem = invModule.createInventorySystem('my_game');
// Add item to inventory
const success = await invSystem.addItem(playerId, 'iron_ore', 5);
// Remove items
await invSystem.removeItem(playerId, 'iron_ore', 3);
// Get full inventory
const inventory = await invSystem.getInventory(playerId);Exports
InventorySystemManages player inventories