This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
AlkamlBan's profile picture

How do I change the sounds?

Started by AlkamlBan, 15 December 2014 - 05:17 PM
AlkamlBan #1
Posted 15 December 2014 - 06:17 PM
I just ask this because I had an idea about making a FNAF Computercraft version but I needed the sounds so obviously the first thing I looked at are the noteblocks but they can't replicate voices, so I turned to jukeboxes but I realised that they don't have the sounds I want so I was thinking if there was a way to transfer the sounds preferably without the need to change the minecraft file or at least with maybe just adding a the sounds in a file or something.
KingofGamesYami #2
Posted 15 December 2014 - 06:23 PM
http://wiki.theoriginalbit.com/moarperipherals/index.php?title=Iron_Note_Block
AlkamlBan #3
Posted 15 December 2014 - 06:34 PM

Yes but I don't want it to play the note because most of the FNAF part is about screams and sublime messages punched straight at your face. And even though yes such a thing can play the music it can't replicate these sounds or at least thats what I understood.
amtra5 #4
Posted 19 December 2014 - 12:30 AM
Just put your pre recorded message in a resource pack and play it using "/playsound folder.sound playerSelector" in a command block. Replace "folder" with the folder the sound is in relative to the "resourcePack/assets/sound" folder and "sound" with the name of your custom sound in an .ogg format. The command block can be set using a computer if configured in the config file.

Ex.

/playsound customsounds.sound1 @p

This will play the sound at "resourcePack/assets/sound/customSounds/sound1.ogg" to the nearest player
Bomb Bloke #5
Posted 19 December 2014 - 06:05 AM
amtra's method is pretty much the only way to go about what you're after, though I believe you'll need a copy of the resource pack installed in the client of every user in your world.
theoriginalbit #6
Posted 19 December 2014 - 06:09 AM
I believe you'll need a copy of the resource pack installed in the client of every user in your world.
which doesn't pose a problem if you're the sever owner as you can have the clients download the resource packs when they connect
amtra5 #7
Posted 19 December 2014 - 06:12 AM
amtra's method is pretty much the only way to go about what you're after, though I believe you'll need a copy of the resource pack installed in the client of every user in your world.
Resource packs can also be served to the client from the server by editing the server.properties file as well as being able to be packaged and distributed with the map by putting your resource pack as resources.zip in the root of the save, but this is single player only.
Edited on 19 December 2014 - 05:20 AM