Skip to content

Instantly share code, notes, and snippets.

@tryashtar
Last active July 1, 2020 22:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tryashtar/2a22bd04394275fefb6b49c348758fd6 to your computer and use it in GitHub Desktop.
Save tryashtar/2a22bd04394275fefb6b49c348758fd6 to your computer and use it in GitHub Desktop.
How ores generate

 

Block Replaces Size Type
Dirt Stone
Granite
Diorite
Andesite
33 Count Range
Count = 10
Bottom Offset = 0
Top Offset = 0
Maximum = 256
Gravel Stone
Granite
Diorite
Andesite
33 Count Range
Count = 8
Bottom Offset = 0
Top Offset = 0
Maximum = 256
Granite Stone
Granite
Diorite
Andesite
33 Count Range
Count = 10
Bottom Offset = 0
Top Offset = 0
Maximum = 80
Diorite Stone
Granite
Diorite
Andesite
33 Count Range
Count = 10
Bottom Offset = 0
Top Offset = 0
Maximum = 80
Andesite Stone
Granite
Diorite
Andesite
33 Count Range
Count = 10
Bottom Offset = 0
Top Offset = 0
Maximum = 80
Coal Ore Stone
Granite
Diorite
Andesite
17 Count Range
Count = 20
Bottom Offset = 0
Top Offset = 0
Maximum = 128
Iron Ore Stone
Granite
Diorite
Andesite
9 Count Range
Count = 20
Bottom Offset = 0
Top Offset = 0
Maximum = 64
Gold Ore Stone
Granite
Diorite
Andesite
9 Count Range
Count = 2
Bottom Offset = 0
Top Offset = 0
Maximum = 32
Redstone Ore Stone
Granite
Diorite
Andesite
8 Count Range
Count = 8
Bottom Offset = 0
Top Offset = 0
Maximum = 16
Diamond Ore Stone
Granite
Diorite
Andesite
8 Count Range
Count = 1
Bottom Offset = 0
Top Offset = 0
Maximum = 16
Lapis Ore Stone
Granite
Diorite
Andesite
7 Count Depth Average
Count = 1
Baseline = 16
Spread = 16
Gold Ore (Badlands) Stone
Granite
Diorite
Andesite
9 Count Range
Count = 20
Bottom Offset = 32
Top Offset = 32
Maximum = 80
Emerald Ore (Mountains) Stone 1 Custom
int count = 3 + random.nextInt(6);
return IntStream.range(0, count).mapToObj(n -> {
int x = random.nextInt(16) + blockPos.getX();
int z = random.nextInt(16) + blockPos.getZ();
int y = random.nextInt(28) + 4;
return new BlockPos(x, y, z);
});
Infested Stone (Mountains) Stone
Granite
Diorite
Andesite
9 Count Range
Count = 7
Bottom Offset = 0
Top Offset = 0
Maximum = 64
Nether Quartz Ore (Nether) Netherrack
Basalt
Blackstone
14 Count Range
Count = 16
Bottom Offset = 10
Top Offset = 20
Maximum = 128
Nether Gold Ore (Nether)

Netherrack
Basalt
Blackstone

10 Count Range
Count = 10
Bottom Offset = 10
Top Offset = 20
Maximum = 128
Ancient Debris (Nether) Netherrack
Basalt
Blackstone
3 Count Depth Average
Count = 1
Baseline = 16
Spread = 8
Ancient Debris (Nether) Netherrack
Basalt
Blackstone
2 Count Range
Count = 1
Bottom Offset = 8
Top Offset = 16
Maximum = 128
Gravel (Nether)

Netherrack
Basalt
Blackstone

33 Count Range
Count = 2
Bottom Offset = 5
Top Offset = 0
Maximum = 37
Blackstone (Nether)

Netherrack
Basalt
Blackstone

33 Count Range
Count = 2
Bottom Offset = 5
Top Offset = 10
Maximum = 37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment