Jump to content

[1.8] Custom worldtype trouble


Failender

Recommended Posts

I started reading through minecraft worldtype, because I wanted to create my own. Problem is that I am confused how to do that right.

So I wanted to ask if there is any updated worldtype tutorial, or example code to study on how to use worldtypes for forge?

Greetz Fail

Link to comment
Share on other sites

I have the same problem and would like to know how to make custom world types.

 

The only 1.8 mod I'm aware of that adds custom world type is Vintagecraft, but it actually replaced the vanilla default and flatworld types with its own, which isn't quite the same thing. I've had a look at its code but it hasn't helped so far.

 

EDIT: Using the code I found here: http://www.minecraftforge.net/forum/index.php/topic,28975.msg149170.html#msg149170    I made a world type appear that would generate like normal world gen. Here's my modified world gen class:

 

 

public class MYMODWorldType extends WorldType {

 

    public MYMODWorldType(int par1, String name){

        super(name);

    }

 

    public GenLayer getBiomeLayer(long worldSeed, GenLayer parentLayer)

    {

        GenLayer ret = new GenLayerBiome(200L, parentLayer, this, "HI"); //I'm not sure what to do about the String required at the end. It's only for the Customized world type, so I think it can be anything and it won't matter.

        ret = GenLayerZoom.magnify(1000L, ret, 2);

        ret = new GenLayerBiomeEdge(1000L, ret);

        return ret;

    }

 

}

 

 

And then I added this into my main class after everything else:

 

 

@EventHandler

    public void PostLoad(FMLPostInitializationEvent PostEvent)

    {

      WorldType MYMOD = new MYMODWorldType(15, "MYMOD");

    }

 

Link to comment
Share on other sites

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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