Mod Quickstack (DropOff) – adds a function with which you can quickly drop (transfer) all items from the inventory to the nearest chest, similar functionality is available in Terraria.
The mod adds 2 buttons to your inventory, the first one will transfer all your inventory (without the hotbar) to the nearest chest and highlight it. The second button will transfer items only if there are items of this type in the chest. The chest should be within 6-7 blocks of you. You can set up a shortcut key for both functions and use them without opening your inventory. Thus, you can quickly and easily sort resources.
How to install the mod:
Install all additional mods if specified.
Download mod and copy to .minecraft / mods
Launch the forge version of the game in the launcher.