Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Please Help] Ore Generation #13

Open
mouse0270 opened this issue Nov 20, 2023 · 1 comment
Open

[Please Help] Ore Generation #13

mouse0270 opened this issue Nov 20, 2023 · 1 comment

Comments

@mouse0270
Copy link

mouse0270 commented Nov 20, 2023

I am trying to understand the ore generation. I figured out how to disable vanilla ore generation via issue #5 and added those to my configs.

Would you know how to figure out the names to add to removeOres to prevent other mods from generating their ores, such as Create or Immersive Engineering? If not that is fine, as I can replace them using the Block swap mod. Currently my config.json looks like this and this seems to remove most ore generation in the overworld, doesn't seem to do a lot in the nether.

config.json

{
  ...
  "removeOres": [
    "ORE_COAL_LOWER",
    "ORE_COAL_UPPER",
    "ORE_IRON_MIDDLE",
    "ORE_IRON_SMALL",
    "ORE_IRON_UPPER",
    "ORE_COPPER",
    "ORE_COPPER_LARGE",
    "ORE_GOLD",
    "ORE_GOLD_DELTAS",
    "ORE_GOLD_EXTRA",
    "ORE_GOLD_LOWER",
    "ORE_GOLD_NETHER",
    "ORE_DIAMOND",
    "ORE_DIAMOND_BURIED",
    "ORE_DIAMOND_LARGE",
    "ORE_EMERALD",
    "ORE_GRANITE_LOWER",
    "ORE_GRANITE_UPPER",
    "ORE_LAPIS",
    "ORE_LAPIS_BURIED",
    "ORE_QUARTZ_DELTAS",
    "ORE_QUARTZ_NETHER",
    "ORE_REDSTONE",
    "ORE_REDSTONE_LOWER",
    "ORE_ANCIENT_DEBRIS_LARGE",
    "ORE_ANCIENT_DEBRIS_SMALL"
  ]
}

But the real issue I have is generating new ore veins using oreveins.json For example, my coal ore vein config looks like:

oreveins.json

{
  "ore.overworld.coal": {
    "name": "ore.overworld.coal",
    "enabled": true,
    "primary": "coal",
    "secondary": "coal",
    "inbetween": "coal",
    "sporadic": "coal",
    "density": 6,
    "minY": -64,
    "maxY": 320,
    "size": 32,
    "weight": 80,
    "invertDimensions": false,
    "dimensions": [
      "minecraft:overworld"
    ],
    "invertBiomes": true,
    "biomes": []
  },
  "ore.the_nether.coal": {
    "name": "ore.netherrack.coal",
    "enabled": true,
    "primary": "coal",
    "secondary": "coal",
    "inbetween": "coal",
    "sporadic": "coal",
    "density": 6,
    "minY": 1,
    "maxY": 256,
    "size": 32,
    "weight": 80,
    "invertDimensions": false,
    "dimensions": [
      "minecraft:the_nether"
    ],
    "invertBiomes": true,
    "biomes": []
  }
}

But this doesn't appear to geneate any coal ore in the overworld or the nether? Also it appears that the generation method you use is meant to generate a lot of ore with various ores inside of it? Is there a way to generate ore is smaller batches without always mixing them together? Also what if I wanted to generate something like a "Iron Block" alongside the iron ore?

I tried to find documentation on how oreveins.json is supposed to work, but couldnt. If you could explain it or link me somehwere that does I'd be happy to keep playing around until it works.

@glowredman
Copy link
Owner

But this doesn't appear to geneate any coal ore in the overworld or the nether?

I don't know what other configs you're using. For the ores to generate, you need to have the material coal defined and the type ore enabled. Rurthermore, you need to define appropriate orevariants, in your case at least for netherrack and stone and/or deepslate. Without a log, I can't say more.

Also it appears that the generation method you use is meant to generate a lot of ore with various ores inside of it?

Generally yes, though you can define the same material for primary/secondary/inbetween/sporadic - like you did.

Is there a way to generate ore is smaller batches without always mixing them together?

If you want vanilla-like ores, you can use datapacks.

Also what if I wanted to generate something like a "Iron Block" alongside the iron ore?

Also with datapacks.

I tried to find documentation on how oreveins.json is supposed to work, but couldnt. If you could explain it or link me somehwere that does I'd be happy to keep playing around until it works.

There is no documentation besides the code, which is annoying, I know. I haven't gotten around to expanding the wiki, sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants