Minecraft wiki entry for Villager_(old), associated text: Even when gamerule keepInventory is set to false, villagers that are killed with any of the available items above will not drop them once they are killed.