Jump to content

Ore Gen Issues


GlacierPark19

Recommended Posts

Hello, I am building my first mod (whoo!), and am trying to implement world generation. I am trying to generate my ores in the overworld, however my IDE can't define BASE_STONE_OVERWORLD BASE_STONE_OVERWORLD, BASE_STONE_NETHER, neither works. Help!

 

  overworldOres.add(register("copper_ore", Feature.ORE.withConfiguration(new OreFeatureConfig(
                OreFeatureConfig.FillerBlockType.BASE_STONE_OVERWORLD, RegistryHandler.COPPER_ORE.get().getDefaultState(), 4)) //Vein Size
                .range(64).square() //Spawn height start
                .func_242731_b(64))); //Chunk spawn frequency

 

Link to comment
Share on other sites

5 minutes ago, GlacierPark19 said:

Hello, I am building my first mod (whoo!), and am trying to implement world generation. I am trying to generate my ores in the overworld, however my IDE can't define BASE_STONE_OVERWORLD BASE_STONE_OVERWORLD, BASE_STONE_NETHER, neither works. Help!

 


  overworldOres.add(register("copper_ore", Feature.ORE.withConfiguration(new OreFeatureConfig(
                OreFeatureConfig.FillerBlockType.BASE_STONE_OVERWORLD, RegistryHandler.COPPER_ORE.get().getDefaultState(), 4)) //Vein Size
                .range(64).square() //Spawn height start
                .func_242731_b(64))); //Chunk spawn frequency

 

It should be either

OreFeatureConfig.FillerBlockType.NATURAL_STONE

OR

OreFeatureConfig.FillerBlockType.NETHER_ORE_REPLACEABLES

OR

OreFeatureConfig.FillerBlockType.NETHERRACK

 

Link to comment
Share on other sites

47 minutes ago, GlacierPark19 said:

Put OreFeatureConfig.FillerBlockType.NATURAL_STONE in, and it still can't find the class. I'm also having this issue.

are there errors in the log,
also show the complete class
and is there a reason why you post your code as an image
-> there is a code feature you can use

Link to comment
Share on other sites

10 minutes ago, GlacierPark19 said:

Found it lol

the problem is not your code, it's your java jdk, it's not complete
the required 'tools.jar' is missing

simplest solution check whether 'tools.jar' is really missing or whether the file is just not found.
if 'tools.jar' really don't exist download a new one

Link to comment
Share on other sites

9 hours ago, GlacierPark19 said:

Okay so I found tools.jar. What in the name of christmas is happening?

okay in the path (set with JAVA_HOME) in which your IDE is looking ("C:\Program Files\Java\jre1.8.0_291") for a JDK there is a JRE,
which means you have to download a JDK and put it in the folder that you have set with the JAVA_HOME system variable

 

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.