Jump to content

Recommended Posts

Posted

Hi, I'm having a problem with my textures they show up in eclipse but not in Minecraft.  However, my armor texture does appear while i'm wearing it.  Also I was able to make all the item textures appear by making a resource pack, but the block textures still won't work.

 

Here is my block code

 

  Reveal hidden contents

 

 

And here is my main block class

 

  Reveal hidden contents

 

 

Also when I run it in eclipse I get this message

 

  Reveal hidden contents

 

 

I really need help I've tried everything I can think of. please help.

Posted

I tried changing it to this

this.blockIcon = icon.registerIcon(ModInfo.ID.toLowerCase() + ":textures/blocks/" + Names.CrystaliteOre_unlocalizedName);

and to this

this.blockIcon = icon.registerIcon("cm:textures/blocks/CrystaliteOre");

but it still won't work outside of eclipse.

Posted

You need to do something like this:

 

this.blockIcon = iIconRegister.registerIcon("MOD_ID:TEXTURE");

 

If you're defining the block texture, you don't have to add "textures/blocks" to the path. Same for items.

if (user.hasKnowledgeOfJava) {

    if (user.question.hasCode) {

        return interpetHelpfulResponse(user.getQuestion());

    } else {

        return "Could you post your code please?";

    }

} else {

    return "Learn some freaking Java!";

}

Posted

That is how I had it originally. I had this.

  @SideOnly(Side.CLIENT)

  public void registerIcons(IIconRegister icon) {

      this.blockIcon = icon.registerIcon(ModInfo.ID.toLowerCase() + ":" + Names.CrystaliteOre_unlocalizedName);

  }

 

ModInfo.ID.toLowerCase() = cm

Names.CrystaliteOre_unlocalizedName = CrystaliteOre

Therefore, I'm really saying

this.blockIcon = icon.registerIcon("cm:CrystaliteOre");

so can anyone tell me why it won't work outside eclipse?

I'm keeping my textures here

Modding Stuff\ModMaker 1.7.2\src\main\assets\cm\textures\blocks

Outside of eclipse I just put assets in my mod's .jar file

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.