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

structures in the world with custom generator not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • None
    • spigot 1.16.2 or later

      a world management plugin(multiverse-core)

      a custom generator plugin that generate vanilla structure

    • git-Spigot-57bbdd8-dea4138
    • Yes

      This problem began with spigot1.16.2. Vanilla structure in world with custom genrator do not spawn specific mob. Such as pillager outpost not spawn pillager. 

       

      Here's how to reproduce the problem

      1.install any world generator plugin that generate vanilla structure.

      could like this:

      public class EmptyChunkGenerator extends ChunkGenerator {
      
          @Override
          public ChunkData generateChunkData(World world, Random random, int x, int z, BiomeGrid biome) {
              return createChunkData(world);
          }
      
          @Override
          public boolean canSpawn(World world, int x, int z) {
              return true;
          }
      
          @Override
          public Location getFixedSpawnLocation(World world, Random random) {
              final Location spawnLocation = new Location(world, 0.0D, 64.0D, 0.0D);
              final Location blockLocation = spawnLocation.clone().subtract(0D, 1D, 0D);
              blockLocation.getBlock().setType(Material.BEDROCK);
              return spawnLocation;
          }
          public boolean shouldGenerateStructures() {
              return true;
          }
      
      
      }

        I put this plugin in attachment.

      2.use multiverse-core create a world

       

      /mv create test normal -g void-generator

      3.use locate command find a pillager_outpust

      /locate pillager_outpust

      4.teleport to it, and build a platform. you will find no pillager spawn. But in spigot 1.16.1 and before, there will spawn many pillagers.

       

            Unassigned Unassigned
            Molean Molean
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: