Adding mod registry check to villager replacement