Jump to content

Recommended Posts

Posted

Not sure why it's not loading. I've been at this for hours. Here's the code:

 

 

BlockMS.java

 

  Reveal hidden contents

 

 

Block_Red.java

 

  Reveal hidden contents

 

 

ModBlocks.java

 

  Reveal hidden contents

 

 

 

My file structure for the texture goes like: src>main>(java is here too but that's not important)resources>assets>moonsstuff>textures>blocks>blockRed.png

 

 

Thanks for the help guys, I'm really stumped.

 

 

 

 

EDIT: I'd like to add that I have an item using a very similar system that displays the correct texture, but the block will not.

 

EDIT: Fixed it. Simple mis-type. In my BlockMS.java I accidentally put a "$" in front of my "%s" so it was checking the wrong directory.

@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iconRegister)
{
	blockIcon = iconRegister.registerIcon(String.format("[b]$[/b]s%s", getUnwrappedUnlocalizedName(this.getUnlocalizedName())));
}

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.