Minecraft wiki entry for Tree, associated text: The sapling can be planted on any variant of dirt (except dirt path) a moss block or a mud‌[upcoming: JE 1.19], and must have a light level of at least 8 in the sapling block.