Blocks dropped when mined by the player when a tool is wielded are automatically placed in the inventory if it is not full, and if the block would drop something when mined.
There are four commands:
/dropwhenfull (Ops only)
By default, if the inventory is filled, mined blocks are dropped rather...