Force Chunks to Load

Discussion in 'Plugin Development' started by KeybordPiano459, Sep 11, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    KeybordPiano459

    Is there a code to load chunks before something happens? For example I have code that teleports the player to a random location in the world, is there a way to get that location and load that chunk before the player gets teleported? Either that or a code to keep all chunks loaded.
     
  2. Offline

    MrFigg

    location.getBlock().getChunk().load();
     
  3. Offline

    MoonStorm

    unfortunatelly this doesn't populate the chunk.
     
Thread Status:
Not open for further replies.

Share This Page