2

How do i make a world gen datapack for more ore?

Qtw's Avatar Qtw11/5/20 11:00 am
2 emeralds 975 7
3/15/2021 4:33 pm
BruhMoment8172's Avatar BruhMoment8172
how do i make it so more ore spawns such as coal, iron and other mineables spawn more frequently?

i don't want to change the terrain but just make some things more common.
Posted by Qtw's Avatar
Qtw
Level 21 : Expert Miner
6

Create an account or sign in to comment.

7

3
11/05/2020 8:57 pmhistory
Level 26 : Expert Creeper
ItsDaCreeperOfficial
ItsDaCreeperOfficial's Avatar
Go to worldgen\configured_feature and you will find the files for ore generation. For example, lets look at ore_diamond.json.
If you want to change the vein size, increase the value "size" value. It looks like this:
"config": {
  "target": {
    "tag": "minecraft:base_stone_overworld",
    "predicate_type": "minecraft:tag_match"
  },
  "state": {
    "Name": "minecraft:diamond_ore"
  },
  "size": 8
},
Change the "size value to what you want

If you want to increase the amount of veins, look for this:
"decorator": {
  
"config": {
  "bottom_offset": 0,
  "top_offset": 0,
  "maximum": 16
},
Change the "maximum" value to what you want.

2
11/24/2020 9:18 pmhistory
Level 58 : Grandmaster Terraformer
Rainbeau_Flambe
Rainbeau_Flambe's Avatar
I realize this is an old comment, but I just happened upon it, and wanted to correct an error that might lead others astray.

The line:

"size": 8

does in fact define the maximum size of a vein, as indicated above.

However, the line:

"maximum": 16

has nothing to do with the number of veins in a chunk. It is, rather, the maximum y elevation at which a vein can generate.

The ore_diamond.json file doesn't define a number of veins, as the game only makes one attempt per chunk to generate a vein of diamond.

If you look at another file, let's pick ore_coal.json, you'll find a bit that's missing from the diamond definition.

"decorator": {
"config": {
"count": 20
},
"type": "minecraft:count"
}

That's where the number of veins is defined.
1
11/06/2020 12:03 pmhistory
Level 21 : Expert Miner
Qtw
Qtw's Avatar
argh. now i have another problem.
where do i find the worldgen folder?
i need it as a reference for other things.


edit!
also i forgot i need to know how to make ore spawn in higher elevations.

for example, make diamond spawn where coal does.
i don't plan on doing THAT. i just want it to spawn a few blocks higher.
1
11/06/2020 11:41 am
Level 21 : Expert Miner
Qtw
Qtw's Avatar
THANK YOU!
1
11/05/2020 11:07 am
Level 32 : Artisan Princess
Mary582
Mary582's Avatar
Put a world you just created in Worldpainter and increase the chance of the ores you want
1
11/05/2020 11:08 am
Level 21 : Expert Miner
Qtw
Qtw's Avatar
well, that COULD work, but i wanted a to make a datapack for world generation. figured it would be easier or faster that way. thanks for the tip tho.
1
03/15/2021 4:33 pm
Level 1 : New Miner
BruhMoment8172
BruhMoment8172's Avatar
could someone make a datapac for increased ore generation? I really need it for my uhc
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome