mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 13:09:44 +00:00
Few level generation changes
This commit is contained in:
parent
bda5e62788
commit
393b57c535
2 changed files with 3 additions and 3 deletions
|
|
@ -43,14 +43,14 @@ class SuperflatGenerator implements LevelGenerator{
|
||||||
if(isset($this->options["decoration"])){
|
if(isset($this->options["decoration"])){
|
||||||
$ores = new OrePopulator();
|
$ores = new OrePopulator();
|
||||||
$ores->setOreTypes(array(
|
$ores->setOreTypes(array(
|
||||||
new OreType(new DirtBlock(), 20, 32, 0, 128),
|
|
||||||
new OreType(new GravelBlock(), 10, 16, 0, 128),
|
|
||||||
new OreType(new CoalOreBlock(), 20, 16, 0, 128),
|
new OreType(new CoalOreBlock(), 20, 16, 0, 128),
|
||||||
new OreType(New IronOreBlock(), 20, 8, 0, 64),
|
new OreType(New IronOreBlock(), 20, 8, 0, 64),
|
||||||
new OreType(new RedstoneOreBlock(), 8, 7, 0, 16),
|
new OreType(new RedstoneOreBlock(), 8, 7, 0, 16),
|
||||||
new OreType(new LapisOreBlock(), 1, 6, 0, 32),
|
new OreType(new LapisOreBlock(), 1, 6, 0, 32),
|
||||||
new OreType(new GoldOreBlock(), 2, 8, 0, 32),
|
new OreType(new GoldOreBlock(), 2, 8, 0, 32),
|
||||||
new OreType(new DiamondOreBlock(), 1, 7, 0, 16),
|
new OreType(new DiamondOreBlock(), 1, 7, 0, 16),
|
||||||
|
new OreType(new DirtBlock(), 20, 32, 0, 128),
|
||||||
|
new OreType(new GravelBlock(), 10, 16, 0, 128),
|
||||||
));
|
));
|
||||||
$this->populators[] = $ores;
|
$this->populators[] = $ores;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ class WorldGenerator{
|
||||||
$this->generator->populateLevel();
|
$this->generator->populateLevel();
|
||||||
for($Z = 0; $Z < $this->width; ++$Z){
|
for($Z = 0; $Z < $this->width; ++$Z){
|
||||||
for($X = 0; $X < $this->width; ++$X){
|
for($X = 0; $X < $this->width; ++$X){
|
||||||
$this->generator->populateChunk($X, $Z);
|
$this->generator->populateChunk($X, $Z);
|
||||||
}
|
}
|
||||||
console("[NOTICE] Populating level ".ceil((($Z + 1)/$this->width) * 100)."%");
|
console("[NOTICE] Populating level ".ceil((($Z + 1)/$this->width) * 100)."%");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue