This little mod makes blocks go directly into your inventory, when you destroy them with any tool.
Do not use a hammer anymore or you'll get a block into your inventory and also a block on the ground. (or do it if you want to multiply blocks :P)
Be careful! If your inventory is full then blocks will just be destroyed.
Works in Singleplayer and Multiplayer. Just extract the .zip file into your plugins folder.
Source Code: https://paste.ofcode.org/38Wahny2RbvNr8PfyLRp7bZ