Jump to content

1.7.2 Help with making a new biome


Voidedpizzel

Recommended Posts

I have been trying for a while now to figure out how to make a custom biome in minecraft and I can't seem to figure it out :( I have read up on many threads on the issue of adding a new biome and how it seemingly became harder to do then you would previously do on version 1.6.4 where you could simply just register the biome you made by adding

GameRegistry.addBiomes

under your mod events. I have also looked at you tube tutorials to further understand the concept despite the fact they were all tutorials for 1.6.4 and still not luck :\ now what I have done was a series of different methods suggested in this forum and with some of these methods I got a working code that gave no errors but then I would run into the problem of finding the biome. Since you cant simply just get a Biome from the creative block like you can with a Block and an Item etc. It becomes very hard for me to deduct if my Biome actually spawned or not. Any help regarding this would be tremendously appreciated! :)

 

In other notes.

//

/*I just recently started modding and have been able to successfully make my own Blocks,Items, and, Recipes as well as add textures to the block and item.

/*given I have just started doing this I have also started working on getting a basic understanding of java but not anything too advanced that would allow me to remake  something like the WorldGen class file for my own mod

/* I am trying to make an Underground biomes mod that kind of replicates Terraria's Underground Generations etc. such as Ice Caves and Underground Desert Temples.

 

Thanks in Advance for the help! I will provide any piece of code I' Am using to try to get my custom biomes to work if needed

Link to comment
Share on other sites

pre 1.7.2 There is a list of biomes, you randomly choose one, then apply rivers and rare/edge/sub biomes.

 

post 1.7.2 There is 4 separate lists of biomes, which are created in such a way as to apply all sorts of rules to what goes where.

 

This is the main reason there isn't a simple GameRegistry.addBiomes any more. As you'd need to have 4 separate ones, plus some way to deal with Minecraft's own biome rules that make Mesa 50% of the desert biomes for instance.

 

There are work arounds, which involve a lot of extra code to either:

1. Provide your own GenLayer replacement code to swap some biomes for your biome.

2. Paint a shape of your biome over the top of the end result (this is what Thaumcraft does with it's magical forest biome).

3. Hack into the Minecraft code using reflection to override their stuff.

 

I could write up in detail how the current biome code works, but it would take up 4 or more pages. Suffice to say there are a few issues that need to be resolved before we could even consider a set of Forge biome registration system.

Link to comment
Share on other sites

Ben I have found your method and tried it yesterday but I got NoSuchFieldErrors when I launched the game :( and from looking at the biomes o plenty source code it would seem that that is what people are doing. Making their own GenLayer  and BiomeGenBase class files and extending it with the vanilla ones. I'm currently focusing on doing a little bit more wrapping my head around java before I attempt making my own GenLayer file for my Biomes which is still a ways to go with me as I'm still a bit foreign with java and coding in general :P and Fabricator if you feel motivated enough to do a tutorial on this concept then by all means do so as it would help many people who are struggling with this same thing! :) I really wish this could be made easier in the future though :\

Link to comment
Share on other sites

As a person trying to learn java Blindly copying and pasting is something I'am heavily laying away from :) I will check the notes in the pastebin and see it through. In other words did you manage to get your Biome to spawn in your world if so did you use any methods to force the biome to spawn at your spawn?

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.