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

[Solved] Don't create new chunk

Discussion in 'Development' started by gistrec, Jan 27, 2017.

  1. gistrec

    gistrec Witch

    Messages:
    68
    GitHub:
    gistrec
    I have minigame's map's with 5x5 chunk (or more)
    How can I disable creating new chunk?
    And in pocketmine.yml:
    I must write "spawn-threshold: 25"?
     
  2. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    making the world to use a blank generator is maybe as good as it can gets
     
    gistrec, Muqsit and Sandertv like this.
  3. wolfdale

    wolfdale Zombie Pigman

    Messages:
    535
    GitHub:
    diamond-gold
    you can register ChunkLoadEvent and cancel the event if $event->isNewChunk() is true
     
    gistrec likes this.
  4. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    wolfdale and gistrec like this.
  5. gistrec

    gistrec Witch

    Messages:
    68
    GitHub:
    gistrec
    I will use 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.