Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------------------------------------------
- 1.7.10 Version:
- ---------------------------------------------------
- public void onLivingUpdate()
- {
- for (int var1 = 0; var1 < 2; ++var1)
- {
- this.worldObj.spawnParticle("►►PARTICLENAME◄◄", this.posX + (this.rand.nextDouble() - 0.5D) * (double)this.width, this.posY + this.rand.nextDouble() * (double)this.height, this.posZ + (this.rand.nextDouble() - 0.5D) * (double)this.width, 0.0D, 0.0D, 0.0D);
- }
- super.onLivingUpdate();
- }
- ---------------------------------------------------
- 1.8 Version:
- ---------------------------------------------------
- public void onLivingUpdate()
- {
- if (!this.onGround && this.motionY < 0.0D)
- {
- this.motionY *= 0.6D;
- }
- if (this.worldObj.isRemote)
- {
- if (this.rand.nextInt(24) == 0 && !this.isSlient())
- {
- this.worldObj.playSound(this.posX + 0.5D, this.posY + 0.5D, this.posZ + 0.5D, "fire.fire", 1.0F + this.rand.nextFloat(), this.rand.nextFloat() * 0.7F + 0.3F, false);
- }
- for (int var1 = 0; var1 < 2; ++var1)
- {
- this.worldObj.spawnParticle(EnumParticleTypes.►►PARTICLE◄◄, this.posX + (this.rand.nextDouble() - 0.5D) * (double)this.width, this.posY + this.rand.nextDouble() * (double)this.height, this.posZ + (this.rand.nextDouble() - 0.5D) * (double)this.width, 0.0D, 0.0D, 0.0D, new int[0]);
- }
- }
- super.onLivingUpdate();
- }
Add Comment
Please, Sign In to add comment