Villager carrot farm not working?

The villager carrot farm is fairly large but he still won’t mine the carrots that are near him. He also won’t give any to the other villagers which the hopper minecarts should take. It is in 1.14.4 with Aternos Multiplayer server which is fairly laggy. Would anyone know some fixes?