Posted November 24, 201212 yr I'm not sure if this has been asked before but i'm curious to why mcmod.info files are needed in mods when it would be more convenient to code it directly into the mod?
November 24, 201212 yr There is a way, but I can't get it to work, you can use @Metadata("MyModID") public static ModMetadata meta; And modify that, or you can get the metadata from @PreInit. Protip: try and find answers yourself before asking on the forum. It's pretty likely that there is an answer. Was I helpful? Give me a thank you! http://bit.ly/HZ03zy[/img] Tired of waiting for mods to port to bukkit? use BukkitForge! (now with a working version of WorldEdit!)
November 24, 201212 yr The mcmod.info is for custom launchers. They can search for that file and read the information directly without searching in the class files for it. Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! | mah twitter This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.
November 24, 201212 yr Author There is a way, but I can't get it to work, you can use @Metadata("MyModID") public static ModMetadata meta; And modify that, or you can get the metadata from @PreInit. I had a mess around with it, also with DummyContainer, and didn't have much luck. The mcmod.info is for custom launchers. They can search for that file and read the information directly without searching in the class files for it. Ahh. Do you have any ideas on how I would include the metadata in the code anyway?
November 24, 201212 yr There is a way, but I can't get it to work, you can use @Metadata("MyModID") public static ModMetadata meta; And modify that, or you can get the metadata from @PreInit. I had a mess around with it, also with DummyContainer, and didn't have much luck. The mcmod.info is for custom launchers. They can search for that file and read the information directly without searching in the class files for it. Ahh. Do you have any ideas on how I would include the metadata in the code anyway? I'm always using the mcmod.info file, so I don't know. Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! | mah twitter This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.
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.