the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#include "stdafx.h"
2#include "net.minecraft.world.level.levelgen.feature.h"
3#include "net.minecraft.world.level.h"
4#include "net.minecraft.world.level.tile.h"
5#include "net.minecraft.world.level.biome.h"
6
7DesertBiome::DesertBiome(int id) : Biome(id)
8{
9 // remove default mob spawn settings
10 friendlies.clear();
11 friendlies_chicken.clear(); // 4J added
12 friendlies_wolf.clear(); // 4J added
13 topMaterial = (BYTE) Tile::sand_Id;
14 material = (BYTE) Tile::sand_Id;
15
16 decorator->treeCount = -999;
17 decorator->deadBushCount = 2;
18 decorator->reedsCount = 50;
19 decorator->cactusCount = 10;
20}
21
22void DesertBiome::decorate(Level *level, Random *random, int xo, int zo)
23{
24 Biome::decorate(level, random, xo, zo);
25
26 if (random->nextInt(1000) == 0)
27 {
28 int x = xo + random->nextInt(16) + 8;
29 int z = zo + random->nextInt(16) + 8;
30 Feature *well = new DesertWellFeature();
31 well->place(level, random, x, level->getHeightmap(x, z) + 1, z);
32 }
33}