Jump to content

Custom Dimension not generating


rmb938

Recommended Posts

Hi, I registered a new dimension and have done everything to get the dimension loaded and setup but no chunks are being generated. When I teleport the player to the dimension nothing shows up and I only can see the void.

 

Registering Dimension on Server Start(Server sided)

 

DimensionManager.registerProviderType(11, PlanetWP.class, false);
DimensionManager.registerDimension(3, 11);
                DimensionManager.initDimension(3);

 

Registering Dimension client side on preInit

 

@PreInit
    @SideOnly(Side.CLIENT)
    public void preInit(FMLPreInitializationEvent event) {
        System.out.println("Registering Providers");
        DimensionManager.registerProviderType(11, PlanetWP.class, false);
        
        DimensionManager.registerDimension(3, 11);
        
    }

 

PlanetWP Class

 

package com.gmail.rmb1993.spc.server.world;

import net.minecraft.world.WorldProvider;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraft.world.biome.WorldChunkManagerHell;
import net.minecraft.world.chunk.IChunkProvider;
import net.minecraft.world.gen.ChunkProviderGenerate;

/**
*
* @author Ryan
*/
public class PlanetWP extends WorldProvider {
    
    @Override
    public String getDimensionName() {
        return "APlanet";
    }

    @Override
    public boolean canRespawnHere() {
        return true;
    }

    @Override
    public void registerWorldChunkManager() {
        this.worldChunkMgr = new WorldChunkManagerHell(BiomeGenBase.beach, 0.8F, 0.1F);
    }

    @Override
    public IChunkProvider createChunkGenerator() {
        return new ChunkProviderGenerate(worldObj, worldObj.getSeed(), true);
    }
}

 

Teleport Code (atm it is in ServerChatEvent just for quick testing)

 

event.player.mcServer.getConfigurationManager().transferPlayerToDimension(event.player, 3);

 

 

Output on server Console

 

2013-02-04 09:51:18 [iNFO] [sTDOUT] Unable to find spawn biome
2013-02-04 09:51:33 [iNFO] [ForgeModLoader] Loading dimension 3 (mcpworld) (net.minecraft.server.dedicated.DedicatedServer@28362b)

 

So as you can see it loads the dimension but there is no preparing spawn area for this dimension and no indication that anything is being generated. Like I said above when I teleport there is it just a empty void. It seems like there should be blocks there as I don't fall to my death but I do not see anything.

 

Link to comment
Share on other sites

Look in the code in the first post in the PlanetWP class it clearly says it is using ChunkProviderGenerate as the chunk provider being imported from net.minecraft.world.gen.ChunkProviderGenerate

 

which is built into vanilla minecraft so it should work fine without needing any changes.

 

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

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