How can I edit a vanilla ore generation to be deeper, if possible?

Started by Rainboe on

Topic category: Help with modding (Java Edition)

Last seen on 06:49, 9. Jan 2022
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I edit a vanilla ore generation to be deeper, if possible?

Pls I need much help, trying to make iron generate at a lower y level, like 32 or something like that.

Last seen on 18:52, 9. Oct 2024
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
In your mod's Resources …
Sun, 01/09/2022 - 06:17

In your mod's Resources (Gradle) create this path:

data\minecraft\worldgen\configured_feature

in the conigured_feature folder create a file called ore_iron.json, and add the following lines to it. This is mostly for Vanilla ores.

 

{
  "type": "minecraft:decorated",
  "config": {
    "decorator": {
      "type": "minecraft:count",
      "config": {
        "count": 20
      }
    },
    "feature": {
      "type": "minecraft:decorated",
      "config": {
        "decorator": {
          "type": "minecraft:square",
          "config": {}
        },
        "feature": {
          "type": "minecraft:decorated",
          "config": {
            "decorator": {
              "type": "minecraft:range",
              "config": {
                "height": {
                  "type": "minecraft:uniform",
                  "min_inclusive": {
                    "above_bottom": 0
                  },
                  "max_inclusive": {
                    "absolute": 127
                  }
                }
              }
            },
            "feature": {
              "type": "minecraft:ore",
              "config": {
                "size": 17,
                "discard_chance_on_air_exposure": 0,
                "targets": [
                  {
                    "target": {
                      "predicate_type": "minecraft:tag_match",
                      "tag": "minecraft:stone_ore_replaceables"
                    },
                    "state": {
                      "Name": "minecraft:iron_ore"
                    }
                  },
                  {
                    "target": {
                      "predicate_type": "minecraft:tag_match",
                      "tag": "minecraft:deepslate_ore_replaceables"
                    },
                    "state": {
                      "Name": "minecraft:deepslate_iron_ore"
                    }
                  }
                ]
              }
            }
          }
        }
      }
    }
  }
}

 Here you will have the ore count, increase ore decrease it

 

  "type": "minecraft:decorated",
  "config": {
    "decorator": {
      "type": "minecraft:count",
      "config": {
        "count": 20      <<===   INCREASE OR DECREASE THIS VALUE

 

These are the min and max height, zero (0) should be bedrock floor, and 127 max height generation (can be modified)

 

                  "min_inclusive": {
                    "above_bottom": 0    <<===   CHANGE THIS 32, MUST BE LESS OR EQUAL TO MAX_INCLUSIVE
                  },
                  "max_inclusive": {
                    "absolute": 127          <<===   MUST BE MORE OR EQUAL TO MIN_INCLUSIVE

 

*** IF YOU TYPE ANYTHING INCORRECTLY, IT WILL CREATE AN IN-GAME ERROR ***

Last seen on 06:49, 9. Jan 2022
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How exactly do I create that…
Sun, 01/09/2022 - 06:24

How exactly do I create that path you mentioned? If it helps I'm on mac.

Last seen on 18:52, 9. Oct 2024
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
In MCreator, go to Workspace…
Sun, 01/09/2022 - 07:13

In MCreator, go to Workspace >> Open Workspace folder, once there travel to the path: src\main\resources and you will see the folder named data. If you don't see it, just create one (all lowercase), then start what I already explained in the previous post.

or

 

 

Last seen on 18:04, 27. Jul 2023
Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
minecraft:decorated appears…
Sat, 04/22/2023 - 00:33

minecraft:decorated appears to be deprecated, do you have an updated way of doing this?