Jump to content

Recommended Posts

Posted

So, forge is out. And no one knows how to use it... Great!!!

Question is how to register textures is 1.7.2 It would be very good if anyone would tell me it. I want to give texture to my item.

[spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler]LOL,Its nothing interesting here

[spoiler=Spoiler]And here too

[spoiler=Spoiler]But that image is pretty good

 

 

 

 

 

 

 

 

 

 

 

 

Posted

    @Override
    public void registerIcons(IIconRegister par1IconRegister)
    {
        this.itemIcon = par1IconRegister.registerIcon("modid:texture");
    }

 

hah, you helping me, I helping you. =)

 

But I have already tried this way to register. Is it work for you? maybe I put my textures in wrong place? Where did you placed textures?

[spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler]LOL,Its nothing interesting here

[spoiler=Spoiler]And here too

[spoiler=Spoiler]But that image is pretty good

 

 

 

 

 

 

 

 

 

 

 

 

Posted

    @Override
    public void registerIcons(IIconRegister par1IconRegister)
    {
        this.itemIcon = par1IconRegister.registerIcon("modid:texture");
    }

 

hah, you helping me, I helping you. =)

 

But I have already tried this way to register. Is it work for you? maybe I put my textures in wrong place? Where did you placed textures?

 

The textures go here:

 

Your-Forge-Folder\src\main\resources\assets\Your-Mod-ID\textures\items\Your-Texture.png

Posted

Oh, my bad... I forgot about my modid in path. Now all works.

 

BTW do you know why my items' names showing only after changing language? Do you have similar problem? If not could you please give me your code of naming items?

[spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler]LOL,Its nothing interesting here

[spoiler=Spoiler]And here too

[spoiler=Spoiler]But that image is pretty good

 

 

 

 

 

 

 

 

 

 

 

 

Posted

maybe you not noticed that you have no sounds? Also I can advice you to update your forge, because in new versions less of bugs. Can you say please how do you use lang files? Did you meant you use files in assets/lang? If so say please how can Iuse it?

[spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler]LOL,Its nothing interesting here

[spoiler=Spoiler]And here too

[spoiler=Spoiler]But that image is pretty good

 

 

 

 

 

 

 

 

 

 

 

 

Posted

Yes, i also noticed it  ;D

 

Ok

 

Yes, It is quite easy, just create a file at:

 

Your-Forge-Folder\src\main\resources\assets\Your-Mod-ID\lang\ named en_US.lang (for English USA)

 

And type the unlocalized name of your item. Eg:

item.Stirrup.name=Stirrup
item.Tag.name=Tag
item.Knot.name=Knot
item.Rope.name=Rope

Posted

maybe you not noticed that you have no sounds? Also I can advice you to update your forge, because in new versions less of bugs. Can you say please how do you use lang files? Did you meant you use files in assets/lang? If so say please how can Iuse it?

 

It's easier than you think.  No, easier than that.  Seriously, even easier.

 

Set the unlocalized name.  Make a lang file in assets:localization or whatever it is and put unlocalized name = localized name.  Done.

 

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

Yes, i also noticed it  ;D

 

Ok

 

Yes, It is quite easy, just create a file at:

 

Your-Forge-Folder\src\main\resources\assets\Your-Mod-ID\lang\ named en_US.lang (for English USA)

 

And type the unlocalized name of your item. Eg:

item.Stirrup.name=Stirrup
item.Tag.name=Tag
item.Knot.name=Knot
item.Rope.name=Rope

 

Thank you really much!!! I thought that for this I need some code.

 

And I can advise you again to update forge. I found how to fix assets don't work. These instructions for you if you use eclipse

 

Create new folder anywhere, extract forge src to this folder, and run gradlew.bat with command setupDevWorkspace (create bat file with string "gradlew.bat setupDevWorkspace" and launch it), then run gradlew.bat with command eclipse (bat with "gradlew.bat eclipse"). After all  start Eclipse and make folder "Your-Forge-Src-Folder/eclipse" eclipse workspace. The End. =)

[spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler]LOL,Its nothing interesting here

[spoiler=Spoiler]And here too

[spoiler=Spoiler]But that image is pretty good

 

 

 

 

 

 

 

 

 

 

 

 

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.