mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-11 05:55:33 +00:00
Emerald ore in Mountains biome (#3750)
This commit is contained in:
parent
e17629244c
commit
a77970448e
@ -23,6 +23,9 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace pocketmine\world\biome;
|
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\TallGrass;
|
||||||
use pocketmine\world\generator\populator\Tree;
|
use pocketmine\world\generator\populator\Tree;
|
||||||
|
|
||||||
@ -40,7 +43,12 @@ class MountainsBiome extends GrassyBiome{
|
|||||||
|
|
||||||
$this->addPopulator($tallGrass);
|
$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);
|
$this->setElevation(63, 127);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user