Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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.

 

  • Author

It is using the vanilla chunk provider if you look in the PlanetWP class

  • Author

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.

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.