Unlimited Stacks by Baku v1.2.0 - SPECIAL STACK UPDATE
Target: Minecraft Bedrock 1.26.40+
Script API: stable @minecraft/server 2.9.0

NEW IN v1.2
- Totem of Undying now works with the virtual unlimited stack system.
- Water Buckets now work with the virtual unlimited stack system.
- Lava Buckets now work with the virtual unlimited stack system.
- Shields now work with the virtual unlimited stack system.
- Totems and Shields are counted in the offhand and auto-refill there after use/break.
- Water/Lava Bucket refill preserves the returned empty bucket when inventory space allows.
- Enchanted/custom-named/lore Shields are left separate to protect their special data.

HOW IT WORKS
Minecraft itself does not allow a literal visible ItemStack above an item's vanilla maxAmount.
This addon keeps one normal visible stack/item and stores the overflow as a persistent per-player virtual reserve.
The visible item automatically refills as items are used, placed, dropped or consumed.

TEST
1. Apply Unlimited Stacks [Special Stack Update] to the world.
2. Enter the world and confirm the startup message appears.
3. Give yourself multiple Totems, Water Buckets, Lava Buckets or normal Shields.
4. They should consolidate to one visible item while the action bar shows the full total.
5. Put a Totem/Shield in the offhand and use it; the next reserve item should refill automatically.
6. Use Water/Lava Buckets; the next filled bucket should refill while the empty bucket is preserved when possible.

All rights and credits: Baku
