Jump to content

Recommended Posts

Posted

So, I am trying to learn modding with Forge, and failed right on the start. I am trying to add a simple block - Coal Block, craftable with coal etc, ya know. Everything looks fine but the texture does not seem to load properly. I've tried whatever, but couldn't find a solution or where the issue is.

 

Here is my code (it's my "learning mod", bear with possible stupidity please):

 

base mod file:

 

  Reveal hidden contents

 

 

Block file:

 

  Reveal hidden contents

 

 

ClientProxy.java:

 

  Reveal hidden contents

 

 

CommonProxy.java:

 

  Reveal hidden contents

 

 

Here is what I get in-game:

tex1.jpg

The block's texture is messed up, but apparently it is somehow loaded. If I replace the texture with a red one, the block is red, but the texture is not rendered as it should.

This is the actual png texture:

Coalblock.png

 

I have tried to figure out where did I make a mistake for hours, but all in vain. Posting here as a last resort, if anyone can point me in the right direction of the error...

 

 

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.