Posted April 30, 20223 yr hello, I have a problem, I created a music disc, but for some reason the sound in it is not voluminous and works all over world. how to fix? what i did wrong? public static final RegistryObject<Item> YellowPeachMusicDisc = ITEMS.register("yellow_peach_music_disc", () -> new MusicDiscItem(10, ModSoundEvents.YELLOW_PEACH::get, new Item.Properties().maxStackSize(1).group(CoSRPGItemGroups.COSRPG_MUSIC_DISCS))); public class ModSoundEvents { public static final DeferredRegister<SoundEvent> SOUND_EVENTS = DeferredRegister.create(ForgeRegistries.SOUND_EVENTS, CoSRPG.MOD_ID); public static void register(IEventBus eventBus) { SOUND_EVENTS.register(eventBus); } public static final RegistryObject<SoundEvent> YELLOW_PEACH = registerSoundEvent("yellow_peach"); private static RegistryObject<SoundEvent> registerSoundEvent(String name) { return SOUND_EVENTS.register(name, () -> new SoundEvent(new ResourceLocation(CoSRPG.MOD_ID, name))); } }
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.