So I can't find an answer to this ANYWHERE, so I made an account here to see if anyone knows. I'm making an epic adventure map that is like a cross between skyrim and the legend of zelda, but I found that now every time I leave 2 of the chunks where I have custom villagers the villagers de-spawn and the command block I used to summon them appears again after I had destroyed it earlier. What's strange is that anything else that I have altered in the chunk wasn't rolled back. Only the villagers, command blocks, and other blocks that I altered a few seconds before placing the command block are altered. I tried exiting the world and re loading but that has done nothing and I have only seen this effect command blocks used to summon villagers, but only 2 are acting up and all of the rest are fine. Help!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ EDIT: I found the problem! If you leave the villager's trade empty when you spawn them they will despawn and the command block will re appear when you leave the game and resume it. So I have to put random items in their trade inventory to keep that from happening.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
EDIT:
I found the problem! If you leave the villager's trade empty when you spawn them they will despawn and the command block will re appear when you leave the game and resume it. So I have to put random items in their trade inventory to keep that from happening.