AstralOrdana / Spelunkery

The Spelunkery mod for Minecraft
GNU Lesser General Public License v3.0
42 stars 20 forks source link

[1.19.2] Support for new veins #185

Closed 1ezekiil closed 5 months ago

1ezekiil commented 5 months ago

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.

SiverDX commented 5 months ago

refer to #180

1ezekiil commented 5 months ago

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.

SiverDX commented 5 months ago

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

1ezekiil commented 5 months ago

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.

SiverDX commented 5 months ago

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

1ezekiil commented 5 months ago

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.

SiverDX commented 5 months ago

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