Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Slavnetic

Members
  • Joined

  • Last visited

Everything posted by Slavnetic

  1. Ive been trying to implement soundevents into the mod but it keeps throwing up an error on line 23 and it says 'SoundEvent(net.minecraft.resources.ResourceLocation, float, boolean)' has private access in 'net.minecraft.sounds.SoundEvent' Heres the code. package net.slavnetic.breakingbadblock.sound; import net.minecraft.resources.ResourceLocation; import net.minecraft.sounds.SoundEvent; import net.minecraftforge.common.util.ForgeSoundType; import net.minecraftforge.eventbus.api.IEventBus; import net.minecraftforge.registries.DeferredRegister; import net.minecraftforge.registries.ForgeRegistries; import net.minecraftforge.registries.RegistryObject; import net.slavnetic.breakingbadblock.BreakingBadblock; public class ModSounds { public static final DeferredRegister<SoundEvent> SOUND_EVENTS = DeferredRegister.create(ForgeRegistries.SOUND_EVENTS, BreakingBadblock.MOD_ID); public static final RegistryObject<SoundEvent> BBTHEME = registerSoundEvent("bbtheme"); private static RegistryObject<SoundEvent> registerSoundEvent(String name) { return SOUND_EVENTS.register(name, () -> new SoundEvent(new ResourceLocation(BreakingBadblock.MOD_ID, name))); } public static void register(IEventBus eventBus) { SOUND_EVENTS.register(eventBus); } }

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.