mojira.dev
MC-145863

Villagers breed even if there are not enough beds

Villagers try to breed even if there are not enough beds for new villager

Related issues

Attachments

Comments

migrated
[media][media][media][media][media][media]
[Mod] Neko

Possibly intended. Villagers give off angry particles when breeding if there aren't enough beds.

ZeNico13

Still in 1.14 Release but it seems intentional since after trying, they emit storm particles.

migrated

Copying from MC-149783 because it might have additional info:

World was created in 1.13.2 in MC Realms. As preparation for 1.14, lots of beds were placed (more than existing villagers). After updating to 1.14, all villagers were in love mode without any prior interaction after the update. A handful of children spawned (probably up to the number of beds), but most villagers have been staying in love mode ever since. Work stations have been placed now, but this issue appeared before. New village(r)s (created in 1.14) seem to be ok for me.

migrated

I find this to be true in Bedrock Realm as well.  Villagers continue to breed when not enough beds to sleep.  Villagers have quit meeting / sleeping and returning to work stations.

violine1101

@unknown, this ticket is about the Java Edition bug only, for Bedrock Edition please use the MCPE project.

migrated

Over 400 villagers in the multiplayer game. Breeding is uncontrolled. Server suffering lag issues. Server admin has composed a /kill command to delete all unemployed villagers, and the dozens of golems that spawn in conjunction with them. This is very unfortunate.

migrated

The server admin to which she refers is still flailing trying to figure out how to excise ONLY the unemployed villagers, but I'm coming pretty close to "kill them all and let's consider shutting down the 1.14.1 server and playing some other version for a while." This has been active since MARCH? Seriously?

migrated

@unknown, my solution has been to remove all composters (the villagers will not even attempt to reproduce once they run out of food), then killing all the villagers I don't want. If the admin doesn't have a way to kill specific villagers, you guys can save the villagers you want to keep by trapping them into boats, then mass-killing the rest by ringing the bell (or wait until night time) and lava bucket'ing whichever houses the villagers decide to go into.

migrated

Ok, we'll have to look at the food then. We were trying to be "nice" giving the villagers garden areas, but it would appear having farms within the village contributes to this problem. I'm the admin, I just don't know how to /kill @e[type=Minecraft:villager,nbt=
{profession:unemployed-something-something-goes-here}] to kill the excessive unemployed among them. While this doesn't actually "help" with the bug, my hope is to mitigate the 400+ unemployed villager problem tied into this bug.

Another note with this specific to 1.14.1, I believe Villagers were removed from the Passive Mob Cap, but if there isn't another cap Villagers fall under, guess what? You have an EXPLOSION of villagers as there is no longer anything to stop infinite breeding if you have the conditions that allow it. Yay!

migrated
[media]

I'm having the same problem as long as they have food they are breeding no matter if there is any beds or not

migrated

Yup, and I see a Villager-splosion in your near future in that crop cage. 😞

migrated

I wasn't having any problem until 1.14.1 - one bed produced one villager as appropriate.

migrated

Please, someone could write a command to kill all unemployed villagers? It would let me play while waiting for a fix.

migrated

I can confirm. On my server,  one of my player's iron farms just would not stop breeding villagers. Most villagers were farming profession. There were 160 beds in the area and eventually we got up to 650+ villager count because they wouldn't stop breeding. 

[media]

 

bdm68

I think the command to kill unemployed villagers is: /kill @e[type=villager,nbt={VillagerData:{profession:"minecraft:none"}}]

I recommend testing the command first in a test world.

On-topic remarks: I have a village in my spawn chunks and the villager breeding is getting out of hand with 30 or more villagers so far. I even started a level 5 raid just for the purpose of thinning them out a bit, that didn't work because there are over 40 iron golems in the village as well.

migrated

Thanks a million, Raytruth and bdm68. Raytruth's copy of the command has a slash after the "nbt=" that should not be there. But when that is removed, executing it in a test world worked as desired (and needed).

migrated

So sorry, i tried to make a correction but it didn't work, i'll delete the comment to avoid confusion.

ZeNico13

Still in 1.14.2 Pre-Release 1 and 1.14.2 Pre-Release 2

migrated

1.14.1: For us, after our server’s iron farm population exploded (32 beds, 140+ villagers) we filled the population down to only 2 “existing” villagers (fishermen) and threw in a single stack of carrots, and still we were quickly up over 40 villagers again...
About to try again with 2 brand-new, un-fed villagers who are confirmed to have claimed beds in the iron farm.

As an aside, do any of you know if the “consumes 12 carrots/potatoes to produce a baby villager” applies to both parents or only to the “mother” (villager under which the baby spawns)?

Thanks!

migrated

This is still happening in 1.14.2 

This screenshot is from my iron farm (based on the design by Avomance https://www.youtube.com/watch?v=o0J5V78YfQo&t=37s ). There are 22 beds and 21 workstations (recently swapped from composters to cartography tables to see if that would help), and far more than 22 villagers.

[media]
migrated

Also still having issue with 14.2 even if I remove all the beds and villagers, and essentially restart a village with 4 spawned in villagers with 4 beds they get up to 11 at least.

migrated

This is still happening in 1.15.2 and the latest snapshot 20w16a.
Villagers are still able to breed more than there are beds avaible for them.
A simple way to test this is making an enclosed area and put down a bunch of beds and spawn in one villager pr bed, e.g. 25 bed and 25 villagers
Then give them a bunch of food and they will start to try and breed with each other and some of them will succeed. As soon as nightfall comes and they go to bed it is clearly vissible that there are more villagers than beds.
I think it might be related to the villagers getting random up and night and forgetting their beds making the other think theres a vacant bed avaible and that they therefore are able to breed.
I have tested this in freshly generated superflat worlds with structures dissabled to not have natural villages influence the tests.

In this screenshot it is seen there are 36 beds and 37 villagers, they started with only 2 and a bunch of food and has bred them selves to overpopulate the enclosed area. The surplus villagers have been killed off a couple of times and yet new appear every day.

[media]


I dont know if I should create a new ticket or if this should be reopened?

migrated

So this is still an issue in the latest snapshot 20w17a, the villagers are able to overpopulate a village in regards to how many beds are available.

migrated

This is still an issue in 20w18a.

Steps to reproduce:
1) make a confined area with lets say 40 beds
2) spawn in one adult villager pr bed, in this case 40
3) to make sure they are all bonded to a bed, make them sleep in the beds at least once (set time to 12000 ticks and when they are all sleeping set the time back to day again)
4) give them plenty of food to make sure they can breed
5) set the time to around 11000 ticks
6) observe some of the villagers right before bedtime (12000 tick) will produce a baby resulting in there being more villagers than beds.

violine1101

@unknown, could you please create a new ticket about this (if we don't have one already)?

migrated

I could not find any old tickets that were still open and this one is the most recent I could find.

I have created a new ticket MC-182291

Gravinser

migrated

Community Consensus

Mob behaviour

beds, breeding, villager

Minecraft 19w11a, Minecraft 19w11b, Minecraft 19w12a, Minecraft 19w12b, Minecraft 19w13a, ..., Minecraft 1.14, Minecraft 1.14.1, Minecraft 1.14.2 Pre-Release 1, Minecraft 1.14.2 Pre-Release 2, Minecraft 1.14.2

Minecraft 1.14.3 Pre-Release 1

Retrieved