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.

Thumbz

Members
  • Joined

  • Last visited

Everything posted by Thumbz

  1. Wouldn't this replace every block with air? I'm trying to make it recreate the world to see the changes in chunk generation.
  2. I searched through that, but it seems to work more with changing the state of blocks. There's not really anything having to do with regions, and I think that might be dealt with somewhere else. It's okay though, I can do it manually.
  3. In short, this: CustomPurgeCommand(world) { for (all regions in world) { delete region; } } Right now I'm doing some chunk generation stuff and I'm trying to speed up the process by creating a command that will purge everything with /purge and then reload the generation stuff.
  4. MEGA LAME. I guess I'll be watching a lot of load screen for a while.
  5. 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; }
  6. 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)
  7. 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.
  8. 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?

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.