User Tools

Site Tools


tutorial:ores

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
tutorial:ores [2019/08/19 19:31]
jamieswhiteshirt [Iterating Biome Registry] Rewrite
tutorial:ores [2019/08/19 19:36] (current)
jamieswhiteshirt [Adding ores to a biome] Enhancements
Line 8: Line 8:
 ==== Adding ores to a biome ==== ==== Adding ores to a biome ====
  
-As we need to handle exiting biomes and biomes being added later on in the loading stage creating ​a method to handle ​adding the ore to the biome.+First we need to create ​a method to process a biome, checking if it is a valid biome then adding the ore.
  
 <code java [enable_line_numbers="​true"​]>​ <code java [enable_line_numbers="​true"​]>​
Line 24: Line 24:
                 Decorator.COUNT_RANGE,​                 Decorator.COUNT_RANGE,​
         new RangeDecoratorConfig(         new RangeDecoratorConfig(
-            ​8, //Number of veins per chunk +        8, //Number of veins per chunk 
-        ​  ​   ​0, //Bottom Offset +         0, //Bottom Offset 
-        ​  ​   ​0, //Min y level +         0, //Min y level 
-        ​  ​   ​64 //Max y level+         64 //Max y level
         )));         )));
  }  }
tutorial/ores.txt · Last modified: 2019/08/19 19:36 by jamieswhiteshirt