Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • 1.7.2 Help with making a new biome
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 0
Voidedpizzel

1.7.2 Help with making a new biome

By Voidedpizzel, May 26, 2014 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

Voidedpizzel    0

Voidedpizzel

Voidedpizzel    0

  • Tree Puncher
  • Voidedpizzel
  • Members
  • 0
  • 6 posts
Posted May 26, 2014

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

  • Quote

Share this post


Link to post
Share on other sites

Voidedpizzel    0

Voidedpizzel

Voidedpizzel    0

  • Tree Puncher
  • Voidedpizzel
  • Members
  • 0
  • 6 posts
Posted May 27, 2014

bump

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    7697

diesieben07

diesieben07    7697

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7697
  • 56382 posts
Posted May 27, 2014

Not sure if you found my method or not, but as far as I know that is the only way at this point in time.

  • Quote

Share this post


Link to post
Share on other sites

fabricator77    0

fabricator77

fabricator77    0

  • Tree Puncher
  • fabricator77
  • Members
  • 0
  • 26 posts
Posted May 27, 2014

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.

  • Quote

Share this post


Link to post
Share on other sites

Voidedpizzel    0

Voidedpizzel

Voidedpizzel    0

  • Tree Puncher
  • Voidedpizzel
  • Members
  • 0
  • 6 posts
Posted May 28, 2014

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 :\

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    7697

diesieben07

diesieben07    7697

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7697
  • 56382 posts
Posted May 28, 2014

Well, as I said in the thread where I posted it, this is not a solution you should just blindly copy & paste. Read the comments in the code, it will tell you why it crashes outside the development environment.

 

Making your own GenLayer sounds like a bad idea to me, as it will cause all sorts of incompatibilities with other mods. Don't go that way.

  • Quote

Share this post


Link to post
Share on other sites

Voidedpizzel    0

Voidedpizzel

Voidedpizzel    0

  • Tree Puncher
  • Voidedpizzel
  • Members
  • 0
  • 6 posts
Posted May 29, 2014

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?

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    7697

diesieben07

diesieben07    7697

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7697
  • 56382 posts
Posted May 29, 2014

As I also pointed out the code is completely untested, but someone else has apparently got it to work.

  • Quote

Share this post


Link to post
Share on other sites

Voidedpizzel    0

Voidedpizzel

Voidedpizzel    0

  • Tree Puncher
  • Voidedpizzel
  • Members
  • 0
  • 6 posts
Posted May 29, 2014

read the whole pastebin and the NoSuchField Errors still persists :(

 

The code I got from Bens Pastebin: http://pastebin.com/zQkU2qwj where "DesertCave" is replacing "MyMod" in the paste.

 

The CaveBiomesGenLayerAccessor Class: http://pastebin.com/Gm0W8pfy

 

The Minecraft Crash Report: http://pastebin.com/7w7L3n2N

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    7697

diesieben07

diesieben07    7697

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7697
  • 56382 posts
Posted May 29, 2014

There is a comment in my original paste that says "// SRG names for non-dev-env"

You just replaced the reflection code with references to the SRG names entirely.

Do NOT use this code if you don't know what's going on. And your questions show that you DO NOT know what is going on.

  • Quote

Share this post


Link to post
Share on other sites

Voidedpizzel    0

Voidedpizzel

Voidedpizzel    0

  • Tree Puncher
  • Voidedpizzel
  • Members
  • 0
  • 6 posts
Posted May 29, 2014

fixed the field error. I put a specified field for the getDeclaredField instead of "biomePatternGeneratorChain" which is why things were derping up :P Now its all a matter of seeing if I can find the biome or not. Thanks for the help and patience!

  • Quote

Share this post


Link to post
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • GhostGamesFSM
      1.16 Ore generation.

      By GhostGamesFSM · Posted 5 minutes ago

      sorry for the txt, but thanks for the comment. I don't have a BiomeLoadingEvent, but I just have to see how I do that. When I have that I send you a message if that works.
    • HOTSAUCEMAN
      help with loading my world

      By HOTSAUCEMAN · Posted 6 minutes ago

      just ran it again to get more updated logs  debug-1.log.gz
    • HOTSAUCEMAN
      help with loading my world

      By HOTSAUCEMAN · Posted 10 minutes ago

      when loading into my world it says its loading, and then changes to a dirt background with no text; i've looked at multiple threads, forums and videos but i can't find any issue similar to mine (at least on a similar version)  debug-1.log.gz
    • Beethoven92
      [1.16.5] Beacon Overwrite (Screen Error)

      By Beethoven92 · Posted 17 minutes ago

      I apologize...i misread the part where you say that your custom beacon inventory actually opens fine! Yeah, the proximity check is doing its job, the problem seems to be that when pressing the confirm button you are sending a vanilla CUpdateBeaconPacket, then handled by the server, which will check if your open container is a BeaconContainer. It would be helpful to see the complete code you have, please post a link to your repository
    • Beethoven92
      [1.16.5] How to make EnchantedBook go to Custom ItemGroup

      By Beethoven92 · Posted 35 minutes ago

      Show what you tried then. It should be "enchantment.your_mod_id.your_enchantment_id"
  • Topics

    • GhostGamesFSM
      2
      1.16 Ore generation.

      By GhostGamesFSM
      Started 17 hours ago

    • HOTSAUCEMAN
      1
      help with loading my world

      By HOTSAUCEMAN
      Started 10 minutes ago

    • Nyko
      3
      [1.16.5] Beacon Overwrite (Screen Error)

      By Nyko
      Started Yesterday at 07:22 AM

    • samjviana
      5
      [1.16.5] How to make EnchantedBook go to Custom ItemGroup

      By samjviana
      Started Sunday at 10:00 PM

    • DrigglyEast
      0
      Fatally Missing Registry Entries

      By DrigglyEast
      Started 2 hours ago

  • Who's Online (See full list)

    • alexro871
    • GhostGamesFSM
    • Beethoven92
    • IntentScarab
    • CookieLukas
    • Tavi007
    • HOTSAUCEMAN
    • zlappedx3
    • am pro
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • 1.7.2 Help with making a new biome
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community