Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-6765

World Generation API that runs after all terrain is generated

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • This server is running CraftBukkit version 3262-Spigot-dc75aca-f0f801e (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT)
    • Yes

      According to the javadocs this is the order

      1. generateNoise(WorldInfo, Random, int, int, ChunkData)
      2. generateSurface(WorldInfo, Random, int, int, ChunkData)
      3. generateBedrock(WorldInfo, Random, int, int, ChunkData)
      4. generateCaves(WorldInfo, Random, int, int, ChunkData)

      and these are the settings that you're able to override

      From my testing, if you set a chunk to air in the last generate method, there's still structures and decorations that generate inside the chunk. I don't want to just override the settings (ex. shouldGenerateStructures() ) as I still want structures, just not in that chunk. Would it be possible to add a method that runs after everything is generated? The alternative is setting the chunk to air in ChunkLoadEvent, which is annoying and laggy. 

            DerFrZocker Marvin Rieple
            Mersphydena Mersphydena
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: