Hey,
I`m a newbie at Forge modding and I wanted to make my first mod with an first item.
It`s registered and it is displayed all the time with the right name,
but ingame it has only the black-pink texture.
The problem is the item rendering:
The json file for my first item is located at assets.scraputils.models.item.lavaingot.json and the content is:
{
"parent": "builtin/generated",
"textures": {
"layer0": "scraputil:items/lavaingot"
},
"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 ]
}
}
}
The texture layer0 is located at assets.scraputils.textures.item.lavaingot.png
My ItemRenderRegisterer looks like this:
package com.Scrap.scraputils.client.render.items;
import com.Scrap.scraputils.Main;
import com.Scrap.scraputils.item.ModItems;
import net.minecraft.client.Minecraft;
import net.minecraft.client.resources.model.ModelResourceLocation;
import net.minecraft.item.Item;
public final class ItemRenderRegister {
public static String modid = Main.MODID;
public static void registerItemRenderer() {
Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(ModItems.LavaIngot, 0, new ModelResourceLocation("scraputils:lavaingot", "inventory"));
reg(ModItems.LavaIngot);
}
public static void reg(Item item) {
Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(modid + ":" + item.getUnlocalizedName().substring(5), "inventory"));
}
}
Please help me,
Scrapnix