Better Villager Pickup
A simple server-side mod that allows you to pick up villagers. Since this is a server-side mod, it works with vanilla clients.
This is a fork of Villager Pickup which implements a fix to prevent players from putting picked up villagers into mob spawners or spawning them inside other villagers (by default this would spawn a baby villager with no data). This fork also adds a few additions like showing the villager's profession, type, health, workstation and bed locations and trades in the item tooltip.
To pick up a villager, simply sneak and right click on them.
The villager spawn egg will retain all NBT data of the villager meaning it will stay the same way you picked it up. (keep xp, trades, etc)

Planned Features
- Add a config option to change which entities can be picked up
How to Install Better Villager Pickup (Mod)
Better Villager Pickup by McMelonTV is verified for Fabric across Minecraft versions 1.21.1 (latest release: 1.1.0, file size: 11 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.21.1) and platform (Fabric).
- Make sure you have the compatible loader or environment installed for Fabric.
- Move the downloaded Better Villager Pickup file into your Minecraft
.minecraft/modsfolder and launch the game.
update nbt to item components
add health, trades, bed location and workstation location to lore
other versions will be supported soon (maybe)
fabric api is a required dependency for now but will likely be removed in the next release