the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 26 lines 1.1 kB view raw
1#include "stdafx.h" 2#include "net.minecraft.world.level.levelgen.feature.h" 3#include "net.minecraft.world.level.biome.h" 4#include "net.minecraft.world.entity.animal.h" 5#include "net.minecraft.world.entity.h" 6#include "ForestBiome.h" 7 8ForestBiome::ForestBiome(int id) : Biome(id) 9{ 10 friendlies_wolf.push_back(new MobSpawnerData(eTYPE_WOLF, 5, 4, 4)); // 4J - moved to their own category 11 decorator->treeCount = 10; 12 decorator->grassCount = 2; 13} 14 15Feature *ForestBiome::getTreeFeature(Random *random) 16{ 17 if (random->nextInt(5) == 0) 18 { 19 return new BirchFeature(false); // 4J used to return member birchTree, now returning newly created object so that caller can be consistently resposible for cleanup 20 } 21 if (random->nextInt(10) == 0) 22 { 23 return new BasicTree(false); // 4J used to return member fancyTree, now returning newly created object so that caller can be consistently resposible for cleanup 24 } 25 return new TreeFeature(false); // 4J used to return member normalTree, now returning newly created object so that caller can be consistently resposible for cleanup 26}