Random radius
This commit is contained in:
parent
890c63f884
commit
58f200a725
3 changed files with 12 additions and 2 deletions
|
@ -120,7 +120,7 @@ public class RoundCave extends DefaultFeature {
|
||||||
pos = pos.add(random.nextGaussian() * 5, random.nextGaussian() * 5, random.nextGaussian() * 5);
|
pos = pos.add(random.nextGaussian() * 5, random.nextGaussian() * 5, random.nextGaussian() * 5);
|
||||||
BlockPos down = pos.down(BlocksHelper.downRay(world, pos, 64) + 2);
|
BlockPos down = pos.down(BlocksHelper.downRay(world, pos, 64) + 2);
|
||||||
if (isReplaceable(world.getBlockState(down))) {
|
if (isReplaceable(world.getBlockState(down))) {
|
||||||
SDF prism = new SDFHexPrism().setHeight(radius * MHelper.randRange(0.6F, 0.75F, random)).setRadius(3).setBlock(BlockRegistry.AURORA_CRYSTAL);
|
SDF prism = new SDFHexPrism().setHeight(radius * MHelper.randRange(0.6F, 0.75F, random)).setRadius(MHelper.randRange(1.7F, 3F, random)).setBlock(BlockRegistry.AURORA_CRYSTAL);
|
||||||
float angleY = MHelper.randRange(0, MHelper.PI2, random);
|
float angleY = MHelper.randRange(0, MHelper.PI2, random);
|
||||||
float vx = (float) Math.sin(angleY);
|
float vx = (float) Math.sin(angleY);
|
||||||
float vz = (float) Math.sin(angleY);
|
float vz = (float) Math.sin(angleY);
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
{
|
{
|
||||||
"defaultMaterial": "betterend:glow_50_blue"
|
"defaultMaterial": "betterend:waving_glow_50_blue"
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"layers": [
|
||||||
|
{
|
||||||
|
"vertexSource": "betterend:shaders/material/wave.vert",
|
||||||
|
"fragmentSource": "betterend:shaders/material/glow_50_blue.frag",
|
||||||
|
"disableAo": true,
|
||||||
|
"disableDiffuse": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue