I have been working at this for hours now; following countless different tutorials but to no avail.
I am creating a new item like so:
public class Item_NewIngot extends Item
{
public Item_NewIngot()
{
setUnlocalizedName("newingot");
setRegistryName("newingot");
setCreativeTab(Wire.tab);
}
public void registerModel()
{
ModelLoader.setCustomModelResourceLocation(this, 0, new ModelResourceLocation("wire:newingot", "inventory"));
}
}
I register it in
public static void registerItems(RegistryEvent.Register<Item> event)
I call registerModel in
public static void registerItems(ModelRegistryEvent event)
But this never actually works, I get an output like this when forge loads:
So for some reason it doesn't find the json file.
I know it exists and I have it under that directory - attached an image
Here is the contents of that file:
{
"parent": "item/generated",
"textures":
{
"layer0": "wire:items/newingot"
}
}
And I also have the icon here - attached another image
Why isn't this working?