mojira.dev
MC-48593

Wrong villagers harvest crops

I've noticed this bug in the past 1.8 snapshots. When I enter a village, sometimes I notice strange behaviors. The first happens all the time: In the small farm houses, where the farmers should be, are usually other random villagers. Some of these villagers will begin to harvest crops, just like farmers. In fact, I've seen villagers that spawned in libraries or churches, and act the same, suggesting they don't need to spawn in a farmhouse to do it. I have pictures of blacksmiths and a butcher in this behavior, but have seen every type doing it. I found another example on this desert superflat seed (has to be the superflat "desert" present): -6503170732033053842, coordinates X-1415, Z1660, where a priest and blacksmith were farming.

NOTE: This bug can be uncommon at times, and cannot be seen while the villager is spawned with a spawn egg. It can be seen upon new village generation only. It seems the seed DOES in fact matter.

NOTE 2: It appears that it does not matter which world type, nor biome it spawns in. I chose superflat so as to find one easier. Also, villager spawning DOES matter depending on the specific buildings, in all past versions, including 1.7.4, farmer villagers all spawned in the small houses near the farms.


Code analysis by @unknown can be found in this comment

Linked issues

Attachments

Comments 27

What house a villager spawn in has nothing to do with what kind of villager it is as far as I know.

No, that's not true, in every version up until the 1.8 snapshots all the small houses spawned farmers, libraries spawned librarians, churches priests, so on. The random villagers causes a severe inbalance in professions.

Please provide a sample seed/coordinates (and it looks like a superflat world right?). And what exact version was this world created in?

I just updated the description saying I do not know if the seed matters. I'll test it soon and update the note again. also these specific worlds were created in 14w07a.

Even if the seed doesn't matter, having a specific one that is known to cause the issue helps to reproduce and thus troubleshoot and fix any possible issue.

17 more comments

Confirmed for 1.10 Release. A random weapon forger simply harvested a crop before my eyes.

Confirmed 1.10, Had a village spawn with 4 farmer huts and a church. Occupants were 2 librarians and a priest.

Relates to or duplicated by MC-102352, if so please link to the code analysis

Possibly the villagers think they are outside of the village.

Please check if that's still an issue in the latest 1.14 development snapshot.

Paul Smith

(Unassigned)

Confirmed

(Unassigned)

farm, villager

Minecraft 14w05b, Minecraft 14w06b, Minecraft 14w07a, Minecraft 14w11b, Minecraft 14w18b, ..., Minecraft 1.10.2, Minecraft 1.11.2, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 18w16a

Retrieved