Skip to content

Commit

Permalink
bruh
Browse files Browse the repository at this point in the history
  • Loading branch information
AViewFromTheTop committed Jan 9, 2025
1 parent 94dcd61 commit b63e991
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class HugePaleMushroomBlock extends HugeMushroomBlock {
public static final int MIN_PARTICLE_SPAWN_WIDTH = -3;
public static final int MAX_PARTICLE_SPAWN_WIDTH = 3;
public static final int MIN_PARTICLE_SPAWN_HEIGHT = -2;
public static final int MAX_PARTICLE_SPAWN_HEIGHT = 1;
public static final int MAX_PARTICLE_SPAWN_HEIGHT = -1;
public static final int PARTICLE_SPAWN_ATTEMPTS = 7;

public HugePaleMushroomBlock(Properties properties) {
Expand All @@ -54,7 +54,7 @@ public void animateTick(BlockState state, Level level, BlockPos pos, RandomSourc
k + Mth.nextInt(random, MIN_PARTICLE_SPAWN_WIDTH, MAX_PARTICLE_SPAWN_WIDTH)
);
BlockState blockState = level.getBlockState(mutable);
if (!blockState.isCollisionShapeFullBlock(level, mutable) && random.nextFloat() <= 0.025F) {
if (!blockState.isCollisionShapeFullBlock(level, mutable) && random.nextFloat() <= 0.1F) {
level.addParticle(
WWParticleTypes.PALE_FOG,
mutable.getX() + random.nextDouble(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ public Particle createParticle(
PaleFogParticle seedParticle = new PaleFogParticle(level, this.spriteProvider, x, y, z, 0D, 0D, 0D, true);
seedParticle.lifetime = Mth.randomBetweenInclusive(random, 500, 1000);
seedParticle.gravity = 0.005F;
seedParticle.alpha = 0.3F;
return seedParticle;
}
}
Expand Down

0 comments on commit b63e991

Please sign in to comment.