Posted August 8, 201411 yr HELP! My Mod Works Fine When Running In Eclipse No Errors At All But When I Export It As A Java File Minecraft Wont Load It It Crashes Saying That this.setUnlocalizedName isn't a recognized string the so i removed it for that class file, just to see if it would work well i go to launch it again and it says that this.setTexturename isnt recognized so i delete that and try again then it says that this.setCreativeTab(CreativeTabs.tabMaterials) isnt recognized so i just deleted that too, THEN it said it had an error with one of the blocks i added material name Material.glass, so remember this is on 1.7.2 and im just starting to mod im using forge version 10.12.0.1034 and thats the same version i used in minecraft i also tried many other versions with no luck so if you need any other information tell me and i will gladly give it to you! Thanks!
August 8, 201411 yr You're not re-obfuscating. How are you exporting your mod? Make sure to use Gradle, not Eclipse.
August 8, 201411 yr Author I'm using eclipse Luna so i go up to file then in the drop down window i click export then it appears with ways to export i click java jar file then i select the folders i want to export (src/main/java and src/main/resources)and when its all done a jar file appears on my desktop, and inside is assets, com, META-INF, and mcmod-info.
August 8, 201411 yr I'm using eclipse Luna so i go up to file then in the drop down window i click export then it appears with ways to export i click java jar file then i select the folders i want to export (src/main/java and src/main/resources)and when its all done a jar file appears on my desktop, and inside is assets, com, META-INF, and mcmod-info. There's your problem. Use Gradle to export, the same way you used it to create your sources. The command is "gradlew build". When it's finished your mod .jar will be in the build/libs/ folder.
August 8, 201411 yr Author thank you so much! Now I can actually be proud of my first mod, again thank you!
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.