mojira.dev
MC-199619

baby villagers AI have problem going back home

At sunset adult villagers head home and sleep in bed, meanwhile baby villagers seem to have problem getting into doors and wander around for a while. When a baby villager try to open a door it closes right after so can't enter and then search for other houses. So player should open the door or push them to successfully get inside.

Attachments

Comments 5

Please provide a screenshot of the area with the F3 debug screen enabled.

Baby villagers often fails to enter the house(either open and then instantly close the door, or they manage to get inside the door like 0.3 block and then get out) even when there's available bed inside. Adult villagers properly enters house as they do.
It might seems this has something to do with hitboxes, like the program didn't recognized baby villagers are inside.

Use the /data get entity command on the baby villager and provide a screenshot of the outcome.

commands used were

/summon villager ~ ~ ~ {Age:-10000,CustomName:'{"text":"testbabyvillager"}'}

/data get entity @e[name=testbabyvillager,limit=1]

and in normal world  generation natually spawned baby villager AI has same behavior.

I am unable to reproduce this issue in 21w19a. The pathfinding of baby villagers returning home seems normal and nothing appears out of the ordinary.

anon123

(Unassigned)

Unconfirmed

(Unassigned)

1.16.2

Retrieved