when you name tag an animal or villager ect they are still despawning even when in an enclosed structure of less then 20 x 20.
when you name tag an animal or villager ect they are still despawning even when in an enclosed structure of less then 20 x 20.
It is recommended to make enclosures entirely inside a single chunk so mobs can't reach the border (14x14 maximum). That can reduce despawning from crossing chunk borders.