InventoryMouse allows mouse-bound hotbar slots to function in the inventory screen, just like in modern vanilla Minecraft. Works with offhand also. Press your mouse-bound hotbar slot to swap with any slot in your inventory, just like any key-bound slot.
(I couldn't find another mod that backported this feature somehow)
All the coding and logic in this mod was AI generated by Claude.ai, as I have 0 modding experience.