2

Adding Custom Sounds to Block Separate From Parent Block?volume_up

Hippopotamoss's Avatar Hippopotamoss3/16/24 5:49 pm
3/16/2024 10:25 pm
Hippopotamoss's Avatar Hippopotamoss
Hiya!

I'm attempting to change the sounds used by the Pink Petals block. The issue I'm running into is that the Pink Petals block gets its sounds from the Cherry Leaves block, and I would rather not change the sounds for both, just for the Pink Petals.

Does anyone know how I can achieve this? Where I can have custom sounds for the Pink Petals that do not affect the Cherry Leaves?

The closest I've gotten is that I've managed to add custom sounds to the Pink Petals without it affecting the Cherry Leaves, but the Cherry Leaves sounds are still there for the Pink Petals, as in it plays either the custom sound or the vanilla seemingly randomly.

Thanks :)
Posted by Hippopotamoss's Avatar
Hippopotamoss
Level 51 : Grandmaster Botanist
83

Create an account or sign in to comment.

2

2
03/16/2024 8:21 pm
Level 30 : Artisan Miner
Cornbread_Alphanumeric
Cornbread_Alphanumeric's Avatar
this depends on whether you're talking about bedrock or java edition. on bedrock, it'd be trivial - you'd just have to change its "sound" field in blocks.json (although, you'd have to use an existing sound type). on java edition, you'd have to mod the game.

if you're using java edition, that might be your issue with the vanilla sounds sticking around. sound events merge their information between resource packs on java edition, so if you want to completely replace vanilla, you need to add a boolean property "replace" and set it to true.
1
03/16/2024 10:25 pm
Level 51 : Grandmaster Botanist
Hippopotamoss
Hippopotamoss's Avatar
Ahh, yeah I'm working with Java edition so that makes sense. Thanks!
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome