public override Task OnActivateAsync()
        {
            if (this.GetPrimaryKeyLong() == (long)BiomeId.Savanna)
            {
                BiomeProperties.BaseHeight      = 0.125f;
                BiomeProperties.HeightVariation = 0.05f;
                BiomeProperties.Temperature     = 1.2f;
                BiomeProperties.Rainfall        = 0.0f;
                BiomeProperties.EnableSnow      = false;
                BiomeProperties.WaterColor      = 16777215;
                BiomeProperties.EnableRain      = false;
            }

            TopBlock    = BlockStates.GrassBlock();
            FillerBlock = BlockStates.Dirt();

            PlantsList.Add(PlantsType.TallGrass);
            PlantsList.Add(PlantsType.AcaciaTree);

            PassiveMobList.Add(MobType.Cow);
            PassiveMobList.Add(MobType.Sheep);
            PassiveMobList.Add(MobType.Horse);

            MonsterList.Add(MobType.Creeper);
            MonsterList.Add(MobType.Skeleton);
            MonsterList.Add(MobType.Zombie);
            MonsterList.Add(MobType.Spider);

            return(Task.CompletedTask);
        }
Пример #2
0
        public override Task OnActivateAsync()
        {
            if (this.GetPrimaryKeyLong() == (long)BiomeId.Plains)
            {
                BiomeProperties.BaseHeight      = 0.125f;
                BiomeProperties.HeightVariation = 0.05f;
                BiomeProperties.Temperature     = 0.8f;
                BiomeProperties.Rainfall        = 0.4f;
                BiomeProperties.EnableSnow      = false;
            }
            else if (this.GetPrimaryKeyLong() == (long)BiomeId.SunflowerPlains)
            {
                BiomeProperties.BaseHeight      = 0.125f;
                BiomeProperties.HeightVariation = 0.05f;
                BiomeProperties.Temperature     = 0.8f;
                BiomeProperties.Rainfall        = 0.4f;
                BiomeProperties.EnableSnow      = false;
            }
            else if (this.GetPrimaryKeyLong() == (long)BiomeId.SnowyTundra)
            {
                BiomeProperties.BaseHeight      = 0.125f;
                BiomeProperties.HeightVariation = 0.05f;
                BiomeProperties.Temperature     = 0.0f;
                BiomeProperties.Rainfall        = 0.5f;
                BiomeProperties.EnableSnow      = true;
            }

            BiomeProperties.WaterColor = 16777215;
            BiomeProperties.EnableRain = true;
            TopBlock    = BlockStates.GrassBlock();
            FillerBlock = BlockStates.Dirt();

            PlantsList.Add(PlantsType.TallGrass);
            PlantsList.Add(PlantsType.Poppy);
            PlantsList.Add(PlantsType.Dandelion);

            PassiveMobList.Add(MobType.Cow);
            PassiveMobList.Add(MobType.Sheep);
            PassiveMobList.Add(MobType.Horse);
            PassiveMobList.Add(MobType.Donkey);

            MonsterList.Add(MobType.Creeper);
            MonsterList.Add(MobType.Skeleton);
            MonsterList.Add(MobType.Zombie);
            MonsterList.Add(MobType.Spider);

            return(Task.CompletedTask);
        }