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
AntiVillagerLag
4 Replies
Discount Milk
Discount Milk2y ago
You would have to modify the trades using command s I'd find a datapack online that modifies villager trades and steal the command out of that
Zenologia
ZenologiaOP2y ago
No way to just grab the data? If not it’s only like 6 I need to replace so it’s not horrible.
Discount Milk
Discount Milk2y ago
Probably can grab the data straight from the entity Either through something like mcaselector or a command that tells you the NBT data Outside my knowledge there though
Zenologia
ZenologiaOP2y ago
Gotcha. I’ll try to look for something. Ty tho !

Did you find this page helpful?