Advertisement
riking

Untitled

May 2nd, 2014
476
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.21 KB | None | 0 0
  1. +
  2. +    public void d() {
  3. +        if (!this.world.isStatic) {
  4. +            if (this.ay()) {
  5. +                this.damageEntity(DamageSource.DROWN, 1);
  6. +            }
  7. +
  8. +            --this.b;
  9. +            if (this.b <= 0) {
  10. +                this.b = 100;
  11. +                this.a = 0.5F + (float) this.random.nextGaussian() * 3.0F;
  12. +            }
  13. +
  14. +            if (this.E() != null && this.E().locY + (double) this.E().x() > this.locY + (double) this.x() + (double) this.a) {
  15. +                this.motY += (0.30000001192092896D - this.motY) * 0.30000001192092896D;
  16. +            }
  17. +        }
  18. +
  19. +        if (this.random.nextInt(24) == 0) {
  20. +            this.world.makeSound(this.locX + 0.5D, this.locY + 0.5D, this.locZ + 0.5D, "fire.fire", 1.0F + this.random.nextFloat(), this.random.nextFloat() * 0.7F + 0.3F);
  21. +        }
  22. +
  23. +        if (!this.onGround && this.motY < 0.0D) {
  24. +            this.motY *= 0.6D;
  25. +        }
  26. +
  27. +        for (int i = 0; i < 2; ++i) {
  28. +            this.world.a("largesmoke", this.locX + (this.random.nextDouble() - 0.5D) * (double) this.length, this.locY + this.random.nextDouble() * (double) this.width, this.locZ + (this.random.nextDoub
  29. +        }
  30. +
  31. +        super.d();
  32. +    }
  33. +
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement