Last active
December 17, 2025 00:27
-
-
Save vercte/dddcb324a65d9f9aaa4b27e2bb009e14 to your computer and use it in GitHub Desktop.
Sounds not generating
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package net.vercte.satchels.neoforge.datagen.assets; | |
| import net.minecraft.data.PackOutput; | |
| import net.neoforged.neoforge.common.data.ExistingFileHelper; | |
| import net.neoforged.neoforge.common.data.SoundDefinition; | |
| import net.neoforged.neoforge.common.data.SoundDefinitionsProvider; | |
| import net.vercte.satchels.ModSounds; | |
| import net.vercte.satchels.Satchels; | |
| public class SoundGen extends SoundDefinitionsProvider { | |
| public SoundGen(PackOutput output, ExistingFileHelper helper) { | |
| super(output, Satchels.ID, helper); | |
| } | |
| @Override | |
| public void registerSounds() { | |
| add(ModSounds.SATCHEL_OPEN, SoundDefinition.definition() | |
| .with( | |
| sound("satchels:satchel_open") | |
| .volume(0.8f) | |
| ) | |
| .subtitle("sound.satchels.satchel_open") | |
| ); | |
| add(ModSounds.SATCHEL_CLOSE, SoundDefinition.definition() | |
| .with( | |
| sound("minecraft:item.bundle.drop_contents") | |
| .pitch(1.2f) | |
| ) | |
| .subtitle("sound.satchels.satchel_close") | |
| ); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "satchel_open": { | |
| "sounds": [ | |
| { | |
| "name": "satchels:satchel_open", | |
| "volume": 0.5 | |
| } | |
| ], | |
| "subtitle": "sound.satchels.satchel_open" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment