getting a villager spawn egg with specific trades

So, 1.19.4 purpur server. I may have accidentally scuffed someone’s villagers (will know after the restart in an hour) and in case I did i basically just wanna kill and replace them.

I have OP so I went in creative and held left ctrl and middle click on the villager to try to pick it up with the nbt data like you would a container, but it didn’t work and I just got a normal villager spawn egg.

Is there something else I need to do so I can basically copy a current villager into a spawn egg?

Note that the way I may have accidentally scuffed it is when I updated this plug-in:

https://www.spigotmc.org/resources/antivillagerlag.102949/

Some of them are basically stuck with their AI disabled when it shouldn’t be
SpigotMC - High Performance Minecraft
Was this page helpful?