Flowers generation
This commit is contained in:
parent
eb6d36b5dd
commit
a54f7d5e6d
5 changed files with 34 additions and 8 deletions
|
@ -18,6 +18,7 @@ import ru.betterend.world.features.EndFeature;
|
|||
import ru.betterend.world.features.EndLilyFeature;
|
||||
import ru.betterend.world.features.EndLotusFeature;
|
||||
import ru.betterend.world.features.EndLotusLeafFeature;
|
||||
import ru.betterend.world.features.HydraluxFeature;
|
||||
import ru.betterend.world.features.SinglePlantFeature;
|
||||
import ru.betterend.world.features.UnderwaterPlantFeature;
|
||||
import ru.betterend.world.features.VineFeature;
|
||||
|
@ -87,6 +88,7 @@ public class EndFeatures {
|
|||
public static final EndFeature END_LILY_RARE = new EndFeature("end_lily_rare", new EndLilyFeature(3), 4);
|
||||
public static final EndFeature END_LOTUS = new EndFeature("end_lotus", new EndLotusFeature(7), 5);
|
||||
public static final EndFeature END_LOTUS_LEAF = new EndFeature("end_lotus_leaf", new EndLotusLeafFeature(20), 25);
|
||||
public static final EndFeature HYDRALUX = new EndFeature("hydralux", new HydraluxFeature(5), 5);
|
||||
|
||||
// Terrain //
|
||||
public static final EndFeature END_LAKE = EndFeature.makeLakeFeature("end_lake", new EndLakeFeature(), 4);
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
package ru.betterend.world.biome;
|
||||
|
||||
import net.minecraft.entity.EntityType;
|
||||
import net.minecraft.world.gen.GenerationStep;
|
||||
import net.minecraft.world.gen.carver.ConfiguredCarvers;
|
||||
import ru.betterend.registry.EndFeatures;
|
||||
import ru.betterend.registry.EndParticles;
|
||||
import ru.betterend.world.surface.SurfaceBuilders;
|
||||
|
@ -11,7 +9,8 @@ public class BiomeSulfurSprings extends EndBiome {
|
|||
public BiomeSulfurSprings() {
|
||||
super(new BiomeDefinition("sulfur_springs")
|
||||
.setSurface(SurfaceBuilders.SULPHURIC_SURFACE)
|
||||
.setWaterAndFogColor(25, 90, 157)
|
||||
.setWaterColor(25, 90, 157)
|
||||
.setWaterFogColor(30, 65, 61)
|
||||
.setFogColor(207, 194, 62)
|
||||
.setFogDensity(1.5F)
|
||||
.setCaves(false)
|
||||
|
@ -19,7 +18,7 @@ public class BiomeSulfurSprings extends EndBiome {
|
|||
.addFeature(EndFeatures.GEYSER)
|
||||
.addFeature(EndFeatures.SULPHURIC_LAKE)
|
||||
.addFeature(EndFeatures.SULPHURIC_CAVE)
|
||||
.addCarver(GenerationStep.Carver.AIR, ConfiguredCarvers.CAVE)
|
||||
.addFeature(EndFeatures.HYDRALUX)
|
||||
.addMobSpawn(EntityType.ENDERMAN, 50, 1, 4));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
package ru.betterend.world.features;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.StructureWorldAccess;
|
||||
import ru.betterend.blocks.BlockHydraluxSapling;
|
||||
import ru.betterend.registry.EndBlocks;
|
||||
|
||||
public class HydraluxFeature extends UnderwaterPlantScatter {
|
||||
public HydraluxFeature(int radius) {
|
||||
super(radius);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void generate(StructureWorldAccess world, Random random, BlockPos blockPos) {
|
||||
BlockHydraluxSapling seed = (BlockHydraluxSapling) EndBlocks.HYDRALUX_SAPLING;
|
||||
seed.grow(world, random, blockPos);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getChance() {
|
||||
return 15;
|
||||
}
|
||||
}
|
|
@ -19,8 +19,8 @@
|
|||
},
|
||||
{
|
||||
"__comment": "PlaneX9",
|
||||
"from": [ 5.5, 3, 5.5 ],
|
||||
"to": [ 5.501, 11, 13.5 ],
|
||||
"from": [ 5.5, 2, 5.5 ],
|
||||
"to": [ 5.501, 10, 13.5 ],
|
||||
"rotation": { "origin": [ 5.5, 3, 5.5 ], "axis": "y", "angle": 45 },
|
||||
"shade": false,
|
||||
"faces": {
|
||||
|
@ -30,8 +30,8 @@
|
|||
},
|
||||
{
|
||||
"__comment": "PlaneX9",
|
||||
"from": [ 10.5, 3, 5.5 ],
|
||||
"to": [ 10.501, 11, 13.5 ],
|
||||
"from": [ 10.5, 2, 5.5 ],
|
||||
"to": [ 10.501, 10, 13.5 ],
|
||||
"rotation": { "origin": [ 10.5, 3, 5.5 ], "axis": "y", "angle": -45 },
|
||||
"shade": false,
|
||||
"faces": {
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 2.1 KiB |
Loading…
Add table
Add a link
Reference in a new issue