Posted August 16, 201510 yr I've been searching, but I can't find any documentation for acceptedMinecraftVersions in the @Mod @interface. I read in the @Mod class that it's recommended to set it, so I looked at the code for Thermal Foundation to see if and how they set it, seeing as how I've got great coding respect for TeamCOFH, but they've set it for 1.7.10 and I'm not sure if it's changed in between 1.7.10 and 1.8. Any help would be greatly appreciated. Who are you? Why have you brought me here? And why are there so many PewDiePie fanboys surrounding meeeeeeeee....... *falls into pit and dies*. Also this. Check it out. http://i.imgur.com/J4rrGt6.png[/img]
August 16, 201510 yr Look at the doc comment for the VersionRange.createFromVersionSpec method, which is used to parse the acceptedMinecraftVersions field. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
August 16, 201510 yr Why does nobody ever look into code anymore? Oh, wait - you looked. /** * The acceptable range of minecraft versions that this mod will load and run in * The default ("empty string") indicates that the currently RUNNING minecraft version is acceptable. * This means ANY version that the end user adds the mod to. Modders PLEASS set this. * FML will refuse to run with an error if the minecraft version is not in this range across all mods. * @return A version range as specified by the maven version range specification or the empty string */ String acceptedMinecraftVersions() default ""; 1.7.10 is no longer supported by forge, you are on your own.
August 16, 201510 yr Author Why does nobody ever look into code anymore? /** * The acceptable range of minecraft versions that this mod will load and run in * The default ("empty string") indicates that the currently RUNNING minecraft version is acceptable. * This means ANY version that the end user adds the mod to. Modders PLEASS set this. * FML will refuse to run with an error if the minecraft version is not in this range across all mods. * @return A version range as specified by the maven version range specification or the empty string */ String acceptedMinecraftVersions() default ""; I have looked at that code, and that's the reason I even knew to specify the acceptedMinecraftVersions, but I'm not quite sure what you're trying to convey with that message. Some clarification would be nice. Look at the doc comment for the VersionRange.createFromVersionSpec method, which is used to parse the acceptedMinecraftVersions field. Thank you, that helped tremendously. Who are you? Why have you brought me here? And why are there so many PewDiePie fanboys surrounding meeeeeeeee....... *falls into pit and dies*. Also this. Check it out. http://i.imgur.com/J4rrGt6.png[/img]
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.