8

I have my own server running Minecraft version 1.17.

After hours of trying to get the best librarian trades, I have them all. However, just before going AFK, they where killed by a zombie. I killed the server, and logged out, but I was too late. All my librarians were killed.

Is there a way to get them back? Maybe something that will undo the last 20 deaths? All I found was a spawn villager command, but that does not seem to have a parameter for the book you want the librarian to sell.

Is there a way to get my librarians back after they were just killed by zombies?

3
  • 6
    Possible duplicate of How do I create a villager with custom trade offers?
    – pppery
    Jul 5, 2021 at 15:45
  • 2
    Maybe consider this a learning experience and build better fortifications for your villages next time?
    – nick012000
    Jul 5, 2021 at 15:54
  • 2
    Alternatively, consider backing up frequently (which has the added bonus of protecting your worlds in the event of e.g. drive failure, flash flooding, house fire, power surge, zombie apocalypse, Armageddon).
    – Vikki
    Jul 5, 2021 at 19:07

1 Answer 1

12

The spawn villager command can be given additional parameters to modify the data of a Villager. I will not claim to be an expert in using such commands, but what I can do is link this external tool which will allow you to customize a villager and generate the resulting code to be input into a command block. Using this tool, you can customize your villagers to your hearts content, even being able to make them unkillable.

0

Not the answer you're looking for? Browse other questions tagged .