Jump to content

Recommended Posts

Posted

Hey guys! So, I don't understand what's going on, but the textures aren't loading... I chcked twice for the textures names, modid, etc, but I cannot find anything wrong... Maybe another guy's eyes can help!

 

ItemGrind Class

public class ItemGrind extends InitItems {

    public ItemGrind() {
        super();
        this.setUnlocalizedName("grind");
    }
}

 

InitItems Class

public class InitItems extends Item{

    public InitItems() {
        super();

        this.setCreativeTab(InitCreativeTab.JFARM_TAB);
    }

    @Override
    public String getUnlocalizedName(){
        return String.format("item.%s%s", ModReference.MOD_ID.toLowerCase() + ":", getUnwrappedUnlocalizedName(super.getUnlocalizedName()));
    }

    @Override
    public String getUnlocalizedName(ItemStack itemStack){
        return String.format("item.%s%s", ModReference.MOD_ID.toLowerCase() + ":", getUnwrappedUnlocalizedName(super.getUnlocalizedName()));
        // item.modid:itemname.name
    }

    @Override
    @SideOnly(Side.CLIENT)
    public void registerIcons(IIconRegister iconRegister){
        itemIcon = iconRegister.registerIcon(this.getUnlocalizedName().substring(this.getUnlocalizedName().indexOf(".") + 1));
    }

    protected String getUnwrappedUnlocalizedName(String unlocalizedName){
        return unlocalizedName.substring(unlocalizedName.indexOf(".")+1);
    }
}

 

Registry of the item

public class JFarmItems {

    public static final InitItems grind = new ItemGrind();

    public static void initJFarmItems(){
        GameRegistry.registerItem(grind, "grind");
    }
}

 

Other things:

Modid: public static final String MOD_ID = "jfarm";

Texture Location: src/main/resources/assets/jfarm/textures/items/grind.png

 

I must be very blind... I'm sure there is something that I'm not seeing well...

 

Thanks :)

João Fernandes

Thanks :)

João Fernandes

Posted

Thanks Diesieben07 :)

 

I changed but even that solved it... But... I'm stupid to didn't realise that the gradle wasn't actually the proper gradle... So, now it works because I re-install everything, but I think your method is better ;)

 

Second: I don't think we have to yell to people if we don't like anything that they do... Pahimar tryed his best to help others! I watch him like I watch VSWE Summer Courses! I know that some methods are better than others, but come on... He is trying to help!

 

Thanks for the suggestion, I'm going to apply it :)

Thanks :)

João Fernandes

Posted

And even if he knows, he's helping! Honestly, the problem wasn't in his methods (and I understand them, believe it or not), was in my genialityof open the project on a wrong way...

 

I enjoyed your method, and I'll use it for now on ;)

 

Thanls ^^

 

PS. I'm not saying that he doesn't overly complicate the things! I agree with you Diesieben07, but we are different!

Thanks :)

João Fernandes

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Dear Brunoe Quick Hack (Team) Thank you so much for your remarkable help in recovering my funds after I was scammed. As a busy surgeon and single mother to three children, the loss was overwhelming.Web-Site: Brunoequickhack.COM Your team's hard work, expertise, and unwavering support gave me hope and helped restore my financial stability. I admire your professionalism and the way you genuinely care about your clients. I highly recommend your services to anyone who has fallen prey to scammers. You are truly life savers. Whats-App: +1705-(7842)-635 With heartfelt thanks, Contact information: BrunoequickhackATgmail.cOM Dear Brunoe Quick Hack (Team) Thank you so much for your remarkable help in recovering my funds after I was scammed. As a busy surgeon and single mother to three children, the loss was overwhelming.Web-Site: Brunoequickhack.COM Your team's hard work, expertise, and unwavering support gave me hope and helped restore my financial stability. I admire your professionalism and the way you genuinely care about your clients. I highly recommend your services to anyone who has fallen prey to scammers. You are truly life savers. Whats-App: +1705-(7842)-635 With heartfelt thanks, Contact information: BrunoequickhackATgmail.cOM
    • ok i tried to disable the last mod's i installed and it is some of then, so now im going to do the classic enable and disable trick to find out which mod cause the crash. thanks for the help  
    • ok  make it work (java not being recognize) by downloading the zip putting it in the java folder and manually setting the path but is still give the same crush report https://pastebin.com/PPmR6jN0
    • Install this one: https://www.azul.com/downloads/?version=java-17-lts&os=windows&architecture=x86-64-bit&package=jdk#zulu After installation, set the java version in your Launcher / Java settings
    • it say it requires java 17 so when i go to install it is say "the installer has encounter an unexpected error installing this package." error code 2503 and 2502. https://pastebin.com/AL6AHMM9
  • Topics

×
×
  • Create New...

Important Information

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