This is a recreation of the AutoInventory plugin, which automatically places all blocks in the inventory (if they drop something) that are mined with a tool.
The jar plugin for NukkitX can be downloaded here: https://nukkitx.com/resources/autoinventory.162/