Small changes
|
@ -19,6 +19,7 @@ import ru.betterend.world.features.EndFeature;
|
||||||
import ru.betterend.world.features.EndLilyFeature;
|
import ru.betterend.world.features.EndLilyFeature;
|
||||||
import ru.betterend.world.features.EndLotusFeature;
|
import ru.betterend.world.features.EndLotusFeature;
|
||||||
import ru.betterend.world.features.EndLotusLeafFeature;
|
import ru.betterend.world.features.EndLotusLeafFeature;
|
||||||
|
import ru.betterend.world.features.GlowPillarFeature;
|
||||||
import ru.betterend.world.features.HydraluxFeature;
|
import ru.betterend.world.features.HydraluxFeature;
|
||||||
import ru.betterend.world.features.LanceleafFeature;
|
import ru.betterend.world.features.LanceleafFeature;
|
||||||
import ru.betterend.world.features.MengerSpongeFeature;
|
import ru.betterend.world.features.MengerSpongeFeature;
|
||||||
|
@ -72,6 +73,7 @@ public class EndFeatures {
|
||||||
public static final EndFeature BUSHY_GRASS_WG = new EndFeature("bushy_grass_wg", new SinglePlantFeature(EndBlocks.BUSHY_GRASS, 5), 10);
|
public static final EndFeature BUSHY_GRASS_WG = new EndFeature("bushy_grass_wg", new SinglePlantFeature(EndBlocks.BUSHY_GRASS, 5), 10);
|
||||||
public static final EndFeature AMBER_GRASS = new EndFeature("amber_grass", new SinglePlantFeature(EndBlocks.AMBER_GRASS, 6), 9);
|
public static final EndFeature AMBER_GRASS = new EndFeature("amber_grass", new SinglePlantFeature(EndBlocks.AMBER_GRASS, 6), 9);
|
||||||
public static final EndFeature LANCELEAF = new EndFeature("lanceleaf", new LanceleafFeature(), 3);
|
public static final EndFeature LANCELEAF = new EndFeature("lanceleaf", new LanceleafFeature(), 3);
|
||||||
|
public static final EndFeature GLOW_PILLAR = new EndFeature("glow_pillar", new GlowPillarFeature(), 1);
|
||||||
|
|
||||||
// Vines //
|
// Vines //
|
||||||
public static final EndFeature DENSE_VINE = new EndFeature("dense_vine", new VineFeature(EndBlocks.DENSE_VINE, 24), 3);
|
public static final EndFeature DENSE_VINE = new EndFeature("dense_vine", new VineFeature(EndBlocks.DENSE_VINE, 24), 3);
|
||||||
|
|
|
@ -16,6 +16,7 @@ public class BiomeAmberLand extends EndBiome {
|
||||||
.addFeature(EndFeatures.END_LAKE_RARE)
|
.addFeature(EndFeatures.END_LAKE_RARE)
|
||||||
.addFeature(EndFeatures.HELIX_TREE)
|
.addFeature(EndFeatures.HELIX_TREE)
|
||||||
.addFeature(EndFeatures.LANCELEAF)
|
.addFeature(EndFeatures.LANCELEAF)
|
||||||
|
.addFeature(EndFeatures.GLOW_PILLAR)
|
||||||
.addFeature(EndFeatures.AMBER_GRASS)
|
.addFeature(EndFeatures.AMBER_GRASS)
|
||||||
.addFeature(EndFeatures.CHARNIA_ORANGE)
|
.addFeature(EndFeatures.CHARNIA_ORANGE)
|
||||||
.addFeature(EndFeatures.CHARNIA_RED)
|
.addFeature(EndFeatures.CHARNIA_RED)
|
||||||
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
package ru.betterend.world.features;
|
||||||
|
|
||||||
|
import java.util.Random;
|
||||||
|
|
||||||
|
import net.minecraft.util.math.BlockPos;
|
||||||
|
import net.minecraft.world.StructureWorldAccess;
|
||||||
|
import ru.betterend.blocks.basis.BlockPlantWithAge;
|
||||||
|
import ru.betterend.registry.EndBlocks;
|
||||||
|
|
||||||
|
public class GlowPillarFeature extends ScatterFeature {
|
||||||
|
public GlowPillarFeature() {
|
||||||
|
super(9);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canGenerate(StructureWorldAccess world, Random random, BlockPos center, BlockPos blockPos, float radius) {
|
||||||
|
return EndBlocks.GLOWING_PILLAR_SEED.canPlaceAt(AIR, world, blockPos);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void generate(StructureWorldAccess world, Random random, BlockPos blockPos) {
|
||||||
|
BlockPlantWithAge seed = ((BlockPlantWithAge) EndBlocks.GLOWING_PILLAR_SEED);
|
||||||
|
seed.growAdult(world, random, blockPos);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected int getChance() {
|
||||||
|
return 10;
|
||||||
|
}
|
||||||
|
}
|
Before Width: | Height: | Size: 309 B After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 328 B After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 350 B After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 269 B After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 154 B After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 174 B After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 191 B After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 248 B After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 262 B After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 135 B After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 243 B After Width: | Height: | Size: 1.6 KiB |