tutorial:features
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:features [2020/01/08 12:18] – lightcolour | tutorial:features [2020/07/16 20:20] – update IWorld references to WorldAccess user11681 | ||
---|---|---|---|
Line 12: | Line 12: | ||
@Override | @Override | ||
- | public boolean generate(IWorld | + | public boolean generate(WorldAccess |
BlockPos topPos = world.getTopPosition(Heightmap.Type.WORLD_SURFACE, | BlockPos topPos = world.getTopPosition(Heightmap.Type.WORLD_SURFACE, | ||
Direction offset = Direction.NORTH; | Direction offset = Direction.NORTH; | ||
Line 34: | Line 34: | ||
<code java> | <code java> | ||
@Override | @Override | ||
- | public boolean generate(IWorld | + | public boolean generate(WorldAccess |
BlockPos topPos = world.getTopPosition(Heightmap.Type.WORLD_SURFACE, | BlockPos topPos = world.getTopPosition(Heightmap.Type.WORLD_SURFACE, | ||
Direction offset = Direction.NORTH; | Direction offset = Direction.NORTH; | ||
Line 64: | Line 64: | ||
Registry.BIOME.forEach(biome -> biome.addFeature( | Registry.BIOME.forEach(biome -> biome.addFeature( | ||
GenerationStep.Feature.RAW_GENERATION, | GenerationStep.Feature.RAW_GENERATION, | ||
- | Biome.configureFeature( | + | LAVA_HOLE.configure(new DefaultFeatureConfig()) |
- | LAVA_HOLE, | + | .createDecoratedFeature(Decorator.CHANCE_HEIGHTMAP.configure(new ChanceDecoratorConfig(100))); |
- | new DefaultFeatureConfig(), | + | |
- | Decorator.CHANCE_HEIGHTMAP, | + | |
- | new ChanceDecoratorConfig(100) | + | |
- | ) | + | |
)); | )); | ||
</ | </ |
tutorial/features.txt · Last modified: 2023/12/18 01:19 by solidblock