Solved Is there any way to listen for chunk generation events

Discussion in 'Plugin Development' started by Codisimus, Jul 24, 2013.

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

    Codisimus

    The title says it all. I want to listen for when chests are naturally spawned. I don't think this is possible but I thought someone out there could at least confirm this for me.
     
  2. Offline

    Tirelessly

  3. Codisimus
    ChunkLoadEvent, get the chunk, check if new.

    If you want to check for chests in that chunk, then loop through the blocks.
     
  4. Offline

    IcyRelic

    Question for my purposes will that allow me to change what ever blocks spawn in that chunk for example mob spawners into iron blocks
     
  5. Yes. Loop through the blocks in that chunk, check for spawners, then set them to iron blocks.
     
  6. Offline

    Codisimus


    I didn't even think to reference the ChunkLoadEvent. Thanks a lot for the help, the users of my plugin and I greatly appreciate the quick response!
     
Thread Status:
Not open for further replies.

Share This Page