Jump to content

Spygineer

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by Spygineer

  1. It seems to be working now, thanks for the help!
  2. Thanks for your help! Can I ask one more thing? Can you send a download link for java 8? The offical website asks for an oracle account, that required company related informations. I've tried both jre and jdk.
  3. Hello every one, I'm having problems with the latest recommanded version of 1.12.2 MDK. When I'm tring to run gradle, It shows the following error message: Could not determine java version from '11.0.2'. I've tried to update gradle, with no success.
  4. Oh, well, here is my Soundhandler class: and the item instance: public class ModSoundHandler { public static SoundEvent CARDBOARD_STEP; public static SoundEvent CARDBOARD_DIG; public static SoundEvent CARDBOARD_PLACE; public static SoundEvent CARDBOARD_FALL; public static SoundEvent CARDBOARD_BREAK; public static SoundEvent CARDBOARD_OPEN; public static SoundEvent RECORD_MUSIC_TEST; public static void RegisterSounds() { CARDBOARD_STEP = registerSound("block.cardboard.step"); CARDBOARD_DIG = registerSound("block.cardboard.dig"); CARDBOARD_PLACE = registerSound("block.cardboard.place"); CARDBOARD_FALL = registerSound("block.cardboard.fall"); CARDBOARD_BREAK = registerSound("block.cardboard.break"); CARDBOARD_OPEN = registerSound("block.cardboard.open"); RECORD_MUSIC_TEST = registerSound("record.test"); } static SoundEvent registerSound(String name) { SoundEvent event = new SoundEvent(new ResourceLocation(Main.ModID, name)); event.setRegistryName(name); ForgeRegistries.SOUND_EVENTS.register(event); return event; } } public static final Item RECORD_TEST = new ItemModRecord("music_disc", CreativeTabs.MISC, ModSoundHandler.RECORD_MUSIC_TEST);
  5. I need help with my mod, I'd like to create a Music Disc, I've tried to create a class that extends from ItemRecord. I can place the disc in the juke box and I can get it back, but the music won't play. I've tried the sound with the /playsound command, and it does work. Here is my Item class: public class ItemModRecord extends ItemRecord implements IHasModel { public ItemModRecord(String name, CreativeTabs tab, SoundEvent soundIn) { super(name, soundIn); setCreativeTab(tab); setUnlocalizedName(name); setRegistryName(name); ModItems.ITEMS.add(this); } @Override public void RegisterModels() { Main.proxy.registerItemRenderer(this, 0, "inventory"); } }
×
×
  • Create New...

Important Information

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