Jump to content

1.14 Ore generation works when ran from Eclipse but not when mod is built


Recommended Posts

Posted
  On 9/13/2019 at 1:20 AM, EvanatorM said:

Why is it different and how can I fix it?

Expand  

Post your code. I'm not gonna watch a YouTube video to see what potentially is your code.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Posted

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

  Reveal hidden contents

 

OreGenConfig.java

  Reveal hidden contents

 

Config.java

  Reveal hidden contents

 

RandomizedMod.java (Main file)

  Reveal hidden contents

 

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!

Posted
  On 9/13/2019 at 1:28 AM, EvanatorM said:

 Thanks for your quick response!

Expand  

I cant find anything obviously wrong at the moment.

  On 9/13/2019 at 1:28 AM, EvanatorM said:

Placement.COUNT_RANGE

Expand  

Try changing this to Placement.RANDOM_COUNT_RANGE

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

  • 2 weeks later...
Posted

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:

  Reveal hidden contents

I put this in:

  Reveal hidden contents

Also, there are two variables needed and they are put in the oregen file:

  Reveal hidden contents

This worked fine for me!

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.