Ask a Question
Building a crafting system with stackable items
over 2 years ago by Trapper Markelz
In a game, there is a crafting system where players can stack items and consume them to level up the item.
In beamable, the same item (same content-id) is stackable in inventory, raising the quantity, but the properties are by instanceId. Is there any way to change the properties to be by content-id? What is needed is: store the level, skin, etc., of the player item inside the properties and also stack items to enable the crafting system.
What came to my mind is: only allow one item's instance and use property to control the quantity or store the item's properties inside a "Player's Inventory" on MongoDB.
Is there any better way to do this?