Skip to content

Commit

Permalink
Star scale tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
weirtz committed Aug 28, 2022
1 parent b5c1e30 commit a5eb891
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public void render(FallenStar p_114162_, float p_114163_, float p_114164_, PoseS
float f1 = ((float) p_114162_.getAge() * animSpeed + p_114164_) * 3.0F;
VertexConsumer vertexconsumer = p_114166_.getBuffer(RenderType.entityTranslucent(TEXTURE, true));
p_114165_.pushPose();
p_114165_.scale(1.0F, 1.0F, 1.0F);
p_114165_.scale(0.7F, 0.7F, 0.7F);
p_114165_.translate(0.0D, -0.25D, 0.0D);
int i = OverlayTexture.NO_OVERLAY;

Expand Down
18 changes: 9 additions & 9 deletions src/main/java/com/seabreyh/mana/entity/FallenStar.java
Original file line number Diff line number Diff line change
Expand Up @@ -240,16 +240,16 @@ public void tick() {
}

if (this.level.isClientSide) {
if (this.age % 5 == 0) {
this.level.addParticle(ParticleTypes.END_ROD, this.getX() + this.random.nextGaussian() * 0.5,
this.getY() + 0.4 + this.random.nextGaussian() * 0.2,
this.getZ() + this.random.nextGaussian() * 0.5,
0D, 0.1D, 0D);
if (this.age % 3 == 0) {
// this.level.addParticle(ParticleTypes.END_ROD, this.getX() + this.random.nextGaussian() * 0.5,
// this.getY() + 0.4 + this.random.nextGaussian() * 0.2,
// this.getZ() + this.random.nextGaussian() * 0.5,
// 0D, 0.1D, 0D);
this.level.addParticle(ManaParticles.TWINKLE_PARTICLE.get(),
this.getX() + this.random.nextGaussian() * 0.5,
this.getY() + this.random.nextGaussian() * 0.7,
this.getZ() + this.random.nextGaussian() * 0.5,
0D, 0.4D, 0D);
this.getX() + this.random.nextGaussian() * 0.3,
this.getY() + 0.4 + this.random.nextGaussian() * 0.5,
this.getZ() + this.random.nextGaussian() * 0.3,
0D, 0D, 0D);
}
if (isInWater()) {
this.level.addParticle(ParticleTypes.SMOKE, this.getX() + this.random.nextGaussian() * 0.2,
Expand Down

0 comments on commit a5eb891

Please sign in to comment.