WDYM LIKE CAN YOU SPEAK IN WHAT I CAN UNDERSTAND BRUHUHR WHAT THE HECK IS UNDERGROUND WINTER IS COMING 2 WHAT???
Hmm,how i create map underground survival with this codee PHP: class BasicIsland extends IsleGenerator { /** * @return string */ public function getName(): string { return "Basic"; } /** * @param int $chunkX * @param int $chunkZ */ public function generateChunk(int $chunkX, int $chunkZ) : void { $chunk = $this->level->getChunk($chunkX, $chunkZ); $chunk->setGenerated(); if($chunkX == 0 && $chunkZ == 0) { for ($x = 6; $x < 12; $x++) { for ($z = 6; $z < 12; $z++) { $chunk->setBlock($x, 61, $z, Block::DIRT); $chunk->setBlock($x, 62, $z, Block::DIRT); $chunk->setBlock($x, 63, $z, Block::GRASS); } } for($airX = 9; $airX < 12; $airX++) { for($airZ = 9; $airZ < 12; $airZ++) { $chunk->setBlock($airX, 61, $airZ, Block::AIR); $chunk->setBlock($airX, 62, $airZ, Block::AIR); $chunk->setBlock($airX, 63, $airZ, Block::AIR); } } Tree::growTree($this->level, 11 , 64, 6, $this->random, 0); $chunk->setBlock(8, 64, 7, Block::CHEST); $chunk->setX($chunkX); $chunk->setZ($chunkZ); $this->level->setChunk($chunkX, $chunkZ, $chunk); } if($chunkX == 4 and $chunkZ == 0) { for($x = 6; $x < 11; $x++) { for($z = 6; $z < 11; $z++) { for($y = 60; $y < 65; $y++) { $chunk->setBlock($x, $y, $z, Block::SAND); } } } $chunk->setBlock(8, 65, 8, BlockIds::CACTUS); } } /** * @param int $chunkX * @param int $chunkZ */ public function populateChunk(int $chunkX, int $chunkZ) : void { return; } /** * @return Vector3 */ public static function getWorldSpawn(): Vector3 { return new Vector3(7, 66, 7); } /** * @return Vector3 */ public static function getChestPosition(): Vector3 { return new Vector3(8, 64, 7); } /** * @return Vector3 */ public function getSpawn(): Vector3 { return new Vector3(7, 66, 7); }}
I want to make all players play survival underground like Skyblock that survives above the sky, so how do I make a new island with the code above
The code uses setBlock function which means you'll have to manually set each blocks to create your map
Dude, it's gonna be massive. Just use world gen and replace the code with ConsoleCommandSender or something :/