I have yearned for multiple wandering villagers to stay put; however, whenever I name them or even set their NBT tag to persistent, they despawn in survival. It does not matter if I were to stay in a 20-block radius; they despawn.
I have yearned for multiple wandering villagers to stay put; however, whenever I name them or even set their NBT tag to persistent, they despawn in survival. It does not matter if I were to stay in a 20-block radius; they despawn.
This is by design. They are supposed to despawn after 40 minutes of staying in loaded chunks in the world, regardless of what is done. What can be done, however, is that you can send them to unloaded chunks (f.e. in the nether) so that that clock does not count down. That way you can keep them for when you need them. Careful though, as you will only have 40 minutes with them.