mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
using 2d noise + removed console
This commit is contained in:
parent
92b89194f1
commit
f405ad8b17
2 changed files with 2 additions and 4 deletions
|
|
@ -88,9 +88,8 @@ class NormalGenerator implements NewLevelGenerator{
|
|||
for($x = 0; $x < 16; ++$x){
|
||||
$biomes[($z << 4) + $x] = chr($this->pickBiome($chunkX * 16 + $x, $chunkZ * 16 + $z)->id);
|
||||
$i = ($z << 4) + $x;
|
||||
$hills[$i] = $this->noiseHills->noise3D($x + ($chunkX << 4), 0, $z + ($chunkZ << 4), 0.11, 12, true);
|
||||
$hills[$i] = $this->noiseHills->noise2D($x + ($chunkX << 4), $z + ($chunkZ << 4), 0.11, 12, true);
|
||||
$patches[$i] = $this->noisePatches->noise2D($x + ($chunkX << 4), $z + ($chunkZ << 4), 0.03, 16, true);
|
||||
//$patchesSmall[$i] = $this->noisePatchesSmall->noise2D($x + ($chunkX << 4), $z + ($chunkZ << 4), 0.5, 4, true);
|
||||
$base[$i] = $this->noiseBase->noise2D($x + ($chunkX << 4), $z + ($chunkZ << 4), 0.7, 16, true);
|
||||
if($base[$i] < 0){
|
||||
$base[$i] *= 0.5;
|
||||
|
|
@ -139,7 +138,7 @@ class NormalGenerator implements NewLevelGenerator{
|
|||
}elseif($patches[$i] < -0.8){
|
||||
$chunk .= "\x0d"; //gravel
|
||||
}else{
|
||||
$chunk .= $biomeID === BIOME_DESERT ? chr(SAND) : chr(GRASS); //grass
|
||||
$chunk .= $biomeID === BIOME_DESERT ? chr(SAND) : chr(GRASS);
|
||||
}
|
||||
}else{
|
||||
$chunk .= "\x00";
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ class BiomeBasedTreePopulator extends \TreePopulator
|
|||
}
|
||||
break;
|
||||
case BIOME_JUNGLE:
|
||||
cosnole("placing jungle wood on $x $z");
|
||||
$meta = SaplingBlock::JUNGLE;
|
||||
break;
|
||||
case BIOME_TAIGA:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue