Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Stop Chunk Loading

Comments in 'Plugin Development' started by iJoshuaHD, Mar 3, 2015.

  1. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,201
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    How do you stop chunk from loading when a player reach a certain limit? for example, maximum x coordinate is 128 and z coordinate is 128 also.
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    You can't. But you can extend the McRegion/Anvil level provider and return dummy chunks rather than loading/generating them
  3. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,710
    Plugins:
    22
    Minecraft User:
    Falkirknh
    I would just block incoming chunk request packets and outgoing chunk packets. I am not sure if this will make PocketMine repeatadly attempt to send chunks.
  4. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,201
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    i was planning to create a world that its like the old one thats not unlimited.
  5. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Then rewrite PocketMine or make another server software. PocketMine forces infinite worlds :p
    I mean, you cannot make it like old maps by not loading those chunks. You still have to send dummy chunks.
    Therefore, the best method to do so is to send your own packets to the client and block the DataPacketSendEvent for FullChunkDataPacket.
  6. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,201
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    im believing its possible but its just that we have no idea what to do with it. hoping @shoghicp can confirm this.
  7. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    As I remember, the server sends data that it is an infinite world not an old world before we can handle it.
  8. jython234
    Offline

    jython234 Notable Member Plugin Developer

    Joined:
    Nov 4, 2013
    Posts:
    324
    Plugins:
    1
    Minecraft User:
    jython234
    Chunk Request packets are never sent by the client :/

Share This Page

Advertisement