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    7596

diesieben07

diesieben07    7596

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7596
  • 55108 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

    • OrneryHandle
      1.16.5 beta crash

      By OrneryHandle · Posted 4 minutes ago

      Pardon me, I'm new here.
    • diesieben07
      Cant craft items in modded server

      By diesieben07 · Posted 8 minutes ago

      You can use pastebin or similar services.
    • diesieben07
      1.16.5 beta crash

      By diesieben07 · Posted 8 minutes ago

      Posting random crash reports from a "pile" is not helpful. Post the newest, relevant debug.log please.
    • OrneryHandle
      1.16.5 beta crash

      By OrneryHandle · Posted 11 minutes ago

      I didn't have Better Weather when this problem started. I've got a whole pile of crash reports if you need them, this one's just the oldest: EDIT: oops, that one's seemingly unrelated. This is the oldest that seems to pertain to this:   crash-2021-01-17_18.27.51-client.txt
    • mightymoy
      Cant craft items in modded server

      By mightymoy · Posted 12 minutes ago

      would I copy and paste it on here or is there a place I can like show it on? 
  • Topics

    • OrneryHandle
      6
      1.16.5 beta crash

      By OrneryHandle
      Started 46 minutes ago

    • mightymoy
      5
      Cant craft items in modded server

      By mightymoy
      Started 5 hours ago

    • Guy:)
      1
      {Solved}Forge 1.12.2 crashing before the window pops up

      By Guy:)
      Started 26 minutes ago

    • Klarks
      27
      [1.16.4] what difference between custom slots and EquipmentSlotType

      By Klarks
      Started Yesterday at 06:22 AM

    • LucyHonna
      1
      [1.12.2] how do i setup the enviornment

      By LucyHonna
      Started 52 minutes ago

  • Who's Online (See full list)

    • diesieben07
    • OrneryHandle
    • Choonster
    • <Gl33p_0r4nge>
    • kiou.23
    • mightymoy
    • asgergaming1
    • Klarks
    • Guy:)
  • 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