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 : (iron_chestplate, arrow, bottle, etc.) After that, click on the paper to have the item added. Now the item has been added. If you want only the thing you wrote to get picked up, choose the mode "whitelist," and if you wish the item not to be picked up, select the mode "blacklist". When you are done, click on the clay block so you can enable the pick-up filter.