Mushroom size & lang

This commit is contained in:
paulevsGitch 2020-09-29 22:25:48 +03:00
parent 6c4a1d2eb0
commit 8b8901a2a9
3 changed files with 6 additions and 1 deletions

View file

@ -24,6 +24,7 @@ import ru.betterend.util.sdf.SDF;
import ru.betterend.util.sdf.operator.SDFBinary;
import ru.betterend.util.sdf.operator.SDFCoordModify;
import ru.betterend.util.sdf.operator.SDFFlatWave;
import ru.betterend.util.sdf.operator.SDFScale;
import ru.betterend.util.sdf.operator.SDFScale3D;
import ru.betterend.util.sdf.operator.SDFSmoothUnion;
import ru.betterend.util.sdf.operator.SDFSubtraction;
@ -60,7 +61,7 @@ public class MossyGlowshroomFeature extends DefaultFeature {
HEAD_POS.setTranslate(pos.getX(), pos.getY(), pos.getZ());
ROOTS.setAngle(random.nextFloat() * MHelper.PI2);
FUNCTION.setSourceA(sdf);
Set<BlockPos> blocks = FUNCTION.fillRecursive(world, blockPos);
Set<BlockPos> blocks = new SDFScale().setScale(MHelper.randRange(0.5F, 1F, random)).setSource(FUNCTION).fillRecursive(world, blockPos);
for (BlockPos bpos: blocks) {
BlockState state = world.getBlockState(bpos);

View file

@ -14,6 +14,8 @@
"item.betterend.terminite_ingot": "Terminite Ingot",
"item.betterend.aeternium_ingot": "Aeternium Ingot",
"block.betterend.mossy_glowshroom_cap": "Mossy Glowshroom Cap",
"block.betterend.mossy_glowshroom_fur": "Mossy Glowshroom Fur",
"block.betterend.mossy_glowshroom_hymenophore": "Mossy Glowshroom Hymenophore",
"block.betterend.mossy_glowshroom_bark": "Mossy Glowshroom Bark",
"block.betterend.mossy_glowshroom_barrel": "Mossy Glowshroom Barrel",

View file

@ -14,6 +14,8 @@
"item.betterend.terminite_ingot": "Терминитовый слиток",
"item.betterend.aeternium_ingot": "Этериевый слиток",
"block.betterend.mossy_glowshroom_cap": "Шляпка мшистого светогриба",
"block.betterend.mossy_glowshroom_fur": "Волоски мшистого светогриба",
"block.betterend.mossy_glowshroom_hymenophore": "Гименофор мшистого светогриба",
"block.betterend.mossy_glowshroom_bark": "Кора мшистого светогриба",
"block.betterend.mossy_glowshroom_barrel": "Бочка из мшистого светогриба",