Savanna Biome
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user