The fix to MC-157133 overhauled the way item stacks are handled codewise in a way that prevents some worlds from being updated to newer versions where the fix is implemented. Included is a world download with 4 problem areas to demonstrate the problem.
The world "Overstacking Problem Demo" includes a storage system containing stacked unstackable items in various containers marked with magenta glazed terracotta: https://www.mediafire.com/file/btlf86ncmaq6w6s/Overstacking_Problem_Demo.zip/file
Loading the world in 1.20.4 yields the following results:
✔ All Containers Marked with magenta glazed terracotta contain stacks of empty shulker boxes.
✔ When separated the empty boxes behave like unstackable items.
✔ The empty shulker boxes cannot be made to stack together again.
Loading the world in versions 1.20.5+ yields:
❌ All Containers Marked with magenta glazed terracotta only contain individual empty shulker boxes, effectively deleting 98.5% of the empty boxes stored by simply updating the world and loading it in the new version.
Thank you for your report!
After consideration, the issue is being closed as Working as Intended.
Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.
Full Version History – Snapshot Version History – The official Minecraft feedback site
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki