BetterStacking - Enhanced Item Stacking in Minecraft
BetterStacking is a practical quality-of-life improvement that significantly simplifies inventory management. This modification enables stacking of items from the vanilla game that previously occupied individual slots.
Looking at beds and enchanted books as examples, you can see how the modification works:
Vanilla game:

With BetterStacking:

With this mod, you can stack nearly any item (except buckets). If an item has durability (like flint and steel), the entire stack functions as a single unit - when one item is used, the stack count decreases to 63. The maximum limit of 64 items is due to Minecraft's technical constraints.