Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.16.3] How to Use Ore Gen
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 2
myounge

[1.16.3] How to Use Ore Gen

By myounge, October 22, 2020 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

myounge    0

myounge

myounge    0

  • Tree Puncher
  • myounge
  • Members
  • 0
  • 14 posts
Posted October 22, 2020 (edited)

I tried to make my Own mod.

That mod add ore and dimension.

I want to add my ore at overworld.

So, I searched and I found.

A video that I saw said use 

CounterRangeConfig = new CounterRangeConfig(...)

However, at 1.16.2, It removed.

How do I use OreGen

Edited October 22, 2020 by myounge
  • Quote

Share this post


Link to post
Share on other sites

Draco18s    2401

Draco18s

Draco18s    2401

  • Reality Controller
  • Draco18s
  • Members
  • 2401
  • 15920 posts
Posted October 22, 2020

Ore Gen is done with json now.

  • Quote

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Share this post


Link to post
Share on other sites

Nuroyun    0

Nuroyun

Nuroyun    0

  • Tree Puncher
  • Nuroyun
  • Members
  • 0
  • 2 posts
Posted October 29, 2020 (edited)
On 10/22/2020 at 6:46 AM, Draco18s said:

Ore Gen is done with json now.

how, can you give a link to a site i can learn

Edited October 29, 2020 by Nuroyun
  • Quote

Share this post


Link to post
Share on other sites

Pickle_Face5    1

Pickle_Face5

Pickle_Face5    1

  • Tree Puncher
  • Pickle_Face5
  • Members
  • 1
  • 47 posts
Posted October 29, 2020

1.16.2 ore generation is broken, and is very difficult to do ore generation in that version. In 1.16.3, there's a new event called BiomeLoadingEvent. Use that event, and inside the event make a ConfiguredFeature for your ore you want to generate (to see how to do this, look how Minecraft does it in minecraft\world\gen\feature\Features). Then in your event, do .getGeneration().withFeature(GenerationStage.Decoration.UNDERGROUND_ORES, <Configured Feature Name Here>

Heres an Example from one of my mods:

public static void generateOres(BiomeLoadingEvent event) {
        ConfiguredFeature<?, ?> ORE_SAPPHIRE = Feature.ORE.withConfiguration(new OreFeatureConfig(OreFeatureConfig.FillerBlockType.field_241882_a, Registry.SAPPHIRE_ORE.get().getDefaultState(), 6)).withPlacement(Placement.field_242910_o.configure(new DepthAverageConfig(15, 16))).func_242728_a();
        event.getGeneration().withFeature(GenerationStage.Decoration.UNDERGROUND_ORES, ORE_SAPPHIRE);
    }

 

  • Quote

Have some lorem ispum.

Share this post


Link to post
Share on other sites

Nuroyun    0

Nuroyun

Nuroyun    0

  • Tree Puncher
  • Nuroyun
  • Members
  • 0
  • 2 posts
Posted October 31, 2020 (edited)
On 10/29/2020 at 8:34 PM, Pickle_Face5 said:

1.16.2 ore generation is broken, and is very difficult to do ore generation in that version. In 1.16.3, there's a new event called BiomeLoadingEvent. Use that event, and inside the event make a ConfiguredFeature for your ore you want to generate (to see how to do this, look how Minecraft does it in minecraft\world\gen\feature\Features). Then in your event, do .getGeneration().withFeature(GenerationStage.Decoration.UNDERGROUND_ORES, <Configured Feature Name Here>

Heres an Example from one of my mods:


public static void generateOres(BiomeLoadingEvent event) {
        ConfiguredFeature<?, ?> ORE_SAPPHIRE = Feature.ORE.withConfiguration(new OreFeatureConfig(OreFeatureConfig.FillerBlockType.field_241882_a, Registry.SAPPHIRE_ORE.get().getDefaultState(), 6)).withPlacement(Placement.field_242910_o.configure(new DepthAverageConfig(15, 16))).func_242728_a();
        event.getGeneration().withFeature(GenerationStage.Decoration.UNDERGROUND_ORES, ORE_SAPPHIRE);
    }

 

i have 2 questions .withFeature didnt work and i couldnt find any folders in net\minecraft\world apart from \level

EDIT: i found the gen\feture thing but i still dont know how to make it work

EDIT2: nvm i figured it out

Edited October 31, 2020 by Nuroyun
  • Quote

Share this post


Link to post
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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 2
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • BobbyLikesCake
      1.16.4 (Heavily decent modded with around 150ish mods) Crash with exit code -1 most of the time and sometimes exit code 0.

      By BobbyLikesCake · Posted just now

      I tried using the github one since the debug log is 40,000 KB but it said error and a unicorn appeared. Halp! 😧
    • poopoodice
      [1.16.4] How i can open a container by clicking on my mob

      By poopoodice · Posted 14 minutes ago

      No, it is looking for a container provider, so just pass an instance of it.
    • poopoodice
      [1.15.2] Render as 2D icon in GUI, 3D model in hand

      By poopoodice · Posted 15 minutes ago

      You can replace with your own model through ModelBakeEvent.
    • DaemonUmbra
      1.16.4 (Heavily decent modded with around 150ish mods) Crash with exit code -1 most of the time and sometimes exit code 0.

      By DaemonUmbra · Posted 19 minutes ago

      Use a paste site to upload the whole thing. (list in my signature)
    • Klarks
      [1.16.4] How i can open a container by clicking on my mob

      By Klarks · Posted 30 minutes ago

      I ve seen an example of it but i dont understand how i can apply this to my problem. Do I need to call createmenu from new class in networkhooks.opengui method? 
  • Topics

    • BobbyLikesCake
      6
      1.16.4 (Heavily decent modded with around 150ish mods) Crash with exit code -1 most of the time and sometimes exit code 0.

      By BobbyLikesCake
      Started 3 hours ago

    • Klarks
      19
      [1.16.4] How i can open a container by clicking on my mob

      By Klarks
      Started Yesterday at 09:56 PM

    • Woodside
      6
      [1.15.2] Render as 2D icon in GUI, 3D model in hand

      By Woodside
      Started 2 hours ago

    • X4Ghost
      1
      Unable to install

      By X4Ghost
      Started 52 minutes ago

    • clermont.holiday
      1
      1.16.3 forge crashing

      By clermont.holiday
      Started 4 hours ago

  • Who's Online (See full list)

    • Danebi
    • LexManos
    • Woodside
    • GamingTiger101
    • Azaka7
    • X4Ghost
    • CosmosBench244
    • Mango106
    • TheidenHD
    • BobbyLikesCake
    • DaemonUmbra
    • jbredwards
    • Carzival
    • MetalMetagross
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.16.3] How to Use Ore Gen
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community