Jump to content

PirateCody

Members
  • Posts

    12
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

PirateCody's Achievements

Tree Puncher

Tree Puncher (2/8)

1

Reputation

  1. Is it possible to get the default Minecraft textures from the Forge source? I like basing my textures off vanilla counterparts, and it's useful to have the entire texture library there and available in my workspace. I'm 90% you used to be able to in 1.7, so I'm wondering if there's still a way to do it.
  2. Yeah, I feel like an idiot now lol. I reinstalled the 64bit version but forgot to remove (x86) from the environment variables. Thanks.
  3. C:\Program Files (x86)\Java\jdk1.8.0_201
  4. I reinstalled the JRE 64bit, but no dice.
  5. I'm trying to run various gradlew commands. Right now, I'm trying to run "gradlew setupDecompWorkspace eclipse" in order to try forcing a redownload of the forge libraries, but it gives me this error: I have the environment variable _JAVA_OPTIONS set to -Xmx3g which should be enough. There's no stacktrace available. Funny enough, when I set the JAVA OPTIONS to -Xmx512m, the process starts to work and then fails around :decompileMC. I'me running Java 8 64 bit I am at a complete loss and dont know where to go from here.
  6. This thread may be able to help.
  7. I got a fairly bizarre error today after exporting my mod. I launched eclipse after loading my mod and my forge project was broken. I did nothing to the forge project or my mod project. I didn't mess with eclipse either. The only thing I did was edit the ForgeVersion.json in the gradle cache because otherwise building a mod with gradlew is impossible. The specific errors I get are: I'm not really sure where to go from here. Would running setupDecompWorkspace again do anything?
  8. I'm trying to export my mod, but when I run "gradlew build" it ends up crashing with an exception. build.gradle: error stack trace:
  9. Doing that just doesn't work at all.
  10. Thanks, that seemed to have helped with another problem I found in my trial and error. Another thing I did was declare the sound event in SandstormSounds like so: public static SoundEvent music_sandstorm = new SoundEvent(new ResourceLocation(Sandstorm.MODID, "music_sandstorm")).setRegistryName("music_sandstorm"); and then registered it like this: @SubscribeEvent public static void registerSounds(RegistryEvent.Register<SoundEvent> event){ final SoundEvent[] soundEvents = { SandstormSounds.music_sandstorm }; event.getRegistry().registerAll(soundEvents); } I'm mainly leaving this information here just in case someone stumbles upon this post with the same issue. Thanks for your help.
  11. Thanks, that seemed to fix the registration issue. Now a more obscure problem that I also ran into in 1.7 is that my sound event won't play. For context, I'm making a music disc. I don't see anything obviously wrong with my sounds.json or other music disc code, but I'm gonna post it here regardless. sounds.json { "music_sandstorm": { "category": "record", "sounds": [ { "name": "sandstorm:music/music_sandstorm", "stream": true } ] } } RegistryHandler.java @EventBusSubscriber public class RegistryHandler { //blocks @SubscribeEvent public static void registerSounds(RegistryEvent.Register<SoundEvent> event){ final SoundEvent[] soundEvents = { new SoundEvent(new ResourceLocation(Sandstorm.MODID, "music_sandstorm")).setRegistryName("music_sandstorm") }; event.getRegistry().registerAll(soundEvents); } @SubscribeEvent public static void registerItems(Register<Item> event){ final Item[] items = { new ItemSandstormRecord("recordSandstorm", SandstormSounds.music_sandstorm, "recordsandstorm") }; event.getRegistry().registerAll(items); } } ItemSandstormRecord.java public class ItemSandstormRecord extends ItemRecord{ public ItemSandstormRecord(String unlocalizedName, SoundEvent soundIn, String registryName) { super(unlocalizedName, soundIn); setUnlocalizedName(Sandstorm.MODID + "." + unlocalizedName); setRegistryName(registryName); setCreativeTab(CreativeTabs.MISC); } } Much appreciate any help
  12. I'm pretty new to Forge modding in 1.12 after developing for awhile in 1.7.10. I'm trying to create a music disc, but I can't figure out the proper way to register my SoundEvents. From what I could gather, the proper way is something along the lines of public static void registerSounds(RegistryEvent.Register<SoundEvent> event)){ //Resource Location and SoundEvent stuff } However, Eclipse tells me "Bound mismatch: The type SoundEvent is not a valid substitute for the bounded parameter <T extends IForgeRegistryEntry<T>> of the type RegistryEvent<T>.Register<T>". Being new to the post-1.7 registry system I don't really know where to go from here. Thanks
×
×
  • Create New...

Important Information

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