Just place this block inside a village and it will give you access to all the trades for the villagers within range.
If the block is within the range of a village it will automatically detect that and show a list of all the villagers in said village. (ie. all EntityVillager within {village radius} blocks from {village center position})
If not, it will show all villagers in a 16 blocks radius around the block.
If you feel the need to talk dirty to the developer: MMD Cat Mods - Discord