Posted September 8, 201312 yr Hi there everyone. I'm trying to make a model for my item,i made it using Techne and i loaded it in minecraft. The problem is that Texture doesn't load,becoming invisibile or purple-black checkers. My texture.png file is in /assets/modid/textures/texture3d.png I use THIS in my main class MinecraftForgeClient.registerItemRenderer(dubGun.itemID, (IItemRenderer)new ItemRendererWubGun()); And THIS as Renderer @Override public void renderItem(ItemRenderType type, ItemStack item, Object... data) { switch(type) { case EQUIPPED: { GL11.glPushMatrix(); Minecraft.getMinecraft().renderEngine.func_110577_a(new ResourceLocation("mac_dubgun:textures/items/dubguntex.png")); Any help will be appreciated
September 8, 201312 yr Check what the console output says about your texture. If you guys dont get it.. then well ya.. try harder...
September 9, 201312 yr Or better yet, look at the path you told the renderer to look in, and then look at where you said the file is stored. Then tell us whats wrong I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes. I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there
September 9, 201312 yr Author I changed it to see if something would happen. Now the texture3d.png file is in \assets\mac_dubstepgun\textures\models In the code i changed it to : @Override public void renderItem(ItemRenderType type, ItemStack item, Object... data) { switch(type) { case EQUIPPED: { GL11.glPushMatrix(); Minecraft.getMinecraft().renderEngine.func_110577_a(new ResourceLocation("mac_dubstepgun:textures/models/texture3d.png"));
September 9, 201312 yr Author I tried making texture 64 x 64 but it shows invisible. Just for testing,i made a completely red texture,and loaded it. It shows invisible aswell,no luck. :C
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.