Jump to content

Recommended Posts

Posted

Hey , I'm trying to add a custom console(lever that's a block) into game, I actually have it in game but it won't texture. My texture is located at C:\Users\madman\Desktop\MC MODDING\dma\src\assets\dma\textures\models. This is the blocks class file (http://pastebin.com/HMhGyMQp) and this is the render class for it (http://pastebin.com/nZhCWJEp).

Console output:

  Reveal hidden contents

 

Posted

Hi

 

The clues you need are on this line

 

Using missing texture, unable to load dma:textures/blocks/textures:model:DalekConsole2.png.png

 

and this line

 

        this.blockIcon = iconRegister.registerIcon(main.MODID + ":" + "textures:model:DalekConsole2.png");

 

-TGG

Posted

ok i got rid of the double .png but still no luck with the texture assuming this line 

  Quote
this.blockIcon = iconRegister.registerIcon(main.MODID + ":" + "textures:model:DalekConsole2.png");
controls the icon in the inventory/tool bar is now this 
  Quote
this.blockIcon = iconRegister.registerIcon(main.MODID + ":" + "DalekConsole2.png");
and the Icon texture is located at (C:\Users\matt\Desktop\MC MODDING\dma\src\assets\dma\textures\blocks) and is called "DalekConsole2" but still shows up as a missing texture as it can't locate it and the model also won't texture, the model texture is located at (C:\Users\matt\Desktop\MC MODDING\dma\src\assets\dma\textures\models) and is called "DalekConsole2". This line
  Quote
private static final ResourceLocation texture = new ResourceLocation(main.MODID + ":" + "textures:model:DalekConsole2.png");
assuming sets the texture for the actual block is now
  Quote
private static final ResourceLocation texture = new ResourceLocation(main.MODID + ":" + "textures:model:DalekConsole2");
and neither texture can be found, which makes me assume the file path for the assets is wrong to where it's trying to look, but I don't know where these should be.

This is the console

  Reveal hidden contents

 

Posted

sorry in my actual code it's

  Quote
public void registerBlockIcons(IIconRegister iconRegister) {

    this.blockIcon = iconRegister.registerIcon(main.MODID + ":" + "DalekConsole2");

but still doesn't solve the texture not loading on the block either
Posted

Yay thanks guys Icon and Block are both textured :)

This is the render file im using

  Reveal hidden contents

 

 

the texture is now located C:\Users\matt\Desktop\MC MODDING\dma\src\main\resources\assets\dma\textures\models

and the texture is "DalekConsole2"

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.