how do i prevent players from picking up specific items through datapacks

im trying to restrict players from picking up ender pearls and totems through datapacks
Continue to help post