1
0
mirror of https://github.com/pmmp/PocketMine-MP.git synced 2025-05-31 09:17:42 +00:00

added nether quartz ore to nether generation

This commit is contained in:
Dylan K. Taylor 2020-08-06 13:23:03 +01:00
parent 7bcfece11e
commit 3d4470ed8d

@ -29,6 +29,8 @@ use pocketmine\world\ChunkManager;
use pocketmine\world\generator\Generator; use pocketmine\world\generator\Generator;
use pocketmine\world\generator\InvalidGeneratorOptionsException; use pocketmine\world\generator\InvalidGeneratorOptionsException;
use pocketmine\world\generator\noise\Simplex; use pocketmine\world\generator\noise\Simplex;
use pocketmine\world\generator\object\OreType;
use pocketmine\world\generator\populator\Ore;
use pocketmine\world\generator\populator\Populator; use pocketmine\world\generator\populator\Populator;
use function abs; use function abs;
@ -62,18 +64,11 @@ class Nether extends Generator{
$this->noiseBase = new Simplex($this->random, 4, 1 / 4, 1 / 64); $this->noiseBase = new Simplex($this->random, 4, 1 / 4, 1 / 64);
$this->random->setSeed($this->seed); $this->random->setSeed($this->seed);
/*$ores = new Ore(); $ores = new Ore();
$ores->setOreTypes([ $ores->setOreTypes([
new OreType(new CoalOre(), 20, 16, 0, 128), new OreType(VanillaBlocks::NETHER_QUARTZ_ORE(), VanillaBlocks::NETHERRACK(), 16, 14, 10, 117)
new OreType(new IronOre(), 20, 8, 0, 64),
new OreType(new RedstoneOre(), 8, 7, 0, 16),
new OreType(new LapisOre(), 1, 6, 0, 32),
new OreType(new GoldOre(), 2, 8, 0, 32),
new OreType(new DiamondOre(), 1, 7, 0, 16),
new OreType(new Dirt(), 20, 32, 0, 128),
new OreType(new Gravel(), 10, 16, 0, 128)
]); ]);
$this->populators[] = $ores;*/ $this->populators[] = $ores;
} }
public function generateChunk(int $chunkX, int $chunkZ) : void{ public function generateChunk(int $chunkX, int $chunkZ) : void{