Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void updateEntity(){
- if(this.soundPlayingCount == 0 && this.furnaceTemperature > 0){
- if(this.furnaceTemperature > 5000){
- if (this.furnaceTemperature < 6000)
- this.sound = 1;
- else if(this.furnaceTemperature < 7000)
- this.sound = 2;
- else if(this.furnaceTemperature < 8000)
- this.sound = 3;
- else if(this.furnaceTemperature < 9000)
- this.sound = 4;
- }
- else
- this.sound = 0;
- this.worldObj.playSound(this.xCoord, this.yCoord, this.zCoord, "realitycube:metalfurnace"+String.valueOf(this.sound), 2F, 1, false);
- soundPlayingCount++;
- }
- else if(this.soundPlayingCount == 50)
- soundPlayingCount = 0;
- else
- soundPlayingCount++;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement