Ore Deposits: Difference between revisions

From Vintage Story Wiki
No edit summary
(Expanded information on ore deposits and added explanation of the 5 generators)
Line 9: Line 9:
As of version 1.9, ores only appear in certain rock types. Many ores are only found in some host rocks, and different rocks can have different ore qualities. Examining a rock while holding (Sneak + H), will provide information about which ores can appear in that rock type. <br>
As of version 1.9, ores only appear in certain rock types. Many ores are only found in some host rocks, and different rocks can have different ore qualities. Examining a rock while holding (Sneak + H), will provide information about which ores can appear in that rock type. <br>
Ores are found in '''shallow''' deposits and '''deep''' deposits. The tables below provide information about disc generation for each ore type. <br>
Ores are found in '''shallow''' deposits and '''deep''' deposits. The tables below provide information about disc generation for each ore type. <br>
* '''Y min''' and '''Y max''': Ores are distributed throughout the range given by these values. The Y values reflect proportions of the sea level, i.e. 0.5 is half the world's sea level. Sea level in the world can be determined by the Y of the surface of a big lake. Or simply by multiplying the height of the world by 0.4313725490196078 and rounding down.
* '''Y min''' and '''Y max''': Ores are distributed throughout the range given by these values. The Y values reflect proportions of the ore's specific generator, i.e. if a deposit uses the sea level generator, then 0.5 is half the world's sea level.
 
See the table below for which generator each ore uses.
* '''Average radius''': the average width of the deposit along the X and Z coordinates  
* '''Average radius''': the average width of the deposit along the X and Z coordinates  
* '''Average thickness''': the average height of the deposit along the Y coordinate.   
* '''Average thickness''': the average height of the deposit along the Y coordinate.   
Line 122: Line 124:
See [[Terrain Generation#Deposits]] for more information on deposit generation.
See [[Terrain Generation#Deposits]] for more information on deposit generation.


Ore deposits are generated with specific generators. These generators control how blocks in the deposit are placed. There are 6 generators.
Ore deposits are generated with specific generators. These generators control how blocks in the deposit are placed. There are 5 generators as of v1.14. Ores only use 3 of them, with the rest being used by gem stones or minerals.
 
=== Surface ===
Called FollowSurface, the depth is in percent. Deposits will generate between the mantle and the height the surface. The surface is defined as the height of the highest block in a column, where rain will fall. This means a Y min of 0 will generate the ore above the mantle. A Y max of 1 will be below the highest block where rain falls.
 
=== Surface below ===
Called FollowSurfaceBelow, the depth is in absolute blocks below the surface. This is specified by providing a generator of depth values. For example halite uses it to guarantee that a deposit always spawn exactly 2 blocks below the surface.
 
=== Sea level ===
Called FollowSeaLevel, the depth is in percent. Deposits will generate between the mantle and the height of the sea level of the world. This means a Y min of 0 will generate the ore above the mantle and a Y max of 1 will generate the ore below the level of the global ocean height.
 
Sea level in the world can be determined by the Y of the surface of a big lake. Or simply by multiplying the height of the world by 0.4313725490196078 and rounding down.
 
=== Anywhere ===
Called Anywhere, the depth is in percent. Deposits will generate between the mantle and the height of the world. This means a Y min of 0 will generate the ore above the mantle and a Y max of 1 will generate the ore below the height of the world. For example, it is used by quartz to make deposits generate anywhere in the world, but only within rock.
 
=== Child ===
Called ChildDeposit, deposits using this generator will only generate inside deposts of the given ore. For example, this is used by gold and silver to only spawn inside quartz deposits.


== Video Tutorials ==  
== Video Tutorials ==