Command: /pickupfilter
Moreover, an inventory will pop up, then you will have to press on the anvil which is called *Add Item* and an anvil page will open, you will have to type the name of the item you want to be picked up, or the item you don't want to it picked up, for example ...