Earthquake-induced landslides (EQIL) are one of the most catastrophic geological hazards. Immediate and swift evaluation of EQIL hazard in the aftermath of an earthquake is critically important and of substantial practical value for disaster reduction. The selection of influencing factor layers is crucial when using machine learning methods to predict EQIL hazard. As important input factors for EQIL hazard models, lithology and precipitation are extensively employed in forecasting EQIL hazard. However, few work explored whether these layers can improve the accuracy of EQIL hazard predictions. With Random Forest (RF) models, we employed a traditional and a state-of-the-art sampling strategy to assess EQIL modelling with and without lithology and precipitation data for the 2022 Luding earthquake in China. First, by excluding both factors, we used eight other influencing factors (land use, slope aspect, slope, elevation, distance to faults, distance to rivers, NDVI, and peak ground acceleration) to generate a landslide hazard map. Second, lithology and precipitation were separately added to the original EQIL hazard models. The results indicate that neither lithology nor precipitation have positive effects on the prediction of EQIL for both sampling strategies. The high-risk areas (or low-risk areas) tend to cluster within certain lithology types or precipitation ranges, which significantly affects the accuracy of the hazard map. Additionally, the model with the state-of-the-art sampling strategy deteriorates more than the model with the traditional sampling strategy. We believe this is very likely due to the strong spatial clustering of negative sample points caused by the latest sampling strategy. Our findings will contribute to the assessment of post-earthquake landslide hazards and the advancement of emergency disaster mitigation efforts.