Jump to content

Recommended Posts

Posted

I am tired of this. Tried to follow tutorials but seems like there was (I mean, must have been, because it's not working) some update lately.

 

Forge build 1306 (latest).

 

// I am passing "ore_copper" as name:
private void registerItemModel(String name)
{
	System.out.println(name);
	Item item = GameRegistry.findItem(InitUtil.ModID, name);
	System.out.println(item);
	ModelResourceLocation model = new ModelResourceLocation(InitUtil.ModID.toLowerCase() + ":" + name, "inventory");
	System.out.println(model);
	Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, model);
}

[19:26:47] [Client thread/INFO] [sTDOUT]: [com.midstcraft.ernio.RoA.ClientProxy:registerItemModel:64]: ore_copper
[19:26:47] [Client thread/INFO] [sTDOUT]: [com.midstcraft.ernio.RoA.ClientProxy:registerItemModel:66]: net.minecraft.item.ItemBlock@4fe57305
[19:26:47] [Client thread/INFO] [sTDOUT]: [com.midstcraft.ernio.RoA.ClientProxy:registerItemModel:68]: roa:ore_copper#inventory
..........
[19:26:49] [Client thread/ERROR] [FML]: Model definition for location roa:ore_copper#inventory not found

 

What the hell?

Note: My world-model (placed) is working.

 

Edit: I edited post (had mistakie in code)

 

Edit 2: Assets:

assets.roa.blockstates/ore_copper.json

assets.roa.models.block/ore_copper_model_0.json

1.7.10 is no longer supported by forge, you are on your own.

Posted

I just figured out that Items can't use Block's model as total-base. You need to have Item.json that will use Block's model.json as parent.

 

Why doees everyone in every tutorial/documentation/comment names both the same (that got me confused).

 

SUCCESS

1.7.10 is no longer supported by forge, you are on your own.

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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