Posted March 8, 201510 yr Do I only need a .json file to add my texture for my items are not working.
March 8, 201510 yr You need a png file too. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
March 8, 201510 yr Author Do I only need a .json file to add my texture for my items are not working. Yes I have but it doen't works all my names are the good so idk any more whats wrong
March 8, 201510 yr Have look here on Git (http://www.minecraftforge.net/forum/index.php/topic,26267.0.html). If you can't solve your problem (look deeply), post your code and .json's. 1.7.10 is no longer supported by forge, you are on your own.
March 9, 201510 yr Author I still can't find it so here is my code. The code that makes my item: package com.penguinw.init; import net.minecraft.client.Minecraft; import net.minecraft.client.resources.model.ModelResourceLocation; import net.minecraft.item.Item; import net.minecraftforge.fml.common.registry.GameRegistry; import com.penguinw.Reference; public class PenguinWitems { public static Item copper_ingot; public static void init() { copper_ingot = new Item().setUnlocalizedName("copper_ingot"); } public static void register() { GameRegistry.registerItem(copper_ingot, copper_ingot.getUnlocalizedName().substring(5)); } public static void registerRenders() { registerRender(copper_ingot); } public static void registerRender(Item item) { Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MOD_ID + ":" + item.getUnlocalizedName().substring(5), "inventory")); } } //Copyright Vincent De Borger The .json file: { "parent": "builtin/generated", "textures": { "layer0": "pw:items/copper_ingot" }, "display": { "thirdperson": { "rotation": [ -90, 0, 0 ], "translation": [ 0, 1, -3 ], "scale": [ 0.55, 0.55, 0.55 ] }, "firstperson": { "rotation": [ 0, -135, 25 ], "translation": [ 0, 4, 2 ], "scale": [ 1.7, 1.7, 1.7 ] } } } my picture is named: copper_ingot.png
March 9, 201510 yr item.getUnlocalizedName().substring(5) It still has .name on the end of it, which means the model file it looks for would have to be "copper_ingot.name.json"
March 9, 201510 yr Author item.getUnlocalizedName().substring(5) It still has .name on the end of it, which means the model file it looks for would have to be "copper_ingot.name.json" eum... now it can't even find my .json file [20:33:45] [Client thread/WARN]: Missing model for: pw:item/copper_ingot
March 9, 201510 yr From what I understand it now finds the model file but not the texture file "layer0": "pw:items/copper_ingot" Which is apparently what's missing.
March 9, 201510 yr Author If I call my file "copper_ingot.json" it can find the model file but if I call it "copper_ingot.name.json" it can. So I think it can't find my .png file
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.