Savanna Biome

This commit is contained in:
Lord Cambion
2026-03-18 01:09:20 +01:00
parent 5e7cf04505
commit 9c876448bb
12 changed files with 188 additions and 75 deletions
+30
View File
@@ -0,0 +1,30 @@
#include "stdafx.h"
#include "net.minecraft.world.level.levelgen.feature.h"
#include "net.minecraft.world.level.biome.h"
#include "net.minecraft.world.entity.animal.h"
#include "net.minecraft.world.entity.h"
#include "SavannaBiome.h"
#include "SavannaTreeFeature.h"
SavannaBiome::SavannaBiome(int id) : Biome(id)
{
friendlies.push_back(new MobSpawnerData(eTYPE_HORSE, 1, 2, 6));
decorator->treeCount = 1;
decorator->flowerCount = 4;
decorator->grassCount = 20;
}
Feature *SavannaBiome::getTreeFeature(Random *random)
{
if (random->nextInt(5) > 0)
{
return new SavannaTreeFeature(false);
}
return new TreeFeature(false);
}