Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hello people,

Having strange issue, which I never had in the past. Console says that

Model definition for location angelsvsdemons:item.sacrificial_dagger#inventory not found

I checked everything and it should be correct, searched alot on google and forums, couldn't fix this. Maybe you can figure it out

Here's Classes:

public class AVDItems {

    public static Item sacrificial_dagger;

    public static void init(){
        sacrificial_dagger = new ItemSacrificialDagger().setUnlocalizedName("sacrificial_dagger").setCreativeTab(AVDMod.AVDTab);
    }

    public static void register(){
        GameRegistry.registerItem(sacrificial_dagger, sacrificial_dagger.getUnlocalizedName());

    }
    public static void registerRender(){
        registerRenderers(sacrificial_dagger,0);
    }

    private static void registerRenderers(Item item, int metadata){
        Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, metadata, new ModelResourceLocation(References.MODID + ":" + item.getUnlocalizedName().substring(5), "inventory"));
    }
}

public class ClientProxy extends CommonProxy {

    @Override
    public void registerRenderers(){
        AVDItems.registerRender();
    }
}

@Mod(modid = References.MODID, name = References.NAME, version = References.VERSION)
public class AVDMod {

    @SidedProxy(clientSide = References.ClientProxy, serverSide = References.CommonProxy)
    public static CommonProxy proxy;

    public static CreativeTabs AVDTab;

    @Mod.EventHandler
    public void preInit(FMLPreInitializationEvent e){
        AVDTab = new CreativeTabs("avdtab") {
            @Override
            public Item getTabIconItem() {
                return Items.apple;
            }
        };
        AVDBlocks.init();
        AVDItems.init();

    }

    @Mod.EventHandler
    public void init(FMLInitializationEvent e){
        AVDItems.register();
        AVDBlocks.register();
        proxy.registerRenderers();
    }

    @Mod.EventHandler
    public void postInit(FMLPostInitializationEvent e){
        MinecraftForge.EVENT_BUS.register(new EventHandler());
    }
}

I have my model file in assets/modid/models/item/sacrificial_dagger.json

The new model system is quite tricky at first. Take a look at this video

, it should help you a bit. For blocks, check out this one
.

I am not a cat. I know my profile picture is sexy and amazing beyond anything you could imagine but my cat like features only persist in my fierce eyes. I might be a cat.

  • Author

I have done this in past, released other mod on 1.8, but now I started new project and did everything like in old one and I can't get models working.

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.

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.