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

Worlds, Dimensions in Maincode ?

Discussion in 'General discussion' started by Leselampe, Sep 29, 2017.

  1. Leselampe

    Leselampe Spider Jockey

    Messages:
    28
    Good evening ladies, gentlemens and (hhhmm...well) monsters!

    Some time ago i read a discussion about implementing changing/traveling world (or dimension) in pocketmine.

    Is there any idea finalized, how to solve it ?
    Any sightings on the road ahead when we can activate a lovely blurring netherportal and travel trough it ?

    cu
    Leselampe
     
  2. Thouv

    Thouv Slime

    Messages:
    84
    GitHub:
    adeynes
    So are you talking about changing worlds in terms of a plugin or through an actual nether portal? Bc in a plugin you can do
    PHP:
    $player->setLevel($this->getServer()->getLevelByName("level")); // $player is a Player instance, and $this extends PluginBase
    You could make a nether portal with this by changing the player's world (level) when they are in a portal block
     
  3. Leselampe

    Leselampe Spider Jockey

    Messages:
    28
    I am talking about changing worlds natively with pocketmine. Did not know, that you can use a existing (?) plugin to initiate a portal.
     
  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.