Hey, I get this when trying to do the HelloWorld program, anyone know whats wrong?
[15:18:38] [Client thread/ERROR] [FML]: FML has detected a mod that is using a package name based on 'net.minecraft.src' : net.minecraft.src.FMLRenderAccessLibrary. This is generally a severe programming error. There should be no mod code in the minecraft namespace. MOVE YOUR MOD! If you're in eclipse, select your source code and 'refactor' it into a new package. Go on. DO IT NOW!
[15:18:41] [Client thread/ERROR] [FML]: Unable to read a class file correctly
java.lang.IllegalArgumentException
at org.objectweb.asm.ClassReader.(ClassReader.java:170) ~[asm-debug-all-4.1.jar:4.1]
at org.objectweb.asm.ClassReader.(ClassReader.java:153) ~[asm-debug-all-4.1.jar:4.1]
at org.objectweb.asm.ClassReader.(ClassReader.java:424) ~[asm-debug-all-4.1.jar:4.1]
at cpw.mods.fml.common.discovery.asm.ASMModParser.(ASMModParser.java:52) [ASMModParser.class:?]
at cpw.mods.fml.common.discovery.DirectoryDiscoverer.exploreFileSystem(DirectoryDiscoverer.java:100) [DirectoryDiscoverer.class:?]
at cpw.mods.fml.common.discovery.DirectoryDiscoverer.exploreFileSystem(DirectoryDiscoverer.java:89) [DirectoryDiscoverer.class:?]
at cpw.mods.fml.common.discovery.DirectoryDiscoverer.exploreFileSystem(DirectoryDiscoverer.java:89) [DirectoryDiscoverer.class:?]
at cpw.mods.fml.common.discovery.DirectoryDiscoverer.exploreFileSystem(DirectoryDiscoverer.java:89) [DirectoryDiscoverer.class:?]
at cpw.mods.fml.common.discovery.DirectoryDiscoverer.exploreFileSystem(DirectoryDiscoverer.java:89) [DirectoryDiscoverer.class:?]
at cpw.mods.fml.common.discovery.DirectoryDiscoverer.discover(DirectoryDiscoverer.java:53) [DirectoryDiscoverer.class:?]
at cpw.mods.fml.common.discovery.ContainerType.findMods(ContainerType.java:42) [ContainerType.class:?]
at cpw.mods.fml.common.discovery.ModCandidate.explore(ModCandidate.java:71) [ModCandidate.class:?]
at cpw.mods.fml.common.discovery.ModDiscoverer.identifyMods(ModDiscoverer.java:123) [ModDiscoverer.class:?]
at cpw.mods.fml.common.Loader.identifyMods(Loader.java:347) [Loader.class:?]
at cpw.mods.fml.common.Loader.loadMods(Loader.java:468) [Loader.class:?]
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:204) [FMLClientHandler.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:532) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:941) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_11]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_11]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_11]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_11]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
[15:18:41] [Client thread/ERROR] [FML]: There was a problem reading the file C:\Users\Jamie\Desktop\Minecraft\Mods\HelloWorld3\bin\jamie\minecraft\helloworld3\mod1\HelloWorld3.class - probably this is a corrupt file
cpw.mods.fml.common.LoaderException: java.lang.IllegalArgumentException
at cpw.mods.fml.common.discovery.asm.ASMModParser.(ASMModParser.java:58) ~[ASMModParser.class:?]
at cpw.mods.fml.common.discovery.DirectoryDiscoverer.exploreFileSystem(DirectoryDiscoverer.java:100) [DirectoryDiscoverer.class:?]
at cpw.mods.fml.common.discovery.DirectoryDiscoverer.exploreFileSystem(DirectoryDiscoverer.java:89) [DirectoryDiscoverer.class:?]
at cpw.mods.fml.common.discovery.DirectoryDiscoverer.exploreFileSystem(DirectoryDiscoverer.java:89) [DirectoryDiscoverer.class:?]
at cpw.mods.fml.common.discovery.DirectoryDiscoverer.exploreFileSystem(DirectoryDiscoverer.java:89) [DirectoryDiscoverer.class:?]
at cpw.mods.fml.common.discovery.DirectoryDiscoverer.exploreFileSystem(DirectoryDiscoverer.java:89) [DirectoryDiscoverer.class:?]
at cpw.mods.fml.common.discovery.DirectoryDiscoverer.discover(DirectoryDiscoverer.java:53) [DirectoryDiscoverer.class:?]
at cpw.mods.fml.common.discovery.ContainerType.findMods(ContainerType.java:42) [ContainerType.class:?]
at cpw.mods.fml.common.discovery.ModCandidate.explore(ModCandidate.java:71) [ModCandidate.class:?]
at cpw.mods.fml.common.discovery.ModDiscoverer.identifyMods(ModDiscoverer.java:123) [ModDiscoverer.class:?]
at cpw.mods.fml.common.Loader.identifyMods(Loader.java:347) [Loader.class:?]
at cpw.mods.fml.common.Loader.loadMods(Loader.java:468) [Loader.class:?]
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:204) [FMLClientHandler.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:532) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:941) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_11]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_11]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_11]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_11]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
Caused by: java.lang.IllegalArgumentException
at org.objectweb.asm.ClassReader.(ClassReader.java:170) ~[asm-debug-all-4.1.jar:4.1]
at org.objectweb.asm.ClassReader.(ClassReader.java:153) ~[asm-debug-all-4.1.jar:4.1]
at org.objectweb.asm.ClassReader.(ClassReader.java:424) ~[asm-debug-all-4.1.jar:4.1]
at cpw.mods.fml.common.discovery.asm.ASMModParser.(ASMModParser.java:52) ~[ASMModParser.class:?]
... 21 more
[15:18:41] [Client thread/WARN] [FML]: Identified a problem with the mod candidate C:\Users\Jamie\Desktop\Minecraft\Mods\HelloWorld3\bin, ignoring this source
cpw.mods.fml.common.LoaderException: java.lang.IllegalArgumentException
at cpw.mods.fml.common.discovery.asm.ASMModParser.(ASMModParser.java:58) ~[ASMModParser.class:?]
at cpw.mods.fml.common.discovery.DirectoryDiscoverer.exploreFileSystem(DirectoryDiscoverer.java:100) ~[DirectoryDiscoverer.class:?]
at cpw.mods.fml.common.discovery.DirectoryDiscoverer.exploreFileSystem(DirectoryDiscoverer.java:89) ~[DirectoryDiscoverer.class:?]
at cpw.mods.fml.common.discovery.DirectoryDiscoverer.exploreFileSystem(DirectoryDiscoverer.java:89) ~[DirectoryDiscoverer.class:?]
at cpw.mods.fml.common.discovery.DirectoryDiscoverer.exploreFileSystem(DirectoryDiscoverer.java:89) ~[DirectoryDiscoverer.class:?]
at cpw.mods.fml.common.discovery.DirectoryDiscoverer.exploreFileSystem(DirectoryDiscoverer.java:89) ~[DirectoryDiscoverer.class:?]
at cpw.mods.fml.common.discovery.DirectoryDiscoverer.discover(DirectoryDiscoverer.java:53) ~[DirectoryDiscoverer.class:?]
at cpw.mods.fml.common.discovery.ContainerType.findMods(ContainerType.java:42) ~[ContainerType.class:?]
at cpw.mods.fml.common.discovery.ModCandidate.explore(ModCandidate.java:71) ~[ModCandidate.class:?]
at cpw.mods.fml.common.discovery.ModDiscoverer.identifyMods(ModDiscoverer.java:123) [ModDiscoverer.class:?]
at cpw.mods.fml.common.Loader.identifyMods(Loader.java:347) [Loader.class:?]
at cpw.mods.fml.common.Loader.loadMods(Loader.java:468) [Loader.class:?]
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:204) [FMLClientHandler.class:?]
at net.minecraft.client.Minecraft.startGame(Minecraft.java:532) [Minecraft.class:?]
at net.minecraft.client.Minecraft.run(Minecraft.java:941) [Minecraft.class:?]
at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_11]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_11]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_11]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_11]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
Caused by: java.lang.IllegalArgumentException
at org.objectweb.asm.ClassReader.(ClassReader.java:170) ~[asm-debug-all-4.1.jar:4.1]
at org.objectweb.asm.ClassReader.(ClassReader.java:153) ~[asm-debug-all-4.1.jar:4.1]
at org.objectweb.asm.ClassReader.(ClassReader.java:424) ~[asm-debug-all-4.1.jar:4.1]
at cpw.mods.fml.common.discovery.asm.ASMModParser.(ASMModParser.java:52) ~[ASMModParser.class:?]
... 21 more
Do you have java 8
Changing to java 7 fixed it for me
If you already have Java 8 installed, you don't need to change to 7. In Eclipse, under the "Package Explorer", right-click the "Hello World" project folder and select "Properties". Now select "Java Compiler" from the menu on the left. If not ticked, tick the box labeled "Enable project specific settings". If ticked, untick the box labeled "Use compliance from execution environment...". Then from the drop-down box labeled "Compiler compliance level", select "1.7".
If you're still having problems, run the following command in Command Prompt from inside your forge directory.
The Meaning of Life, the Universe, and Everything.
Join Date:
6/11/2014
Posts:
59
Member Details
I've updated the tutorial to cover potential issues with different versions of Java. I've also prettied things up with spoiler tags, chapter logos, and... properly formatted code indentation! For those who don't know, the forum editor.. has issues.
so im trying to get it to set up eclipse for me, and all is well except when it says to make sue i have installed jdk (which i have) and set my Java home variable to the correct spot, which i know how to do. i have it set to the path for jre7, but when i try to set it to jdk, it doesnt work! i need help!
so im trying to get it to set up eclipse for me, and all is well except when it says to make sue i have installed jdk (which i have) and set my Java home variable to the correct spot, which i know how to do. i have it set to the path for jre7, but when i try to set it to jdk, it doesnt work! i need help!
You'll have to be more specific/descriptive. Also, have you looked at my Troubleshooting section?
Nice! This tutorial looks very promising and helpful, one question though: in part 3 do I save the build.gradle file as a text file after pasting the text?
I've [mostly] fixed the Custom Projectiles code and now it allappears to [mostly] work as intended.
Turns out it needed a little more work. I fixed a bug that sometimes dropped the wrong block on harvest. I also fixed a bug that prevented proper damage calculation / harvesting when throwing the last projectile from the stack. The fixed files are posted.
Hey dude anyway to make the item stay where it landed to pick it up or make it return to you?
Are you just trying to create infinite ammo? Look in "ThrowingAxe.java" in the "onItemRightClick" method and comment out the line that reads, "stack.stackSize--;" .
Is that your entire file? I can't help but notice it's missing the opening open-square-bracket at the beginning. If that's not the problem, please let me know.
It's in the right place too, so... I'm really not sure what the problem is. And contrary to what it may look like, the opening braces are indeed there, they just... don't show up on the post for some reason?? so's the modid.
If you already have Java 8 installed, you don't need to change to 7. In Eclipse, under the "Package Explorer", right-click the "Hello World" project folder and select "Properties". Now select "Java Compiler" from the menu on the left. If not ticked, tick the box labeled "Enable project specific settings". If ticked, untick the box labeled "Use compliance from execution environment...". Then from the drop-down box labeled "Compiler compliance level", select "1.7".
If you're still having problems, run the following command in Command Prompt from inside your forge directory.
Be sure to save your files before launch. Also be sure you've added the Hello World project to your Run Configurations under the Classpath tab.
I've changed the tutorial to reflect this fact. Thank you for mentioning it.
I've added a sentence to the tutorial explaining that the sound and texture files can be drag-and-dropped.
True! Interestingly, as of version 1.7.10-10.13.0.1180 the face on the bottom of the block is still reversed.
Thanks for the heads-up.
I've added a new Extras chapter and I
think I'm finally[will never be] done polishing the tutorial. I might not be adding anything new for awhile.Enjoy!
I moved chapter six into chapter five and chapter six is now:
Custom Projectiles and Persistent Block Damage
I think you might like it. But if anyone has any code improvements to offer, do tell.
Many thanks to coolAlias for indispensable assistance in making this mod.
*edit* I'm noticing that the throwing axe is harvesting ore, which should require a pickaxe. I'll have to look into it.
You'll have to be more specific/descriptive. Also, have you looked at my Troubleshooting section?
Turns out it needed a little more work. I fixed a bug that sometimes dropped the wrong block on harvest. I also fixed a bug that prevented proper damage calculation / harvesting when throwing the last projectile from the stack. The fixed files are posted.
Please read the tutorial before asking questions.
Thanks!
Are you just trying to create infinite ammo? Look in "ThrowingAxe.java" in the "onItemRightClick" method and comment out the line that reads, "stack.stackSize--;" .
[
{
"modid": "livelyanimals",
"name": "Lively Animals",
"description": "To Do",
"version": "${version}",
"mcversion": "${mcversion}",
"url": "",
"updateUrl": "",
"authorList": ["Rui-rui"],
"credits": "Rui-rui",
"logoFile": "",
"screenshots": [],
"dependencies": [""]
}
]
It's in the resources folder as instructed.
Is that your entire file? I can't help but notice it's missing the opening open-square-bracket at the beginning. If that's not the problem, please let me know.
* @version 0
* @author Rui -Open source.
*
* In-game info for project: Lively Animals.
*/
[ { "modid" : "livelyanimals"
, "name" : "Lively Animals"
, "description" : "To-do"
, "version" : "0"
, "mcversion" : "1.7.10"
, "url" : ""
, "updateUrl" : ""
, "authorList" : ["Rui"]
, "credits" : "None yet"
, "logoFile" : ""
, "screenshots" : []
, "dependencies" : ["Forge10.13.2.1232"]
}
]
It's in the right place too, so... I'm really not sure what the problem is. And contrary to what it may look like, the opening braces are indeed there, they just... don't show up on the post for some reason?? so's the modid.
Also, no sound plays when I run the client. x: