public function generateChunk($chunkX, $chunkZ) { $chunk = $this->level->getChunk($chunkX, $chunkZ); $chunk->setGenerated(); if ($chunkX % 20 == 0 && $chunkZ % 20 == 0) { for ($x = 0; $x < 16; $x++) { for ($z = 0; $z < 16; $z++) { $chunk->setBlock($x, 0, $z, Block::BEDROCK); for ($y = 1; $y <= 3; $y++) { $chunk->setBlock($x, $y, $z, Block::STONE); } $chunk->setBlock($x, 4, $z, Block:IRT); $chunk->setBlock($x, 5, $z, Block::GRASS); } Tree::growTree($this->level, $chunkX * 16 + 8, 6, $chunkZ * 16 + 8, $this->random, 0); } $chunk->setX($chunkX); $chunk->setZ($chunkZ); $this->level->setChunk($chunkX, $chunkZ, $chunk); } } How edit this to place block end portal and set obsidian to bedrock
Please use code blocks, thanks Spoiler: I am dumb and don't know what that is [PHP]Put your php code here[/PHP] or for normal code or files that aren't php: [CODE]Put normal code or file content (e.g. configs) here[/CODE] Spoiler: Bad words I am really getting tired from writing this, can people please get a proper working brain...
So, you want an end portal on the skyblock island with a the bedrock being obsidian? Spoiler: This will set bedrock to obsidian PHP: public function generateChunk($chunkX, $chunkZ) { $chunk = $this->level->getChunk($chunkX, $chunkZ); $chunk->setGenerated(); if ($chunkX % 20 == 0 && $chunkZ % 20 == 0) { for ($x = 0; $x < 16; $x++) { for ($z = 0; $z < 16; $z++) { $chunk->setBlock($x, 0, $z, Block::OBSIDIAN); for ($y = 1; $y <= 3; $y++) { $chunk->setBlock($x, $y, $z, Block::STONE); } $chunk->setBlock($x, 4, $z, Block::DIRT); $chunk->setBlock($x, 5, $z, Block::GRASS); } Tree::growTree($this->level, $chunkX * 16 + 8, 6, $chunkZ * 16 + 8, $this->random, 0); } $chunk->setX($chunkX); $chunk->setZ($chunkZ); $this->level->setChunk($chunkX, $chunkZ, $chunk); } }