VillagerViewer is a simple Minecraft Fabric mod that allows players to view and interact with a villager's inventory by sneaking and right-clicking on them. A stick can be configured as an extra step to access the villager's inventory.

The mod automatically creates a configuration file at:
config/villagerviewer.properties
requireStick (default: true) - When enabled, players must hold a stick to access a villager's inventory.requireStick=true)..jar file in your Minecraft mods folder.This mod is open-source and licensed under GPL v3. See LICENSE for details.