I can't figure out how to make blocks generate randomly

Discussion in 'Plugin Development' started by ocomobock, Mar 14, 2015.

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

    ocomobock

    I have this idea for my server where chests generate as chunks are created, so they're pretty much just part of the world. I haven't been able to find anything that tells me how to do this, and I've tried everything to get it to work. Does anyone know how?
     
  2. Offline

    Skionz

    @ocomobock Listen to the WorldInitEvent, get the World, and add your own BlockPopulator to the list of BlockPopulators returned by World#getPopulators().
     
Thread Status:
Not open for further replies.

Share This Page