Blacklist items you never want to pick up. Blocked items are left on the ground in singleplayer and LAN; on servers they are picked up and instantly thrown back out.
Pickup Filter Overview
Pickup Filter Selection Menu
Pickup Filter Selecting Item