1.15.2 Which event is called before a world generates?

Discussion in 'Spigot Plugin Development' started by Hex_27, Feb 5, 2020.

  1. Right now, I use WorldInitEvent, but it only calls after generating a few chunks.

    Which event should I use to get a world object (or craftworld or WorldServer nms object) before any chunks are generated?

    Not sure when WorldLoadEvent calls, is it the solution?
     
  2. You can do a test, Run both events, add a debug line into each of them, and see which one runs first.
     
  3. Just tested, worldloadevent calls only when generation is complete, not suitable
     
  4. Thats seems like unintended behavior WorldInitEvent should call before world generation. Could be a spigot bug as these events are not used that much people could have overlooked it
     
  5. Should I report it as a bug?