Hi,
I'm trying to make a solar "powered" light that turns on at night, and since there aren't many tutorials on that, much less well known class names, functions and whatnot for 1.8, I was hoping if someone could point me in the right direction for the easiest way to do it, considering it only needs to check for two times.
Thanks
Just curious about something:
I know that lots of modders create .jar models for blocks and items, but since that feature is almost redundant due to the .json model feature in 1.8, do you plan on supporting this feature, or do you plan scratching it due to the fact that .json files are just assets and are used just like any other texture?
So I'm gonna update my mod to 1.7, I installed the Forge src, loaded everything up in Eclipse, and I looks fine. But, the minecraft folder has an exclamation point on it, and Forge crashes. I haven't installed anything else yet.
Error:
[11:40:23] [main/INFO]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[11:40:23] [main/ERROR]: Unable to launch
java.lang.ClassNotFoundException: cpw.mods.fml.common.launcher.FMLTweaker
at java.net.URLClassLoader$1.run(URLClassLoader.java:202) ~[?:1.6.0_65]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.6.0_65]
at java.net.URLClassLoader.findClass(URLClassLoader.java:190) ~[?:1.6.0_65]
at java.lang.ClassLoader.loadClass(ClassLoader.java:306) ~[?:1.6.0_65]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) ~[?:1.6.0_65]
at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ~[?:1.6.0_65]
at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:104) ~[launchwrapper-1.9.jar:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:306) ~[?:1.6.0_65]
at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ~[?:1.6.0_65]
at java.lang.Class.forName0(Native Method) ~[?:1.6.0_65]
at java.lang.Class.forName(Class.java:249) ~[?:1.6.0_65]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:97) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
Any idea as to what I'm doing wrong?
This looks very scary...
BTW: I'm sorry if this is in the wrong section, I couldn't decide...
Anything in src/main/resources will be included in the resulgin jar when you run greadle build.
Also... decompiled mod what?
Looking at your mod I notice a few things:
1) God fucking damn macs stop adding so much useless crap! hidden folders everywhere!
2) The 'assets' folder goes into the ROOT of the jar not in the nuke_mod folder, same goes for mcmod.info and the like.
3) You're obfusicating to obf names you should obf to srg names, also, update to 1.7.
Thank you, it worked!!!
Ya, I got it working.
here's the mod:
https://www.dropbox.com/s/2po2s27z6cm4g10/Nuke%20Mod.jar
In fact, here's proof that I'm not wasting your time:
Decompiled Mod in Eclipse:
https://www.dropbox.com/s/zhlf6tj56pjh0pu/Screen%20Shot%202014-02-20%20at%2011.09.24%20AM.png
You're just trying to load the block textures, right?
Try to add these to your block file:
Constructor:
setTextureName("YourModID:yourblockname");
Body:
@SideOnly(Side.CLIENT)
/**
* From the specified side and block metadata retrieves the blocks texture. Args: side, metadata
*/
public Icon getIcon(int par1, int par2)
{
return par1 == 0 ? this.field_94392_b : (par1 == 1 ? this.field_94393_a : this.blockIcon);
}
@SideOnly(Side.CLIENT)
/**
* When this method is called, your block should register all the icons it needs with the given IconRegister. This
* is the only chance you get to register icons.
*/
public void registerIcons(IconRegister par1IconRegister)
{
this.blockIcon = par1IconRegister.registerIcon(this.getTextureName() + "_side");
}
Hope this helps!
So, I exported my mod today, everything went fine. I run it, it works, but it doesn't have textures or an mcmod.info file. It's not loading anything but the classes. Next, I did the same thing anybody else would, unzip the jar/zip. It errors:
So, I'm out of ideas, I'm willing to post the mod, too. Any help is greatly appreciated!
Edit: Also, I'm 100% sure that no classes are missing!
Hello
I'm making a mod that's working fine, except for the fact that my custom TNT renders white...
Code:
Thank you, and I realize that I'm probably missing something huge.
Thank you,
I've changed the directory, and nothing's changed...
I wish I could provide more info, but like I said, nothing's changed.
Would it help if I uploaded the mod itself?