Jump to content

Item name and texture won't work correctly [SOLVED]


Dr.Nickenstein

Recommended Posts

Hello guys, i'm a new little modder in Minecraft. I was trying to make a new ore, and i started creating an ingot for this ore. That's the first thing i've done in my mod. I've followed a tutorial step by step. The problem is that when i set the name and put the texture file in the item textures folder the .png file doesn't show up in Eclipse, and when i start minecraft to try to see the ore name it shows up as item.(name of the ore)_ingot.name . I'm using Eclipse to mod, the forge version is the forge-1.12.2-14.23.5.2814. Can you help me with my problems? Thank you in advance.

 

Edited by Dr.Nickenstein
I've solved the problem :D
Link to comment
Share on other sites

Sometimes you have to refresh the folders within eclipse, otherwise the files don't get recognized.

I don't use eclipse, but i think it's just a rightclick on the folder/package and there should be refresh or something.

Intelij calls it sync.

 

The name is set inside your language file, for english it should be assets/yourmodid/lang/en_US.lang,

just add item.(name of the ore)_ingot.name=Display name.

Edited by Keitaro
Link to comment
Share on other sites

2 hours ago, Dr.Nickenstein said:

I've followed a tutorial step by step

Don’t.

 

2 hours ago, Dr.Nickenstein said:

shows up as item.(name of the ore)_ingot.name

Have you created a language file?

Also, include your mod id in unlocalized names to prevent conflicts with other mods.

Edited by DavidM

Some tips:

Spoiler

Modder Support:

Spoiler

1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code.

2. Always post your code.

3. Never copy and paste code. You won't learn anything from doing that.

4. 

Quote

Programming via Eclipse's hotfixes will get you nowhere

5. Learn to use your IDE, especially the debugger.

6.

Quote

The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it.

Support & Bug Reports:

Spoiler

1. Read the EAQ before asking for help. Remember to provide the appropriate log(s).

2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.

 

 

Link to comment
Share on other sites

8 hours ago, DavidM said:

Don’t.

 

Have you created a language file?

Also, include your mod id in unlocalized names to prevent conflicts with other mods.

I've created an en_US.lang file, i've tried renaming it to en_us.lang but nothing changed. I'm not using other mods to test mine, so don't worry about that :) . Uhm and if i can ask you, why did you tell me to not follow tutorials ?

Link to comment
Share on other sites

9 hours ago, Keitaro said:

Sometimes you have to refresh the folders within eclipse, otherwise the files don't get recognized.

I don't use eclipse, but i think it's just a rightclick on the folder/package and there should be refresh or something.

Intelij calls it sync.

 

The name is set inside your language file, for english it should be assets/yourmodid/lang/en_US.lang,

just add item.(name of the ore)_ingot.name=Display name.

Damn i've tried refreshing the texture package and it loaded! Thank you so much man!

Link to comment
Share on other sites

10 hours ago, Keitaro said:

Sometimes you have to refresh the folders within eclipse, otherwise the files don't get recognized.

I don't use eclipse, but i think it's just a rightclick on the folder/package and there should be refresh or something.

Intelij calls it sync.

 

The name is set inside your language file, for english it should be assets/yourmodid/lang/en_US.lang,

just add item.(name of the ore)_ingot.name=Display name.

As for the name, i've checked my .lang file and everything seems to be fair,  but it won't show up as wanted. That's what's in my .lang file:

item.megatite_ingot.name=megatite ingot

Link to comment
Share on other sites

10 hours ago, Keitaro said:

The name is set inside your language file, for english it should be assets/yourmodid/lang/en_US.lang,

just add item.(name of the ore)_ingot.name=Display name.

I've tried to rename the en_US.lang to en_us.lang and it worked again. Do you remember when i told you that i've done it already and bla bla bla bla...? Well, i've named the display name megatite_ingot. Thanks for the help! 2/2 problems SOOOLVEEED

Link to comment
Share on other sites

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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