mojira.dev
MC-140961

Villager babies have no profession

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

MC-142433 Villager Dissapearing Resolved MC-142800 Breeding villager only creates Villager with Mason profession Resolved MC-141788 Villagers Breed into non-tradable villagers with the old textures. Resolved MC-141051 Villagers Breeding non-usable Brown Coats Resolved MC-141060 Baby villagers spawned from spawn eggs have no profession and no biome texture Resolved

Attachments

Comments 52

This villager can also be summoned using:

/summon villager ~ ~ ~ {VillagerData:{profession:"minecraft:none",level:*doesn't matter which level*,type:"minecraft:none"}}

Relates to MC-140938, as it is another case where villagers have a chance to have a profession of "none".

Yellow01, but are these the green robed villagers? And is this an intended thing? 

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. 

42 more comments

Yes but unemployed or nitwik babies villagers should have their biome-specific skin.

If their not having the right skin, then that is a different issue not related to this one

Done create new ticket issue: MC-146594.

Villages have child labor laws. Works as intended.

 

yea and what? do you think human children can have profession? (sorry for a bit bad english)

Alexander Gonzales

coschevi

Confirmed

Minecraft 18w50a, Minecraft 19w02a, Minecraft 19w03a, Minecraft 19w03c, Minecraft 19w04a, ..., Minecraft 19w08b, Minecraft 19w09a, Minecraft 19w11a, Minecraft 19w11b, Minecraft 19w12a

Minecraft 19w03b

Retrieved