Additionally, you get monster's name over their head. Or if you have cheats enabled, you can spawn a mob with the tag {PersistenceRequired:1} with command blocks that prevent the mob from despawning. The cheapest way to have non-despawning zombie is to have it pick up an item.Name Tags. Name Tags are a usable item that can apply a name written by the player to any mob, hostile or passive. For one to be used, the Name Tag must first be renamed in an Anvil. This will always cost just a single experience level, and must be done to use the item. To use the Name Tag, press the Use button (right-click for Java) on the Included are screenshots of the environment the villagers are / were in. The trading stands they're in are reinforced with carpet; but as you may know, mobs think carpet is a solid block, so Jr. Zombies will not pass through it. (This was extensively tested in a creative world) One final note: These villagers were all near the world's spawn. Pillagers can be very useful due to the items they drop upon being killed: 8.5% chance for a crossbow when killed by a player or tamed wolf; drop chance increases by 1% per level of Looting. 5 EXP when killed by a player or tamed wolf. In Bedrock Edition, however, Pillagers can also drop the following: 0–2 arrows with each level of Looting
A villager can be turned into a zombie villager if it is killed by a trident thrown by a drowned: the chance of conversion is 0% on Easy difficulty, 50% on Normal, and 100% on Hard and Hardcore. In Bedrock Edition, a drowned can use the trident's melee attack if its target is within three blocks. The melee attack deals 9 damage. Melee attack []
"A monster which has been named with a name tag will despawn if players log out more than 100 blocks from them. However, one created from a renamed spawn egg will despawn as normal. If a monster is holding any items or wearing any armor that was given by a player or picked up from the ground, it will not despawn." Xqa0gm.