Posted January 6, 201411 yr private static final ResourceLocation texture = ResourceLocation(mod_HalflifeMod.modid, "textures/blocks/xeniantree.png"); When i try to create TileEntityNameRenderer file, i need to set a texture to it. But when i create that string, it says modid cannot be resolved or is not a field. But i have those strings in my mod file: @Mod(modid = "hlmod", name = "Half-Life MOD", version = "v1") What i have to do? Perhps its because of version, because eclipse cnt find ResourceLocation method in net.minecraft.util. So i have to do this texture somehow different. Can you guys tell me how? pls
January 6, 201411 yr Annotations are not class properties. You need to add a static modID field to your main mod class for that to work. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
January 7, 201411 yr Author This is basic java. Follow the rules please. That forum actually made to help us, to fix our problems. You're giving strange hints instead of the whole material. We are newbs in java, thats why we ask a questions here. Have you ever feel like you talking to the wall!?
January 7, 201411 yr This is basic java. Follow the rules please. That forum actually made to help us, to fix our problems. You're giving strange hints instead of the whole material. We are newbs in java, thats why we ask a questions here. Have you ever feel like you talking to the wall!? Modder Support This is the support section for those modding with Forge. Help with modding goes in here, however, please keep in mind that this is not a Java school. You are expected to have basic knowledge of Java before posting here. Moderator: diesieben07 Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
January 7, 201411 yr You have to learn that elsewhere, preferably without modding. Learning Java with modding is a bad idea. Mild correction: Learn programming with modding is a bad idea. I picked up Java syntax just fine just jumping strait into modding, but I've had extensive experience with related languages. Eclipse (and Javadoc) actually gave me a nerdgasm over how powerful it was and the features it had over other IDEs I'd used in the past. Its actually really frustrating working with them now, not having Eclipse. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
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.