2
How do i make a world gen datapack for more ore?
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.
i don't want to change the terrain but just make some things more common.
Create an account or sign in to comment.
7
3
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.
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
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.
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
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.
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
THANK YOU!
1
Put a world you just created in Worldpainter and increase the chance of the ores you want
1
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
could someone make a datapac for increased ore generation? I really need it for my uhc