# Stacking items in inventory in Unreal

**URL:** <https://forums.unrealengine.com/t/stacking-items-in-inventory-in-unreal/2699696>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [February 14, 2026, 9:30am UTC](https://forums.unrealengine.com/t/stacking-items-in-inventory-in-unreal/2699696 "2026-02-14T09:30:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wollyver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Wollyver](https://forums.unrealengine.com/u/Wollyver)\
**Post date:** [February 14, 2026, 9:30am UTC](https://forums.unrealengine.com/t/stacking-items-in-inventory-in-unreal/2699696/1 "2026-02-14T09:30:02Z")

</div>

Regarding inventory, can someone answer a question for me? I have an item in the world, this item is added to the inventory with a value of 3. Then I take another item from the world and it is also added with a value of 3, but the total value of the item is 5. So I need that when I add the two items to the inventory, the item has a total value of 5, and then there will be 1 left over, and this 1 will be transformed into another item that will also be in the inventory with a value of 1.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/f/2/cf2fd746e61c732ac12930bfabb97207d6c81a15.png)

Currently it looks like the second image, because of the “+” in the blueprint. When the value is greater than 5, it simply doesn’t combine them. In other words, in the part where I put a comment “preciso de um calculo aqui” I need something that makes it work as I described above.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/5/4/e546f4884ccf260a14d561f8ed9e3c7bb9b2eb4c.jpeg)

The image below shows another way I tried to do it; it works almost as expected, but I had to change the maximum stacking value of the item to 6, which I didn’t think was right. Also, if I interacted with an item with two values ​​of 3, for example, they still wouldn’t join together, but I believe that’s because I didn’t create a logic for it to happen. So, what could be done here?

 ![{D9B390AA-AF09-4C79-930A-4ED4ECCBFAF2}](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/f/9/8f9d05719a9107b428216db695ab2dfba7b6fe19.png)

 ![{1C6B2771-3623-4382-B500-7536179E1BB2}](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/6/7/f6727c0f8d3f0a422c671730e3c0e8a237a19ba5.jpeg)
