Posted March 13, 201510 yr My Blocks have a texture in the inventory but they do not have a texture when they are placed in the world. What is it that I am doing wrong.? GitHub https://github.com/LogicTechCorp/Orizon_1.8 Texture Manager Class https://github.com/LogicTechCorp/Orizon_1.8/blob/master/src/main/java/orizon/util/TextureManager.java
March 13, 201510 yr Nice trouble shooting guide by TheGreyGhost http://greyminecraftcoder.blogspot.com.au/2015/03/troubleshooting-block-and-item-rendering.html
March 13, 201510 yr Author I do not know if I am not reading or understanding the guide correctly but it does not seem to help me. Also in the console it says: Model definition for location orizon:random.block.name#normal not found
March 14, 201510 yr No more errors in the console? Nothing like a FileNotFoundException nor anything like that? just you wait!
March 14, 201510 yr Author No there is not any FileNotFoundException. Here is the rest of the console https://gist.github.com/LogicTechCorp/b4e44e7db1dd6d48954a
March 14, 201510 yr 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
March 14, 201510 yr Author 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.
March 14, 201510 yr Author 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?
March 14, 201510 yr 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
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.