Posted August 5, 201411 yr I am currently trying to create a throwable tomahawk. I want it to render in 2d with depth, like a dropped item. I can get the entity itself working, but rendering it either doesn't work or crashes the game. Can anyone here help me figure out what I'm doing wrong? Here are all the files involved: Main Mod File Item Registry Item File Entity File Client Proxy Render File
August 6, 201411 yr Author Okay, after some testing, I found out that the crashing was due to a null pointer exception on the icon. I put the numbers in manually and instead it created a black and purple box with one corner on the cursor. Any ideas?
August 7, 201411 yr Hi These links might help with some background on item rendering (see the "Item Rendering" topics) http://greyminecraftcoder.blogspot.com.au/p/list-of-topics.html And this link with a missing texture error http://www.minecraftforge.net/forum/index.php/topic,18371.msg92948.html#msg92948 -TGG
August 7, 201411 yr Author The item rendering stuff wasn't very helpful since this isn't an item, but I got it figured out. I just had the wrong numbers in the renderItemIn2D and the texture string wasn't static. After that I just had to mess with gltranslatef and glrotatef to get everything working.
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.