Posted January 28, 20169 yr How do i make a specific ore spawn in a specific biome,like an emerald, and if you can, please send me an example code.
January 28, 20169 yr Look at class ChunkProviderGenerate, especially its replaceBlocksForBiome method. I see a Forge event hook in there that could be useful if you subscribe to it. The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.
January 28, 20169 yr Once you've chosen a position to generate your ore at, you can use World#getBiomeGenForCoords to check the biome at that position. If it's the right biome, generate your ore; otherwise do nothing. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
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.