Skip to content

Commit

Permalink
Straight smorkin it
Browse files Browse the repository at this point in the history
  • Loading branch information
JuiceyBeans committed Feb 28, 2025
1 parent d5347f1 commit f5d61fa
Showing 1 changed file with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,27 +43,23 @@ default void emitPollutionParticles() {
return;
}

float xPos = facing.getStepX() * 0.76F + pos.getX() + 0.25F;
float yPos = facing.getStepY() * 0.76F + pos.getY() + 0.25F;
float zPos = facing.getStepZ() * 0.76F + pos.getZ() + 0.25F;
float xPos = facing.getStepX() + pos.getX() + 0.25F;
float yPos = facing.getStepY() + pos.getY() + 0.25F;
float zPos = facing.getStepZ() + pos.getZ() + 0.25F;

float ySpd = facing.getStepY() * 0.1F + 0.2F + 0.1F * GTValues.RNG.nextFloat();
float xSpd;
float zSpd;

if (facing.getStepY() == -1) {
float temp = GTValues.RNG.nextFloat() * 2 * (float) Math.PI;
xSpd = (float) Math.sin(temp) * 0.1F;
zSpd = (float) Math.cos(temp) * 0.1F;
xSpd = (float) Math.sin(temp) * 0.08F;
zSpd = (float) Math.cos(temp) * 0.08F;
} else {
xSpd = facing.getStepX() * (0.1F + 0.2F * GTValues.RNG.nextFloat());
zSpd = facing.getStepZ() * (0.1F + 0.2F * GTValues.RNG.nextFloat());
}
self().getLevel().addParticle(ParticleTypes.LARGE_SMOKE,
xPos + GTValues.RNG.nextFloat() * 0.5F,
yPos + GTValues.RNG.nextFloat() * 0.5F,
zPos + GTValues.RNG.nextFloat() * 0.5F,
xSpd, ySpd, zSpd);
self().getLevel().addParticle(ParticleTypes.CAMPFIRE_SIGNAL_SMOKE, xPos, yPos, zPos, xSpd, ySpd * 0.8, zSpd);
}

@Override
Expand Down

0 comments on commit f5d61fa

Please sign in to comment.