World Generator

Discussion in 'Plugin Development' started by Timberjaw, Feb 19, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Timberjaw

    Not too long ago, support for overriding the world generator was added to CraftBukkit. I'm curious if anyone has 1) played around with this functionality, and 2) has sample code they could share.

    I've been looking around the CB source and haven't really been able to figure it out yet. The net.minecraft.server.ChunkProviderGenerate class appears to be where the magic happens, but I was expecting something less...obfuscated.

    Any suggestions?
     
  2. Offline

    ahmeni

    I'd definitely be interested if someone got this to work as well. Currently working on a minigame for Bukkit and being able to spawn a new World with custom game map chunks loaded would be really useful.
     
  3. Offline

    Raphfrk

    There is a "generator" branch on github, it might be worth looking at that.

    There is an added option for the create world function in Server.java.

    You pass it a chunk generator and it uses it to make the world.
     
  4. Offline

    Timberjaw

    @Raphfrk Thanks, that's very helpful :) I didn't realize it wasn't pushed to master yet.
     
  5. Offline

    ahmeni

    @Raphfrk Wow, looks cool! Any idea when it'll be pushed to master?
     
  6. Offline

    Raphfrk

    No idea, looks like Dinnerbone is the one who is coding it.
     
Thread Status:
Not open for further replies.

Share This Page