Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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

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.

  • 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!?

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.