Advertisement
Vaerys_Dawn

particles fail to spawn

Jan 18th, 2021
1,047
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.63 KB | None | 0 0
  1.     @OnlyIn(Dist.CLIENT)
  2.     protected void spawnParticles(IParticleData p_213718_1_) {
  3.         for(int i = 0; i < 5; ++i) {
  4.             double d0 = world.rand.nextGaussian() * 0.02D;
  5.             double d1 = world.rand.nextGaussian() * 0.02D;
  6.             double d2 = world.rand.nextGaussian() * 0.02D;
  7.             this.world.addParticle(p_213718_1_, this.animal.getParticleX(1.0D), this.animal.getRandomBodyY() + 1.0D, this.animal.getParticleZ(1.0D), d0, d1, d2);
  8.         }
  9.     }
  10.  
  11.     this.animal.playSound(SoundEvents.ENTITY_BEE_HURT, 2.0f, 1.0f);
  12.     spawnParticles(ParticleTypes.ANGRY_VILLAGER);
  13.     System.out.println("failure");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement