I've made a mod that adds a gunpowder type ore (saltpeter) which you can mine. I've tested it using the single-player command mod, and I can spawn said block, mine it, receive a random amount of gunpowder.
My question is;
How do I know that my ore/block is spawning along with the rest of the normal ore and blocks in game? Is there an easy way to tell where it's at via a third party program? Also, how would I go about changing how frequent the block populates the map if it is spawning, and is it possible to set a certain level of depth in the ground that it begins to appear?
I'm pretty sure it has something to do with the ChunkProviderGenerator as well as making a new WorldGen file for my block/ore. I'm just rather stuck in doing so.
I've already given that a look; though I appreciate it still. What I want to do is fit my code in ChunkProviderGenerator right below oreIron, yet have it using the same information if that's possible. I'll test it and post back what happens.
Also, now I'm getting an error in my reobf.log regarding...."Field net/minecraft/src/block/example will not be reobfuscated" as well as the console error KeyError 'net/minecraft/src/WorldGenExample'
Edit: All right, now I've got it from producing any physical errors via the reobf.bat. The problem remains that now there are still the errors in minecraft_compile.log referencing "Field net/minecraft/src/block/example will not be reobfuscated". Anyone have any ideas at all? If someone needs it, I'll post the code for the few files I've edited.
Huzzah. Even with the error in my minecraft_compile.log, I've successfully implemented the new block type to spawn as iron and coal would. I'm still curious as to how to fix the error though, or if it's insignificant.
My question is;
How do I know that my ore/block is spawning along with the rest of the normal ore and blocks in game? Is there an easy way to tell where it's at via a third party program? Also, how would I go about changing how frequent the block populates the map if it is spawning, and is it possible to set a certain level of depth in the ground that it begins to appear?
____________________________________________________________________________
BOOMP!
...Of course it does. How else would it work, Creepers?
Maybe that will help you.
Also, now I'm getting an error in my reobf.log regarding...."Field net/minecraft/src/block/example will not be reobfuscated" as well as the console error KeyError 'net/minecraft/src/WorldGenExample'
Edit: All right, now I've got it from producing any physical errors via the reobf.bat. The problem remains that now there are still the errors in minecraft_compile.log referencing "Field net/minecraft/src/block/example will not be reobfuscated". Anyone have any ideas at all? If someone needs it, I'll post the code for the few files I've edited.