Jump to content

Recommended Posts

Posted

Hi, I've been trying to make a simple mod to replace Dense Ores, however I've wanted to make an item to increase the amount of ores that you get from dense ores, I have named it Ore Collector. As far as I can tell I have done everything right so far (well obviously not) but the texture isn't showing up in game, and the name isn't changing, this is shown in the screenshots below. Please tell me what I need to show you for you to figure out what's wrong.

 

2017-12-04_13.54.55.png

Capture.PNG

orecollector.png

Posted

For the name, what is being shown is considered the "unlocalized" name. To allow for users who speak other languages, the name gets "localized" by looking up the translations in a .lang file in your assets. I have a tutorial on localization here: http://jabelarminecraft.blogspot.com/p/minecraft-modding-localization.html

 

For the texture it is usually a simple thing but often related to a typographical error. You need the blockstate to map to a specific section of the blockstates json file which has to have a name that matches exactly and then points to a texture asset where the name matches exactly. So you should post the contents of your blockstate file and maybe also your block class code in order for us to help you.

 

You should also check the console messages during the loading of your mod -- it probably has a warning somewhere related to either not finding your block state or not finding the texture file. So you should post your console messages as well. It should tell you what is going wrong and it is very important to get familiar with looking at those messages. You can even get more detailed logs from the log file that is saved.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Posted

If the blockstate/model/texture isn't working, you can check in the logs what's wrong. Post it so we can help.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted

lmfao, that's great. I can't even use "Refractor->Rename-> and change the name to assets.mjpom because it just adds a new package inside of it and it doesn't change the actual package name. Do I need to recreate everything, or is there an easier way, or am I just stupid?

Capture2.PNG

Posted

I haven't used Eclipse in a while, but I think there's an option to rename subpackages as well, which I think will solve the issue. You can change the folder name in your file manager.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted
4 minutes ago, larsgerrits said:

I haven't used Eclipse in a while, but I think there's an option to rename subpackages as well, which I think will solve the issue. You can change the folder name in your file manager.

Right click -> Refactor -> Rename

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.

Posted

You guys are the bomb. I love you guys, no homo. I changed the en.us.lang back to en.US.lang because the first one wasn't working and now the name works. 

 

I manually changed the file locations and deleted the 'assests' folder after changing all of its contents into the folder 'assets'. Thanks for the help guys.

Posted (edited)
5 minutes ago, Draco18s said:

Right click -> Refactor -> Rename

I know. He also said he used that, but it didn't work for him. I suggested he checked the "Rename subpackages" option.

Edited by larsgerrits

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted
6 minutes ago, larsgerrits said:

I know. He also said he used that, but it didn't work for him. I suggested he checked the "Rename subpackages" option.

Gotcha

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.

Posted
11 minutes ago, Metrixo said:

You guys are the bomb. I love you guys, no homo. I changed the en.us.lang back to en.US.lang because the first one wasn't working and now the name works. 

 

I manually changed the file locations and deleted the 'assests' folder after changing all of its contents into the folder 'assets'. Thanks for the help guys.

Yeah, the lang file has to be capitalized US in recent versions. Overall, for things outside the code itself such as package and file names and json contents most problems tend to be typos so you just have to look really really carefully. Glad you fixed it all.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Posted
1 minute ago, jabelar said:

the lang file has to be capitalized US in recent versions.

It depends.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

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.