Is there a way to get my librarians back after they were just killed by zombies? [duplicate]
Solution 1:
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.