I finally figured it out by looking at the source code of Simple Ores 2. I don't know what was wrong with the code that was in the video. All I know is that this code works.
Instead of:
I put this in:
Also, there are two variables needed and they are put in the oregen file:
This worked fine for me!
Ok. I'm not sure what I was thinking not putting the code initially. The ore generation spans across four of those videos, and it's kind of hard to follow. Sorry. I have a few files that go into ore generation.
OreGeneration.java
OreGenConfig.java
Config.java
RandomizedMod.java (Main file)
The part of the main file that should do it is:
private void setup(final FMLCommonSetupEvent event)
{
OreGeneration.setupOreGeneration();
logger.info("Setup method registered.");
}
Thanks for your quick response!
I have been following this YouTube series: https://www.youtube.com/watch?v=t_zr2onGhmQ&list=PLiDUvCGH5WEUcxyUKxHpQpDuinaiNp3it&index=14
and everything worked fine when I was running it through Eclipse. I noticed, however, that when I built the project, ore would not generate. Why is it different and how can I fix it?
5 replies
Important Information
By using this site, you agree to our Terms of Use.