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

Simply, I want this:  world.provider = myCustomWorldProvider

 

 

 

So, there's tutorials a plenty on creating and registering a WorldGenerator. (

)

 

There's also a really nice one on creating Dimensions and WorldProvider's. (http://wuppy29.blogspot.com/2013/01/modding-146-custom-dimension-part-6.html)

 

But the only thing I can find which would actually allow me to see my WorldProvider in action is a mod that's not 1.8  (http://minecraft.curseforge.com/mc-mods/226188-default-world-generator)

 

It really seems like there should be another way.  Any advice?

Do you want to change Overworld? It strongly depends on your purpose.

If you only have to change World Generation, Then you should make your own WorldType

 

So... What is your actual purpose?

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

  • Author

My goal is to experiment with terrain generation.  I don't really mind how, though I do think having to make a portal to go see it is excessive.

 

I've created a basic ChunkProvider algorithm already.  Really, all I want is to see it.

So if what you want to do is just testing some custom terrain generation,

just create a dimension with your chunkprovider, and transfer the player to the dimension.

 

It would be the easiest way for your purpose.

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

  • Author

Cool.  This mostly works.  The one thing I'm not fond of is generating the overworld first, and then being teleported on login, but I'm running, and that's good enough for me.

 

For those who are looking for the answer

How to create dimensions (http://wuppy29.blogspot.com/2013/01/modding-146-custom-dimension-part-3.html)

How to teleport dimensions (http://www.minecraftforge.net/forum/index.php?topic=18493.0)

How to call event on player login (http://www.minecraftforge.net/forum/index.php?topic=15153.0)

Oh that seems to be pretty awesome.

I. Stellarium for Minecraft: Configurable Universe for Minecraft! (WIP)

II. Stellar Sky, Better Star Rendering&Sky Utility mod, had separated from Stellarium.

What have you changed to achieve this? looks hilarious...

And why is there a nether portal?

Here could be your advertisement!

  • Author

I changed the chunk provider

It's two sine waves on the x and z axis.  And the nether portal appears whenever you change dimensions, I guess.

 

 

 

-++==========================++-

 

 

 

@Override

public Chunk provideChunk(int x, int z) {

 

ChunkPrimer chunkprimer = new ChunkPrimer();

 

IBlockState grass = Blocks.grass.getDefaultState();

IBlockState dirt = Blocks.dirt.getDefaultState();

IBlockState stone = Blocks.stone.getDefaultState();

IBlockState bedrock = Blocks.bedrock.getDefaultState();

IBlockState state;

 

for(int ix = 0; ix < 16; ++ix)  {

for(int iz = 0; iz < 16; ++iz)  {

int top = getHeight((x*16)+ix, (z*16)+iz);

chunkprimer.setBlockState(ix, top, iz, grass);

 

for(int depth=1; depth < top; ++depth)  {

if(depth < 10) {

state = dirt;  }

else {

state = stone;  }

chunkprimer.setBlockState(ix, top-depth, iz, state);

}

 

chunkprimer.setBlockState(ix, 0, iz, bedrock);

 

} }

 

Chunk chunk = new Chunk(this.m_world, chunkprimer, x, z);

return chunk;

}

 

 

private int getHeight(int x, int z) {

int xOff = (int) (Math.sin(0.1*(x))*7);

int zOff = (int) (Math.sin(0.07*(z))*10);

return xOff + zOff + 40;

}

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.