Jump to content

Thumbz

Members
  • Posts

    12
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Thumbz's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  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. with water : ( )
  5. MEGA LAME. I guess I'll be watching a lot of load screen for a while.
  6. 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; }
  7. WEEEEEEEEE!!!!
  8. 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)
  9. 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.
  10. 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?
×
×
  • Create New...

Important Information

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