I grabbed some sound effects off http://soundbible.com and set about making a program which would monitor what Minecraft Steve was doing and play an appropriate sound effect, e.g if Steve's walking I would play the sound of footsteps, if he jumped I would play a 'boing' and my favourite if he fell off a cliff you would hear him scream before hitting the ground.
The program does 3 things:
- It monitors Steve position using mc.player.getPos() and works out if he's stopped, walking, jumping or falling
- Based on what Steve has just done it decides what sound effect to play or stop playing
- Then for added 'effect', the program also checks to see if any blocks have been hit and also plays a sound
Download and run
You can download the code direct from github, https://github.com/martinohanlon/minecraft-sound, so run minecraft, open/create a world and follow the instructions:
All the sound effect wav files are included in the github repository.
I've included the code for reference but if you want to have a go or modify it I would recommend you download the repository from github as you will need other files (e.g. wav's) to get it working.