Jump to content

Stormister

Members
  • Posts

    2
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Stormister's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. SOLVED: I learned some more about ChunkPrimer and found out that I need to actually set the blocks through that sort of like the old Block array. AKA I needed to change the Block array in generateTerrain to ChunkPrimer If anybody knows anything about the way 1.8 handles chunk generation this would be super helpful because I have been staring at this issue for the past 5 hours with no solutions. I have a custom dimension based off of the Sky Dimension that Mojang didn't implement. It's pretty close to the original in terms of generation. However since updating to 1.8 the dimension simply doesn't generate any terrain. It spawns a platform to spawn on and nothing else but air. I originally thought that the culprit was in the provideChunk method: ChunkPrimer chunkprimer = new ChunkPrimer(); rand.setSeed((long)i * 0x4f9939f508L + (long)j * 0x1ef1565bd5L); Block blocks[] = new Block[32768]; biomesForGeneration = worldObj.getWorldChunkManager().loadBlockGeneratorData(biomesForGeneration, i * 16, j * 16, 16, 16); double ad[] = ChunkManagerOld.temperature; generateTerrain(i, j, blocks, biomesForGeneration, ad); replaceBlocksForBiome(i, j, blocks, biomesForGeneration); field_902_u.generate(this, worldObj, i, j, blocks); Chunk chunk = new Chunk(worldObj, chunkprimer, i, j); byte abyte1[] = chunk.getBiomeArray(); for (int k = 0; k < abyte1.length; k++) { abyte1[k] = (byte)biomesForGeneration[k].biomeID; } chunk.generateSkylightMap(); return chunk; If you'll notice, I had to insert a "ChunkPrimer" object into the constructor for the Chunk object. However previously I could use my Block array instead. Using the block array gives an error since that parameter does not exist in Chunk anymore. Am I doing something wrong with ChunkPrimer? Is there something I'm missing in the ChunkProviderHeaven file in general? I'll try to include all the related files here but if I miss anything let me know. ChunkProviderHeaven: ChunkManagerOld: MapGenSky: MapGenSkyCaves:
  2. You should use: entityPlayerMPObject.mcServer.getConfigurationManager().transferPlayerToDimension(entityPlayerMPObject, dimensionID, new CustomDimensionTeleporter(entityPlayerMPObject.mcServer.worldServerForDimension(dimensionID))); Of course, this requires a Teleporter class for your custom dimension. Just take a look at the Teleporter class in net.minecraft.world and make your own class that extends that Other than that entityPlayerMPObject is just an object of EntityPlayerMP and dimensionID is obviously the dimension's ID From what I can tell player.travelToDimension() only works for travelling to the Nether for whatever reason.
×
×
  • Create New...

Important Information

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