Started by
Ypermat
on
Topic category: Help with Minecraft modding (Java Edition)
Hello !
I try to make ores spawn in the end and at the top of mountains.
If I gave the block no additional condition, it do spawn in the end but it is undeground.
I want it to spawn on the surface. I tried something like this :
But the block do not spawn anymore.
I would appreciate some help, and so, I could make a tutorial for that :)
Edited by Ypermat on Wed, 02/15/2023 - 14:28
The problem you're having is that sky detection counts the block you're calling it from: it's based on position. The position x y z can't see the sky because the ore block is blocking it.
However, if you want an ore to have custom generation, you'd probably be better off making it a structure instead of an ore. (That is, a surface level structure that only spawns in stone, and either generates in groups, or has a custom procedure that spreads more ore upon generation.) Vanilla ore generation is kind of limited for custom ores.