Removed bee nests from the Prairie and Tropical Rainforest
This commit is contained in:
parent
ac218d5153
commit
9190077145
|
@ -55,7 +55,7 @@ public class PrairieBiome extends BiomeBOP
|
|||
////////////////////////////////////////////////////////////
|
||||
|
||||
// Vegetation
|
||||
this.addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Feature.RANDOM_SELECTOR.configured(new MultipleRandomFeatureConfig(ImmutableList.of(BOPBiomeFeatures.BIG_OAK_TREE.configured(DefaultBiomeFeatures.NORMAL_TREE_CONFIG).weighted(0.1F)), BOPBiomeFeatures.SPARSE_OAK_TREE.configured(DefaultBiomeFeatures.NORMAL_TREE_WITH_BEES_005_CONFIG))).decorated(Placement.COUNT_EXTRA_HEIGHTMAP.configured(new AtSurfaceWithExtraConfig((int)0.85F, 0.3F, 1))));
|
||||
this.addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Feature.RANDOM_SELECTOR.configured(new MultipleRandomFeatureConfig(ImmutableList.of(BOPBiomeFeatures.BIG_OAK_TREE.configured(DefaultBiomeFeatures.NORMAL_TREE_CONFIG).weighted(0.1F)), BOPBiomeFeatures.SPARSE_OAK_TREE.configured(DefaultBiomeFeatures.NORMAL_TREE_CONFIG))).decorated(Placement.COUNT_EXTRA_HEIGHTMAP.configured(new AtSurfaceWithExtraConfig((int)0.85F, 0.3F, 1))));
|
||||
|
||||
this.addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, new StandardGrassFeature(NoFeatureConfig::deserialize).configured(IFeatureConfig.NONE).decorated(Placement.COUNT_HEIGHTMAP_DOUBLE.configured(new FrequencyConfig(15))));
|
||||
this.addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Feature.RANDOM_PATCH.configured(BiomeFeatureHelper.createClusterConfigurationDouble(BOPBlocks.goldenrod.defaultBlockState())).decorated(Placement.COUNT_HEIGHTMAP_32.configured(new FrequencyConfig(8))));
|
||||
|
|
|
@ -15,6 +15,7 @@ import biomesoplenty.common.world.biome.BiomeFeatureHelper;
|
|||
import biomesoplenty.common.world.gen.feature.BOPBiomeFeatures;
|
||||
import biomesoplenty.common.world.gen.feature.FernGrassFeature;
|
||||
import biomesoplenty.common.world.gen.feature.StandardGrassFeature;
|
||||
import biomesoplenty.core.ClientProxy;
|
||||
import com.google.common.collect.ImmutableList;
|
||||
import net.minecraft.block.Blocks;
|
||||
import net.minecraft.entity.EntityClassification;
|
||||
|
@ -37,6 +38,9 @@ import net.minecraft.world.gen.surfacebuilders.SurfaceBuilder;
|
|||
import net.minecraftforge.api.distmarker.Dist;
|
||||
import net.minecraftforge.api.distmarker.OnlyIn;
|
||||
|
||||
import java.awt.*;
|
||||
import java.util.Calendar;
|
||||
|
||||
public class RainbowValleyBiome extends BiomeBOP
|
||||
{
|
||||
public RainbowValleyBiome()
|
||||
|
@ -91,7 +95,10 @@ public class RainbowValleyBiome extends BiomeBOP
|
|||
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
@Override
|
||||
public int getGrassColor(double x, double z) {
|
||||
public int getGrassColor(double x, double z)
|
||||
{
|
||||
if (ClientProxy.isAprilFools) { return 0xFFFFFF; }
|
||||
|
||||
double d0 = Biome.BIOME_INFO_NOISE.getValue(x * 0.0225D, z * 0.0225D, false);
|
||||
return d0 < -0.1D ? 0x77CE7F : 0x75CE8D;
|
||||
}
|
||||
|
@ -100,6 +107,8 @@ public class RainbowValleyBiome extends BiomeBOP
|
|||
@Override
|
||||
public int getFoliageColor()
|
||||
{
|
||||
if (ClientProxy.isAprilFools) { return 0xFFFFFF; }
|
||||
|
||||
return 0x75CE8D;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -54,7 +54,7 @@ public class TropicalRainforestBiome extends BiomeBOP
|
|||
////////////////////////////////////////////////////////////
|
||||
|
||||
// Vegetation
|
||||
this.addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Feature.RANDOM_SELECTOR.configured(new MultipleRandomFeatureConfig(ImmutableList.of(Feature.NORMAL_TREE.configured(DefaultBiomeFeatures.JUNGLE_TREE_CONFIG).weighted(0.1F)), BOPBiomeFeatures.MAHOGANY_TREE.configured(DefaultBiomeFeatures.NORMAL_TREE_WITH_BEES_0002_CONFIG))).decorated(Placement.COUNT_EXTRA_HEIGHTMAP.configured(new AtSurfaceWithExtraConfig(12, 0.3F, 1))));
|
||||
this.addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Feature.RANDOM_SELECTOR.configured(new MultipleRandomFeatureConfig(ImmutableList.of(Feature.NORMAL_TREE.configured(DefaultBiomeFeatures.JUNGLE_TREE_CONFIG).weighted(0.1F)), BOPBiomeFeatures.MAHOGANY_TREE.configured(DefaultBiomeFeatures.NORMAL_TREE_CONFIG))).decorated(Placement.COUNT_EXTRA_HEIGHTMAP.configured(new AtSurfaceWithExtraConfig(12, 0.3F, 1))));
|
||||
|
||||
this.addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, BOPBiomeFeatures.JUNGLE_FLOWERS.configured(IFeatureConfig.NONE).decorated(Placement.COUNT_HEIGHTMAP_32.configured(new FrequencyConfig(6))));
|
||||
this.addFeature(GenerationStage.Decoration.VEGETAL_DECORATION, Feature.RANDOM_PATCH.configured(BiomeFeatureHelper.createClusterConfigurationDoubleWater(BOPBlocks.watergrass.defaultBlockState())).decorated(Placement.COUNT_HEIGHTMAP_DOUBLE.configured(new FrequencyConfig(10))));
|
||||
|
|
|
@ -21,9 +21,12 @@ import net.minecraft.world.ILightReader;
|
|||
import net.minecraft.world.biome.BiomeColors;
|
||||
|
||||
import java.awt.*;
|
||||
import java.util.Calendar;
|
||||
|
||||
public class ClientProxy extends CommonProxy
|
||||
{
|
||||
public static boolean isAprilFools = false;
|
||||
|
||||
public ClientProxy()
|
||||
{
|
||||
|
||||
|
@ -32,6 +35,9 @@ public class ClientProxy extends CommonProxy
|
|||
@Override
|
||||
public void init()
|
||||
{
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
if (calendar.get(2) + 1 == 4 && calendar.get(5) == 1) { isAprilFools = true; }
|
||||
|
||||
BlockColors blockColors = Minecraft.getInstance().getBlockColors();
|
||||
ItemColors itemColors = Minecraft.getInstance().getItemColors();
|
||||
|
||||
|
@ -48,8 +54,8 @@ public class ClientProxy extends CommonProxy
|
|||
|
||||
//Rainbow Birch Leaf Coloring
|
||||
blockColors.register((state, world, pos, tintIndex) ->
|
||||
world != null && pos != null ? getRainbowBirchColor(world, pos) : FoliageColors.getDefaultColor(),
|
||||
BOPBlocks.rainbow_birch_leaves);
|
||||
world != null && pos != null ? getRainbowBirchColor(world, pos) : FoliageColors.getDefaultColor(),
|
||||
BOPBlocks.rainbow_birch_leaves);
|
||||
|
||||
//Item Coloring
|
||||
itemColors.register((stack, tintIndex) -> {
|
||||
|
@ -62,6 +68,8 @@ public class ClientProxy extends CommonProxy
|
|||
public static int getRainbowBirchColor(ILightReader world, BlockPos pos)
|
||||
{
|
||||
Color foliage = Color.getHSBColor((((float)pos.getX() + MathHelper.sin(((float)pos.getZ() + (float)pos.getX()) / 35) * 35) % 150) / 150, 0.6F, 1.0F);
|
||||
if (isAprilFools) { foliage = Color.WHITE; }
|
||||
|
||||
return foliage.getRGB();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue