Jump to content

null

Members
  • Posts

    5
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by null

  1. you write your blocks into the chunkprimer after you have copied it to the chunk, you call setBlocksInChunkIsland to late.

    Put it directly after "this.setBlocksInChunk ..." or after "this.biomesForGeneration = ..." if you want to manipulate the biomes. 

     

    Edit:

    I am not shure if the world object has the biome information you need at this point, use biomesForGeneration instead, you have to calculate the coordinates manually since biomesForGeneration is an one dimensional array. 

     

    Edit 2:

    Also you should not check for the right biome and instead just update the biome information when a block is set.

     

    [...]
    primer.setBlockState(k2, l2+upperScale, i3, iblockstate);
    if(iblockstate != Blocks.AIR.getDefaultState()) {
      this.biomesForGeneration[k2 + i3 * 16] = KCore.instance.FloatingIslands; //i am not shure about the coordinates it could be i3 + k2*16 instead
    }
    [...]
    

     

     

    • Like 1
  2. I am no expert on this, but i would propose to get rid of the if(biome == KCore.instance.FloatingIslands) line. Floating islands will be created everywhere but there shouldn't be any chunk problems with chunk borders. If you really need to have a floating island biome at these positions then let the setBlocksInChunkIsland method return something telling you if there was at least one non-air block set, so you can fix the biome.

    • Like 1
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.