Jump to content

[1.16.5] music disc turns on music all over the world


auriny

Recommended Posts

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)));
    }
}

 

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.