tutorial:ores
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tutorial:ores [2019/08/19 19:31] – [Iterating Biome Registry] Rewrite jamieswhiteshirt | tutorial:ores [2020/02/26 15:23] – Change to new format supercoder79 | ||
---|---|---|---|
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 | + | First we need to create |
<code java [enable_line_numbers=" | <code java [enable_line_numbers=" | ||
Line 15: | Line 15: | ||
biome.addFeature( | biome.addFeature( | ||
GenerationStep.Feature.UNDERGROUND_ORES, | GenerationStep.Feature.UNDERGROUND_ORES, | ||
- | | + | Feature.ORE.configure( |
- | | + | new OreFeatureConfig( |
- | new OreFeatureConfig( | + | |
- | OreFeatureConfig.Target.NATURAL_STONE, | + | |
- | Blocks.NETHER_QUARTZ_ORE.getDefaultState(), | + | |
- | | + | )).createDecoratedFeature( |
- | ), | + | Decorator.COUNT_RANGE.configure(new RangeDecoratorConfig( |
- | | + | |
- | new RangeDecoratorConfig( | + | |
- | | + | |
- | | + | |
- | | + | )))); |
- | | + | |
- | ))); | + | |
} | } | ||
} | } |
tutorial/ores.txt · Last modified: 2023/12/18 01:03 by solidblock