Ore (feature)

An ore  is a feature consisting of a natural deposit of ores or other blocks in the ground.

Generation
Ores can generate in caverns or anywhere where there is natural stone and deepslate. Underground deposits of dirt and gravel are generated in this step, followed by the more precious ores: coal, copper, iron, gold, redstone, diamond, emerald (in mountains biomes) and lapis lazuli. They can form only in stone, deepslate, andesite, diorite, granite and tuff. (also in their polished variants $$, replacing parts of structures), and do not replace each other or any other block. Two or more ores can form next to each other and appear as an ore made of more than one material.

Each ore feature has a spawn size. The maximum number of generated blocks each spawn size corresponds to is shown in the table below :

ID