Roofed Forest

This commit is contained in:
Lord Cambion
2026-03-18 16:26:32 +01:00
parent 364c2039a5
commit 1822ffd3b0
15 changed files with 154 additions and 65 deletions
+54
View File
@@ -0,0 +1,54 @@
#include "stdafx.h"
#include "RoofedForestBiome.h"
#include "BiomeDecorator.h"
#include "DarkOakFeature.h"
#include "HugeMushroomFeature.h"
#include "net.minecraft.world.level.tile.h"
#include "..\Level.h"
RoofedForestBiome::RoofedForestBiome(int id) : Biome(id)
{
decorator->treeCount = 35;
decorator->grassCount = 2;
decorator->flowerCount = 1;
decorator->mushroomCount = 1;
decorator->hugeMushrooms = 1;
temperature = 0.7f;
downfall = 0.8f;
topMaterial = static_cast<byte>(Tile::grass_Id);
material = static_cast<byte>(Tile::dirt_Id);
setColor(0x28340A);
setLeafColor(0x2D5A27);
}
Feature* RoofedForestBiome::getTreeFeature(Random* random)
{
;
if (random->nextInt(5) == 0)
{
return new HugeMushroomFeature();
}
return new DarkOakFeature(true);
}
int RoofedForestBiome::getGrassColor()
{
return 0x28340A;
}
int RoofedForestBiome::getFolageColor()
{
return 0x2D5A27;
}