Minepickup
Minepickup is a Fabric Minecraft mod that makes you pick up items that you mine. (if the code is a mess — sorry, I don't know how to do better)
Installation
Requires Minecraft 1.20.1, Fabric Loader >=0.14.25, Fabric API and Cloth Config API.
Configuration
The mod can be configured from within the file ".minecraft/config/minepickup.json5" or using modmenu.
License
Minepickup is licensed under MIT.
As soon as an item spawns from the broken block (1 game tick later), it instantly gets added to your inventory. The picking up animation, as well as picking up plopping sound, are just decorations.
Options are described better in tooltips. Edit: a bit outdated now, this blacklist is now called "Item blacklist", and there's also a new "Block blacklist"