mojira.dev
MC-152832

Search range for beds of "imported" Villagers is reduced

Setup: I created a village in a survival (Realms) world by "importing" two Villagers from an existing village and then starting a new village in the middle of nowhere. I gave these two Villagers their own names through the use of a Name Tag and let them create 5 new Villagers in this new village, who all remained nameless due to the lack of a Name Tag.

Bug: Since I am still building the village, I am constantly moving the beds around. The 5 new Villagers all have no problems with this and can find a new bed when night falls. However, the two "imported" Villagers just stay standing around at night and don't even move at all. Only when I place a bed really close to them will they find it and sleep in it.

Observations: It seems that the detection range of beds for normal Villagers is around 42 blocks (taxicab distance in all dimensions), but the imported Villagers stop detecting around 8 or 10 blocks. I haven't tested the detection range of Job Site blocks for the Villagers.

Speculation: It is no coincidence that these two Villagers are the ones who have trouble. I imagine it is either the fact that they originally came from another village or the fact that they've been named. I don't have the resources to easily test different cases.

Attachments

Comments 4

I also had one of the imported named Villagers stand over an occupied bed the whole night:

[media]

Having the same problems, I can only seem to get 10 villagers in my artificial village even tho there are around 16 beds in it
Placing more beds around DOES allow them to breed, and after that, if I remove the beds they can find new ones (Kids seem to use the beds they are supposed to, instead of the newly placed ones tho..which is weird, but some adults, particularly 1 guy, just sits on someone else's bed the whole night, even tho there is a free bed literally attached to the other one he's trying to sleep on).
The village is mostly made of small 7x7 houses that are about 20 blocks from each other, all beds have enough space above them, 2+ blocks.
My fisherman also seems to not want to work for some reason, he never goes at his fishing docks anymore even tho he used to for a LONG time, if I bring the barrel next to him he does use it.

Man, I now know why such complex mechanics are not often implemented, these guys are so buggy...

Also, I've seen villagers sleep in all houses, but they seem to change the place they sleep almost every day, kids do it less often. I have double beds in each house (2 beds next to each other) and sometimes a villager will only try to sleep in one of them even if it's occupied and there other bed is free.

Please check if that's still an issue for you in the latest 1.14.4 stable release or the latest 1.15 development snapshot.

I can confirm this happened to me in 1.14.4, but it was an original generated village (the villagers also where generated / breed in this village). I modified the generated village and set up 5 small farms (means: I created five farmland sites with 5 composters around the center of the Village and breed 5 farmers.) I also restocked the generated houses with enough beds, and placed some other job site blocks (grindstone/fletching table etc.), and started to breed them and raised the population.

At one point i recognized two farmers at one farm site (with one composter), however only one of them was working on the farmland, the other one did nothing, only running arround. I did a quick check and found six farmers in the village, only 5 of them working as the other one didn't have a job site block. This happened to other villagers too (toolsmith, librarian, fletchers).

Later then i recognized that some of the villagers didn't go into their beds at night, but just wandering outside and perhaps fled from the mobs. Others got slain (even those villagers that where sleeping in the bed previously). Now only 3 Farmers are left and some other villagers, i would say i have lost more than half the population because they didn't go insed to the bed.

The map has been started with 1.14.4, seed is "7420288264310442297", village is at 167 68 520 (safe TP spot).

I will upload an example picture (NotRouteToBed): A villager (Toolsmith) was staying at the spot where i placed the mossy cobblestone with the torch, the house in front has four beds (three of them occupied!). He dont pathfind to the bed, however when i break the cobblestone in the house (also showed in the picture) he started to move forward and sleept in the bed.

Edit1:
it may be related to a missing / modified meeting point? had only one meeting point (with the bell, as i needed the other for my artifical village). So i set up 3 meeting points in the village, now they sleep all in the beds. However, i have 31 beds in the village; currently there are 12 adult villagers left (however the started to breed). Weird.

Nurio Marayana

(Unassigned)

Unconfirmed

Village system

Minecraft 1.14.1

Retrieved