1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

I neef help please

Discussion in 'Plugin Help' started by Mochi, Nov 18, 2020.

  1. Mochi

    Mochi Baby Zombie

    Messages:
    113
    Can i change or create underground map from this skyblock generator please??

    Code:
    PHP:
    class BasicIsland extends IsleGenerator {
        
        
    /**
         * @return string
         */
        
    public function getName(): string {
            return 
    "Basic";
        }
        
        
    /**
         * @param int $chunkX
         * @param int $chunkZ
         */
        
    public function generateChunk(int $chunkXint $chunkZ) : void {
            
    $chunk $this->level->getChunk($chunkX$chunkZ);
            
    $chunk->setGenerated();
            if(
    $chunkX == && $chunkZ == 0) {
                for (
    $x 6$x 12$x++) {
                    for (
    $z 6$z 12$z++) {
                        
    $chunk->setBlock($x61$zBlock::DIRT);
                        
    $chunk->setBlock($x62$zBlock::DIRT);
                        
    $chunk->setBlock($x63$zBlock::GRASS);
                    }
                }
                for(
    $airX 9$airX 12$airX++) {
                    for(
    $airZ 9$airZ 12$airZ++) {
                        
    $chunk->setBlock($airX61$airZBlock::AIR);
                        
    $chunk->setBlock($airX62$airZBlock::AIR);
                        
    $chunk->setBlock($airX63$airZBlock::AIR);
                    }
                }
                
    Tree::growTree($this->level11 646$this->random0);
                
    $chunk->setBlock(8647Block::CHEST);
                
    $chunk->setX($chunkX);
                
    $chunk->setZ($chunkZ);
                
    $this->level->setChunk($chunkX$chunkZ$chunk);
            }
            
            if(
    $chunkX == 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$zBlock::SAND);
                        }
                    }
                }
                
    $chunk->setBlock(8658BlockIds::CACTUS);
            }
        }
        
        
    /**
         * @param int $chunkX
         * @param int $chunkZ
         */
        
    public function populateChunk(int $chunkXint $chunkZ) : void {
            return;
        }
        
        
    /**
         * @return Vector3
         */
        
    public static function getWorldSpawn(): Vector3 {
            return new 
    Vector3(7667);
        }
        
        
    /**
         * @return Vector3
         */
        
    public static function getChestPosition(): Vector3 {
            return new 
    Vector3(8647);
        }
        
        
    /**
         * @return Vector3
         */
        
    public function getSpawn(): Vector3 {
            return new 
    Vector3(7667);
        }

    }
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.