Spelunkery

Spelunkery

80.4k Downloads

[1.19.2] Support for new veins

1ezekiil opened this issue ยท 7 comments

commented

It would be great if we could create our own veins in addition to existing ones, because this opens up enormous possibilities for customizing the world and ore deposits, and it would be even better if such veins were compatible with any modded ores.

commented

refer to #180

commented

Okay, but how do I use the Noise system to create my own veins? It seems that I am creating the necessary files in the datapack (configured feature and placed feature), but the ore veins are not generated.
All settings are fine, they are almost identical to mod ones, except for the blocks inscribed there. I don't know, what i'm doing wrong.

commented

you will need to add your feature to the biomes you want it to appear in
how you do this can be easier depending on your platform

for forge it would be a biome modifier, see

https://github.com/AstralOrdana/Spelunkery/blob/1.20.1/forge/src/main/resources/data/spelunkery/forge/biome_modifier/desert_modifier.json

fabric has a mod which allows you to do the same https://modrinth.com/mod/lithostitched

otherwise you'll have to modify the biome worldgen itself

commented

Oh! I see. I'm new in the code and datapacks, so i can be stupid. )
Thank you!
I need some more necessary files, or only placed/configured feature and biome modifier? For creating my ore veins.

commented

for forge that should be enough (might need a custom biome tag as well depending in which biomes you want your feature)

commented

You are my savior, thank you very much! It's works!

And one last. Can you tell me, where config that controls ore veins generation frequency?
Or what parameter is responsible for it? Not the amount of ore in the structure, but the probability of generating the entire structure as a whole.

commented

I haven't done much worldgen by myself but the generation frequency is usually handled by the configured feature

https://minecraft.wiki/w/Configured_feature

image

https://minecraft.wiki/w/Custom_world_generation/block_state_provider

image