Jump to content

[1.8] Block Does Not Have Texture When Placed In World


LogicTechCorp

Recommended Posts

Looks to me like you're registering your blocks with dud names like

ore.raw.alt

stone.brick.mossy

 

Try getting rid of the dots - comment out your complicated registration stuff and just hand write a couple of simple text names.  If that works, you've found your problem.

 

-TGG

 

I created a simple test item, registered it like you suggested and I got the same end result.

Link to comment
Share on other sites

Hi

 

Show test code and console message for your simple item?

 

-TGG

 

I believe I have found my issue, I did not have a BlockState file that matched up with the name the block is registered as. I had it named the same as the texture. When I created a BlockState file matching the registered name, my block had a texture when placed but all of the subblocks had the same texture too. Is there a way to point to different model files based on the metadata number?

Link to comment
Share on other sites

Hi

 

Yes there is a way.

 

I think this link might help you understand blockstates and block rendering better.

http://greyminecraftcoder.blogspot.com.au/p/list-of-topics.html  (Three topics under 'block rendering').

 

This example project has a block with variants with different model files

https://github.com/TheGreyGhost/MinecraftByExample

(see MBE03)

 

-TGG

Link to comment
Share on other sites

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.