Posted November 16, 20213 yr how can i make custom block break/place/footsteps sounds i tried making custom sound events and then making a forgesoundtype with them everything works fine except the sound is not there i can play it with /playsound but its silent even when i break/place the block i applied it to
November 17, 20213 yr Author here is my sound events class public class ModSoundEvents { public static final DeferredRegister<SoundEvent> SOUND_EVENTS = DeferredRegister .create(ForgeRegistries.SOUND_EVENTS, ThingMod.MOD_ID); public static final RegistryObject<SoundEvent> THING_SOUND = registerSoundEvent("thing_sound"); public static final ForgeSoundType THING_SOUND_TYPE = new ForgeSoundType(1f, 1f, () -> THING_SOUND.get(), () -> THING_SOUND.get(), () -> THING_SOUND.get(), () -> THING_SOUND.get(), () -> THING_SOUND.get()); private static RegistryObject<SoundEvent> registerSoundEvent(String name) { return SOUND_EVENTS.register(name, () -> new SoundEvent(new ResourceLocation(ThingMod.MOD_ID, name))); } public static void register(IEventBus eventBus) { SOUND_EVENTS.register(eventBus); } } and here is my sounds.json { "thing_sound": { "category": "blocks", "subtitle": "thingmod.thing_sound", "sounds": [ "thingmod.thing_sound" ] } } my sound file is an ogg file and is named the exact same as it is registered as then i use ModSoundEvents.THING_SOUND_TYPE as the parameter in .Sound() when creating my block and then in my main class i register the ModSoundEvents class with the event bus Edited November 17, 20213 yr by KaboomRoads
November 17, 20213 yr Author how do i post screenshots here? since i cant find a way to post screenshots ill just write it down Spoiler assets.thingmod blockstates lang models block item sounds thing_sound.ogg textures block item sounds.json Edited November 17, 20213 yr by KaboomRoads
November 17, 20213 yr Author when i do that nothing happens and i dont have a choose files button below the editor
November 17, 20213 yr 3 hours ago, KaboomRoads said: i dont have that button there. its probably a rank thing. website issue, you could still drag and drop files over the dark gray area and upload them
November 17, 20213 yr Author after dragging the file there it just sends me to a new tab with the image but nothing else happens
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.