Posted March 15, 201510 yr I have been trying this for a while now and I can not figure out a way to do this. is there anyway to do this and if so how?
March 15, 201510 yr As of 1.8 IItemRenderer has been deprecated and EntityItem is always rendered the same (using .json model). To "override" it you would need to make custom EntityItem (extension) with custom renderer registered (like for any other entity). Then operate on your custom renderer. That's what I did ;p P.S - I might not understood your problem - you could be more precise 1.7.10 is no longer supported by forge, you are on your own.
March 15, 201510 yr Author thanks what probably will help but I have one more question how would I do this if I have a block?
March 15, 201510 yr Are you talking about placed block or block as an item? Block as an item (in inventory) are represented by ItemBlock (or BlockItem, i don't remember) and when dropped into world they are still treated as EntityItem. If you are referring to placed-blocks then there are several ways. If you are looking for simple, yet not cubic shape: Have look at how .json models work (Blocks section): http://greyminecraftcoder.blogspot.co.at/p/list-of-topics.html Code examples: http://www.minecraftforge.net/forum/index.php/topic,26267.0.html For more advanced stuff (custom models) you will need TileEntitySpecialRenderer or ISmartBlockModel, depends on what you want to render. All those classes are either in minecraft.client package or minecraftforge.client.model I don't have much experience here aside from very simple renderer for my crystals Ask TGG (GreyGhost), he's probably dealing with those lately. 1.7.10 is no longer supported by forge, you are on your own.
March 16, 201510 yr Well, the examples I linked tell how to add renderer to block when it's in inventory. https://github.com/TheGreyGhost/MinecraftByExample/blob/master/src/main/java/minecraftbyexample/mbe01_block_simple/StartupClientOnly.java This is ofc. based on .json model. If you ought to use other renderer then I can't help you - each works differently, there is no universal answer here. Post some code and what you are trying / tried. 1.7.10 is no longer supported by forge, you are on your own.
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.