Skip to content

Commit

Permalink
feat(flesh-mound): make mounds slightly smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
Elenterius committed Dec 29, 2023
1 parent 3db8c25 commit 0448cd8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ public static MoundShape constructShape(Level level, BlockPos blockOrigin, long
Biome biome = level.getBiome(blockOrigin).get();
MoundShape.ProcGenValues procGenValues = new MoundShape.ProcGenValues(
seed,
(byte) -25,
(byte) 0,
(byte) 0,
(byte) 4,
(byte) 2,
level.getMaxBuildHeight(),
level.getSeaLevel(),
TemperatureUtil.getTemperature(biome, blockOrigin),
Expand All @@ -42,7 +42,7 @@ private static MoundShape genShape(BlockPos blockOrigin, MoundShape.ProcGenValue
ctx.random = RandomSource.create(procGenValues.seed());
Vec3 origin = Vec3.atCenterOf(blockOrigin);

float radius = 8 * (1 + Mth.clamp(procGenValues.radiusMultiplier(), -0.5f, 1.5f));
float radius = 8f * (1 + Mth.clamp(procGenValues.radiusMultiplier(), -0.5f, 1.5f));

/////////////////////////////////////////////////

Expand All @@ -58,7 +58,7 @@ private static MoundShape genShape(BlockPos blockOrigin, MoundShape.ProcGenValue
ctx.slantMultiplier = 0.1f + ctx.random.nextFloat() + heatMultiplier * 2f;
ctx.relativeWallThickness = Mth.clamp((1 - heatMultiplier) * 32, 2.25f, 32);

ctx.minMoundRadius = 3 + erosionMultiplier * 3;
ctx.minMoundRadius = 3 + erosionMultiplier * 2.5f;
ctx.baseMoundRadius = radius + (radius / 2) * erosionMultiplierInv;
ctx.maxMoundRadius = ctx.minMoundRadius + ctx.baseMoundRadius;

Expand Down

0 comments on commit 0448cd8

Please sign in to comment.