Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.8.9]Minecraft doesn't load texture, lang file and mcmod.info
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 1
NpGamingBoy

[1.8.9]Minecraft doesn't load texture, lang file and mcmod.info

By NpGamingBoy, October 26, 2020 in Modder Support

  • Start new topic

Recommended Posts

NpGamingBoy    0

NpGamingBoy

NpGamingBoy    0

  • Tree Puncher
  • NpGamingBoy
  • Members
  • 0
  • 1 post
Posted October 26, 2020

Hi I'm new to minecraft modding and java. I've been searching for tutorials for modding and java. But I've been stuck on this error Model definition for location tm:item#inventory not found. I believe I've put the json and texture in the  correct place.Here is my log file.latest.log  Is minecraft recognizing my item as a block and giving FileNotFound error. And also neither the lang nor the mcmod.info file are being registered even tough they are in the correct place. Here is my main mod file:-

 

package com.NGB;

import com.NGB.init.ModItems;
import com.NGB.proxy.CommonProxy;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.SidedProxy;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;

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

    @SidedProxy(clientSide = Reference.CLIENT_PROXY_CLASS, serverSide = Reference.SERVER_PROXY_CLASS)
    public static CommonProxy proxy;

    @Mod.EventHandler
    public static void preInit(FMLPreInitializationEvent event){
        ModItems.init();
        ModItems.register();
    }

    @Mod.EventHandler
    public static void init(FMLInitializationEvent event){
        System.out.println("The test mod has been loaded.");
        proxy.registerRenders();
    }

    @Mod.EventHandler
    public static void postInit(FMLPostInitializationEvent event){

    }

}

Here is my ClientProxy :-

package com.NGB.proxy;

import com.NGB.init.ModItems;

public class ClientProxy extends CommonProxy {
    @Override
    public void registerRenders(){
        ModItems.registerRenders();
    }
}

Here is my CommonProxy :-

package com.NGB.proxy;

public class CommonProxy {

    public void registerRenders(){

    }

}

Here is my ModItems file :-

package com.NGB.init;

import com.NGB.Reference;
import net.minecraft.client.Minecraft;
import net.minecraft.client.resources.model.ModelResourceLocation;
import net.minecraft.item.Item;
import net.minecraftforge.fml.common.registry.GameRegistry;

public class ModItems {

    public static Item bedrock_sword;

    public static void init() {
        bedrock_sword = new Item().setUnlocalizedName("bedrock_sword");
    }

    public static void register() {
        registerItem(bedrock_sword);
    }

    public static void registerRenders(){
        registerRender(bedrock_sword);
    }

    public static void registerItem(Item item) {
        GameRegistry.registerItem(item, item.getUnlocalizedName().substring(5));
        System.out.println("Registered item :- " + item.getUnlocalizedName().substring(5));
    }

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

}

Here is my json :-

{
  "parent": "builtin/generated",
  "textures": {
    "layer0": "tm:items/bedrock_sword"
  },
  "display": {
    "thirdperson": {
      "rotation": [ 0, 90, -35 ],
      "translation": [ 0, 1.25, -3.5 ],
      "scale": [ 0.85, 0.85, 0.85 ]
    },
    "firstperson": {
      "rotation": [ 0, -135, 25 ],
      "translation": [ 0, 4, 2 ],
      "scale": [ 1.7, 1.7, 1.7 ]
    }
  }
}

 

Share this post


Link to post
Share on other sites

diesieben07    7588

diesieben07

diesieben07    7588

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7588
  • 54951 posts
Posted October 26, 2020

1.8 is no longer supported on this forum.

Please update to a modern version of Minecraft to receive support.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 1
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • DaemonUmbra
      Unable to install

      By DaemonUmbra · Posted 5 minutes ago

      1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.
    • DaemonUmbra
      1.16.3 forge crashing

      By DaemonUmbra · Posted 6 minutes ago

    • Woodside
      [1.15.2] Render as 2D icon in GUI, 3D model in hand

      By Woodside · Posted 11 minutes ago

      I replaced RenderMaterial with Material and it seems to be happy. Wonder if that were just a rename. I also had to rename isSideLite to func_230044_c_ but that wasn't an issue.
    • X4Ghost
      Unable to install

      By X4Ghost · Posted 12 minutes ago

      When I click to install client and click ok, I am met with a window saying "these libraries failed to download. Try again." heres a screen shot.   https://ibb.co/1ZhSp9X   Any help is appreciated, thanks.
    • diesieben07
      [1.16.4] How i can open a container by clicking on my mob

      By diesieben07 · Posted 12 minutes ago

      Cool. An anonymous inner class is a Java concept - please learn Java before modding. What is your issue now?
  • Topics

    • X4Ghost
      1
      Unable to install

      By X4Ghost
      Started 12 minutes ago

    • clermont.holiday
      1
      1.16.3 forge crashing

      By clermont.holiday
      Started 3 hours ago

    • Woodside
      4
      [1.15.2] Render as 2D icon in GUI, 3D model in hand

      By Woodside
      Started 1 hour ago

    • Klarks
      17
      [1.16.4] How i can open a container by clicking on my mob

      By Klarks
      Started Yesterday at 09:56 PM

    • bleep_blops
      1
      Forge Installation Problem

      By bleep_blops
      Started 26 minutes ago

  • Who's Online (See full list)

    • BobbyLikesCake
    • Forix
    • Heinzchen
    • Woodside
    • DaemonUmbra
    • diesieben07
    • Danebi
    • X4Ghost
    • philip-elsner@gmx.net
    • Klarks
    • TheidenHD
    • GGMulder
    • IDontCaboose
    • bleep_blops
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • [1.8.9]Minecraft doesn't load texture, lang file and mcmod.info
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community