-
Bug
-
Resolution: Unresolved
-
None
-
1.21.4 Pre-Release 1
-
None
-
Unconfirmed
-
(Unassigned)
Description:
When an non-stackable item has its "count" value changed from its NBT, it does not display that in a container, such like a chest, but they are stacked, they just don't show the value, unless you take the item with the cursor, which is a strange and inconsistent behavior.
Re-production steps:
- Give yourself a Netherite Sword
- Place down a Chest
- Put the Netherite Sword anywhere in the chest.
- Stand on top of the chest
- Run: /data modify block ~ ~ ~ Items[0].count set value 5
- Take the Netherite Sword out by hovering over it with your cursor, then click a number on your keyboard like 1, 2 or 3. This will move the Sword out of the chest, directly in one of your 10 hotbar slots.
- Once you've done that you can close the chest.
- Now, open your inventory and move the item around using numbers on your keyboard as well.
- Open the chest again
- Observe how the Sword just disappears
You can additionally test it with the Test Game that I attached.
Expected Result:
I expected the items to stay, if it managed to enter my inventory.
Actual Result:
They disappeared from my inventory after opening the chest. The swords seem to be gone.
stacking_nonstackables_but_item_disappears.mp4