Jump to content

Mattizin

Members
  • Posts

    58
  • Joined

  • Last visited

Everything posted by Mattizin

  1. Yeah, thought github link was enough, but here it is: public static void registerRender(Block block, int meta, String fileName) { Item item = Item.getItemFromBlock(block); Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, meta, new ModelResourceLocation(modid + ":" + fileName, "inventory")); System.out.println(modid + ":" + fileName); }
  2. Mhh. In my opinion when i Register the Blocks(subblocks) like this with the name + "Ore" i should be able to reach the json file with name+Ore or im wrong? for(int i = 0; i < EnumOreType.values().length; i++) { registerRender(ModBlocks.ore, i, EnumOreType.values()[i].getName() + "Ore"); }
  3. Hey, Does nobody have an idea? Or do you need further information? Mattizin
  4. Hey Guys, I'm just learning modding for 1.8.9 I want to create a simple BlockOre with an EnumOreType with 3 Types of Ores. Everything works, except the in Inventory/Hand rendering. I get the following error: [23:23:45] [Client thread/ERROR] [FML]: Model definition for location mattech:ore#inventory not found i googled and tried it for days now but all i found was "Your json files have to be in the wrong place", but i think they are right... Please help me. Thanks. Full github repository: https://github.com/M4tt1z1n/Mattech Like i said the Block is BlockOre with EnumOreType Mattizin
×
×
  • Create New...

Important Information

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