The bug
When you spawn in a villager with an egg, it has a profession, but if you breed / use a spawn egg the villager will make a villager that has the old farmer skin, but when it grows up it has no profession, and no trade. And this 'non-villager' seems to be dominate ( always a non-villager ) when having a kid.
Code analysis
Code analysis by @unknown can be found in this comment.
Zombie villager fixed in 19w03b.
Linked issues
is duplicated by 37
relates to 5
Attachments
Comments 52
Those aren't green-robed villagers. Those are villagers with their profession defined as minecraft:none
.
Baby villagers growing up with no profession probably isn't intended. Additionally, they don't have a name defined (similarly to MC-140938), further proving that they aren't intended to have no profession.
This bug probably occurs because the baby villagers are trying to randomize the Profession
tag, which no longer exists in favor of the VillagerData
tag
Can confirm. I let a breeder run and all of the babies became without any profession after they grew up (or with profession named minecraft:none).
in addition to what is stated above. bred and got two villager kids. and result is none.
I also noticed many houses in savannah village set only spawned 3 profession-type villagers, and did not comply with breeding "criteria" (village had 12 buildings, with total of 18 doors).
after noticing this, I changed door positions (flush to exterior walls) and add 6 more more doors.
I wonder if the savannah village-breeding criteria failure caused the kid then grown into grownup villager become "nothing" profession.
Done create new ticket issue: MC-146594.
This villager can also be summoned using:
Relates to MC-140938, as it is another case where villagers have a chance to have a profession of "none".