#Adding modded sounds to custom blocks

18 messages · Page 1 of 1 (latest)

coarse junco
#

The wiki does a good job explaining how to add vanilla block sounds to custom blocks, but it is somewhat vague on how to add modded and/or custom sounds to blocks. I want to give a custom block the sounds Radrock from Alex's Caves uses, and while I managed to find the folder its sounds are located in alexscaves-2.0.2.jar\assets\alexscaves\sounds\block\radrock, the wiki doesn't seem to give much detail as to how I would reference them or where I would put the new SoundType.

I have attached the file I used to add custom blocks and the .jar file for Alex's Caves. I specifically want to add Radrock sounds to radrock_lead_ore

jagged shaleBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

wanton haloBOT
#

Paste version of blocks.js from @brazen ibex

barren parrot
# coarse junco The wiki does a good job explaining how to add vanilla block sounds to custom bl...

https://github.com/AlexModGuy/AlexsCaves/blob/main/src/main/java/com/github/alexmodguy/alexscaves/server/block/ACSoundTypes.java

const ACSoundTypes = Java.loadClass("com.github.alexmodguy.alexscaves.server.block.ACSoundTypes")
const RadRockSoundType = ACSoundTypes.RADROCK
GitHub

Contribute to AlexModGuy/AlexsCaves development by creating an account on GitHub.

coarse junco
#

Do I put RadRockSoundType in .soundType()?

barren parrot
#

yes

coarse junco
#

Thanks, I'll test it out and see if it works

wanton haloBOT
#

Paste version of blocks.js from @brazen ibex

barren parrot
wanton haloBOT
coarse junco
#

Interesting, I'll try it again without quotation marks

wanton haloBOT
#

Paste version of blocks.js from @brazen ibex

barren parrot
wanton haloBOT
coarse junco
#

Oh, I should have put that in the file, let me try again with it in

#

Ok, it worked this time👍