Emerald ore in Mountains biome (#3750)

This commit is contained in:
IceCruelStuff 2020-10-02 04:07:49 -07:00 committed by GitHub
parent e17629244c
commit a77970448e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,9 @@ declare(strict_types=1);
namespace pocketmine\world\biome;
use pocketmine\block\VanillaBlocks;
use pocketmine\world\generator\object\OreType;
use pocketmine\world\generator\populator\Ore;
use pocketmine\world\generator\populator\TallGrass;
use pocketmine\world\generator\populator\Tree;
@ -40,7 +43,12 @@ class MountainsBiome extends GrassyBiome{
$this->addPopulator($tallGrass);
//TODO: add emerald
$ores = new Ore();
$ores->setOreTypes([
new OreType(VanillaBlocks::EMERALD_ORE(), 11, 1, 0, 32)
]);
$this->addPopulator($ores);
$this->setElevation(63, 127);