Jump to content

Adding World Types


cadyyan

Recommended Posts

I'm looking at creating a mod that adds a few extra world types to the game. I've already found the WorldType class and I've been able to add extensions to it without problems. However this has all been with Minecraft running in debug mod from Eclipse. I surmise that if I were to try and run the mod from a normal instance of Minecraft with Forge installed this would not work and when I tested this was indeed the case. I get class not found exceptions galore because I'm extending a Minecraft class. I've not found any hooks in Forge for adding new world types. Am I incorrect in saying that or did I miss something big?

Link to comment
Share on other sites

Hey there! Lucky for you I just added my own WorldType and I'll gladly share how I did it. It's actually a pretty long process, well not a long process more like annoying to code involving multiple files. But I used this tutorial on the minecraftforums and tweaked it just a slight bit to my liking. I'm sure you can figure it out by reading this tutorial. http://www.minecraftforum.net/topic/1261568-creating-modsmodloaderhow-to-create-a-simple-worldtypejune-1-2012/page__hl__%20worldtype

Link to comment
Share on other sites

Thank you very much for the help! Extra help is very much appreciated. Some of this code from Minecraft is a bit strange. I figured out just recently that some of what I was doing I was just doing wrong. I have been able to correct some of it. I've noticed that there are a lot of strange restrictions and choices that were made in the design of the world generation system. One of the problems I encountered when making a Void world type (just to get the hang of it) was that it is very difficult to place the starter block at spawn since you don't know where spawn is yet. I can understand the reasoning since there are lots of rules for where spawn is but it makes things difficult. Which is why I'm glad you shared the link. The example of a Void world should help.

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.



×
×
  • Create New...

Important Information

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