12-27-2010, 03:38 PM
The server is down, so I needed something to do. All information here is a combination of direct information from this thread: http://www.minecraftforum.net/viewtopic....35&t=28299, interpretation of information from said thread, and personal observation. This post will omit the boring details and try to give you a concise explanation of how things work.
Overview of how ore is placed
When a chunk is generated, the game first builds the surface, and fills stone underneath. Then, it sequentially adds air pockets (natural caverns), dirt, gravel, ore, adminium, and random lava and water sources. These are added in a specific order, and for most of them (specifically ore), there is an exact number of pockets per chunk. When something gets placed, it replaces NATURAL STONE in the area the generator decides to place it. after everything is placed, lava is replaces any block of air below a certain level. Because of the order of placement, if you find ore next to dirt, chances are the dirt that was already placed resulted in less ore being placed (because ore only replaces stone, and is placed after dirt). It is worth noting that in each chunk, there is only ONE cluster of diamond and TWO clusters of gold. The method of ore placement explains many common misconceptions about mining.
Common Misconceptions and their origins
Ore is more common near lava
Many people think that ore is more common near lava. There is nothing in the code that causes this to be so, but there are many reasons why it seems this way. First, you only find lava in caverns, and caverns have lots of exposed surfaces, so its easier to find ore. Second, most of the lava you find is at the bottom of the map, where there are more types of ore that can spawn. On average, you will find as much coal on layer 50 as you find on layer 10. All ores are, on average, distributed evenly in the layers you can find it in. At the bottom of the map, you can find coal, iron, diamond, redstone and gold. on the surface you can only find coal and iron. So it makes sense that you would find extra ore near the lava at the bottom of the map.
Ore is often found near other types of ore
While it is true that you can find more ore by digging around other ore, this only acutally applys to ore of the same type. Two pieces of coal could be diagnally adjacent, so digging the stone around the first coal could find you an extra coal. However, Iron, for instance, spawns at the same rate both near and far from coal. You might find both iron and coal touching (or, as I saw once, coal, iron, redstone and gold all touching), but it is totally random.
Mining in caves finds more ore than random mining
Caves have a larger surface area than a randomly mined path, so you will see more ore walking through it, and you will walk through it faster because you aren't mining a path in front of you, but when you find ore you will, on average, find slightly less ore. This is because the air in the cave is placed before the ore, and the ore only replaces stone. As a result, if you can see those diamonds on the wall, chances are the air in front of them suppressed at least one potential diamond.
Common Types of Mines
Strip mine
Strip mining is when you chose an area and dig out every single block in the area. Some people like strip mining because you get every single piece or ore in the area, without fail. The problem is that most of what you mine is stone. Strip mines take a lot of time and produce mostly worthless junk. If you do mine out an entire chunk, you should always find diamond, but you will only find one cluster for all that effort.
Spelunking
Spelunking is when you find a cave, search through it, and try to empty it of all exposed ore. This is extremely time efficient, but you will find a lot more coal and iron than anything else because it will be harder to get down deep underground, and any exposed area below the "lava level" will have lava when the chunk forms, so you effectively lose half of the space a diamond could spawn in. Spelunking is also dangerous, as you are practically guaranteed to run into mobs.
Chunk Mining
I'm not sure who came up with this term, but its quite and interesting idea. Chunk mining is when you run around looking for chunks that failed to load, and look for valuable ore on the walls (or, potentially, lava-filled caverns), and dig straight down the edge to the ore, and then pillar back out with the stone you mined on the way. This method is quick, and if you make sure to look for lava and caves before you dig, fairly safe, but it is likely that it will be fixed soon because it utilizes a glitch.
Branch mining
Branch mining is based on the same principal as strip mining - get all of the ore in an area- but it is far more time and pick efficient. In a branch mine, you don't mine out every single block, you just mine out the blocks needed to SEE every block. In some cases. you might even set it up to skip a few blocks because you know that ore generally comes in clusters, so you should find MOST of the ore, and the few you miss are more than made up for in saved time. There are many different patterns for branch mines, and if you are interested in the theory behind them you should visit the thread linked above.
If you have any questions, feel free to post them and I will see if I can answer them.
Overview of how ore is placed
When a chunk is generated, the game first builds the surface, and fills stone underneath. Then, it sequentially adds air pockets (natural caverns), dirt, gravel, ore, adminium, and random lava and water sources. These are added in a specific order, and for most of them (specifically ore), there is an exact number of pockets per chunk. When something gets placed, it replaces NATURAL STONE in the area the generator decides to place it. after everything is placed, lava is replaces any block of air below a certain level. Because of the order of placement, if you find ore next to dirt, chances are the dirt that was already placed resulted in less ore being placed (because ore only replaces stone, and is placed after dirt). It is worth noting that in each chunk, there is only ONE cluster of diamond and TWO clusters of gold. The method of ore placement explains many common misconceptions about mining.
Common Misconceptions and their origins
Ore is more common near lava
Many people think that ore is more common near lava. There is nothing in the code that causes this to be so, but there are many reasons why it seems this way. First, you only find lava in caverns, and caverns have lots of exposed surfaces, so its easier to find ore. Second, most of the lava you find is at the bottom of the map, where there are more types of ore that can spawn. On average, you will find as much coal on layer 50 as you find on layer 10. All ores are, on average, distributed evenly in the layers you can find it in. At the bottom of the map, you can find coal, iron, diamond, redstone and gold. on the surface you can only find coal and iron. So it makes sense that you would find extra ore near the lava at the bottom of the map.
Ore is often found near other types of ore
While it is true that you can find more ore by digging around other ore, this only acutally applys to ore of the same type. Two pieces of coal could be diagnally adjacent, so digging the stone around the first coal could find you an extra coal. However, Iron, for instance, spawns at the same rate both near and far from coal. You might find both iron and coal touching (or, as I saw once, coal, iron, redstone and gold all touching), but it is totally random.
Mining in caves finds more ore than random mining
Caves have a larger surface area than a randomly mined path, so you will see more ore walking through it, and you will walk through it faster because you aren't mining a path in front of you, but when you find ore you will, on average, find slightly less ore. This is because the air in the cave is placed before the ore, and the ore only replaces stone. As a result, if you can see those diamonds on the wall, chances are the air in front of them suppressed at least one potential diamond.
Common Types of Mines
Strip mine
Strip mining is when you chose an area and dig out every single block in the area. Some people like strip mining because you get every single piece or ore in the area, without fail. The problem is that most of what you mine is stone. Strip mines take a lot of time and produce mostly worthless junk. If you do mine out an entire chunk, you should always find diamond, but you will only find one cluster for all that effort.
Spelunking
Spelunking is when you find a cave, search through it, and try to empty it of all exposed ore. This is extremely time efficient, but you will find a lot more coal and iron than anything else because it will be harder to get down deep underground, and any exposed area below the "lava level" will have lava when the chunk forms, so you effectively lose half of the space a diamond could spawn in. Spelunking is also dangerous, as you are practically guaranteed to run into mobs.
Chunk Mining
I'm not sure who came up with this term, but its quite and interesting idea. Chunk mining is when you run around looking for chunks that failed to load, and look for valuable ore on the walls (or, potentially, lava-filled caverns), and dig straight down the edge to the ore, and then pillar back out with the stone you mined on the way. This method is quick, and if you make sure to look for lava and caves before you dig, fairly safe, but it is likely that it will be fixed soon because it utilizes a glitch.
Branch mining
Branch mining is based on the same principal as strip mining - get all of the ore in an area- but it is far more time and pick efficient. In a branch mine, you don't mine out every single block, you just mine out the blocks needed to SEE every block. In some cases. you might even set it up to skip a few blocks because you know that ore generally comes in clusters, so you should find MOST of the ore, and the few you miss are more than made up for in saved time. There are many different patterns for branch mines, and if you are interested in the theory behind them you should visit the thread linked above.
If you have any questions, feel free to post them and I will see if I can answer them.