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

PM generating void world

Discussion in 'Help' started by InxGaming, Jul 29, 2017.

  1. InxGaming

    InxGaming Spider

    Messages:
    14
    How do I generate a void world in PM plugin? By the way, keep in mind that I want to generate a void world directly when executing a command, I don't want to make my own generators (like in the EmptyWorld plugin)

    for example, if I ran the command /voidworld <name>, the void world would automatically generate itself

    edit : this should have probably been in pocketmine plugin dev section, excuse me lol, this account is 7 minutes and 46 seconds old
     
    Last edited: Jul 29, 2017
  2. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
  3. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    oh wait, i think i am talking crap...
     
  4. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    Okay, after doing some tests it is actually quite easy
    PHP:
    /** string $yourname The name you want your level to have. */
    /** PluginBase $this Your plugin instance */
    $this->getServer()->generateLevel($yournamenull"pocketmine\level\generator\Flat", ["preset" => "3;;1"]);
     
    Awzaw likes this.
  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.