Jump to content

Sn5

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by Sn5

  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.)
×
×
  • Create New...

Important Information

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