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.

Sn5

Members
  • Joined

  • Last visited

  1. I'm trying to add a new music disc but when I put it in a jukebox, it doesn't play anything and doesn't give the "Now Playing:" notification. I have the sound file and sounds.json, which looks fine when I compared with working examples. The song on my disc will be called "Twoster". A class that holds the discs I add: /* Import statements */ public class ModRecords { public static final List<ItemRecord> RECORDS = new ArrayList<ItemRecord>(); // Test record/music disc public static final ItemRecord RECORD_TWOSTER = new RecordBase("record_twoster", SoundsHandler.RECORD_TWOSTER); } RecordBase extends ItemRecord and calls super() with its parameters SoundsHandler: /* Import statments */ public class SoundsHandler { public static SoundEvent RECORD_TWOSTER; public static void registerSounds() { RECORD_TWOSTER = registerSound("record.twoster"); } private static SoundEvent registerSound(String name) { SoundEvent event = new SoundEvent(new ResourceLocation(name)); event.setRegistryName(name); ForgeRegistries.SOUND_EVENTS.register(event); return event; } } (I have some java experience but am new to modding, so sorry if the problem is obvious.)

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.