Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2015
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.73 KB | None | 0 0
  1. public void updateEntity(){
  2.        
  3.             if(this.soundPlayingCount == 0 && this.furnaceTemperature > 0){
  4.                 if(this.furnaceTemperature > 5000){
  5.                     if (this.furnaceTemperature < 6000)
  6.                         this.sound = 1;
  7.                     else if(this.furnaceTemperature < 7000)
  8.                         this.sound = 2;
  9.                     else if(this.furnaceTemperature < 8000)
  10.                         this.sound = 3;
  11.                     else if(this.furnaceTemperature < 9000)
  12.                         this.sound = 4;
  13.                 }
  14.                 else
  15.                     this.sound = 0;
  16.                
  17.                 this.worldObj.playSound(this.xCoord, this.yCoord, this.zCoord,  "realitycube:metalfurnace"+String.valueOf(this.sound), 2F, 1, false);
  18.                 soundPlayingCount++;
  19.             }
  20.             else if(this.soundPlayingCount == 50)
  21.                 soundPlayingCount = 0;
  22.             else
  23.                 soundPlayingCount++;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement