Jump to content

[1.12] I need help registering my modded item ingame


Recommended Posts

I can't get my modded item to register and have a custom model and texture instead of the missing model block. If I reload the texture via F3 + t, it will load the model in game.  I have followed many tutorials and updated my forge to the latest version 1.12- and I still can't get it to work. Please help me

Link to comment
Share on other sites

This is the ItemInit code : 

package hunter.canadamod.init;

import hunter.canadamod.Reference;
import hunter.canadamod.init.items.MapleSyrupBottle;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.block.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraftforge.client.model.ModelLoader;
import net.minecraftforge.fml.common.registry.ForgeRegistries;

public class ItemInit 
public static Item maple_syrup_bottle_empty;

public static void init()
maple_syrup_bottle_empty = new MapleSyrupBottle("maple_syrup_bottle_empty");

public static void register()

    public static void registerItem(Item item)
        Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0,
        new ModelResourceLocation(Reference.MODID + ":" + item.getUnlocalizedName().substring(5), "inventory"));

Link to comment
Share on other sites

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.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.